Bug #7244 NDB: Make Fails on building clustering on Solaris 2.8
Submitted: 13 Dec 2004 21:55 Modified: 20 Jan 2005 10:05
Reporter: Todd Carter Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.7 and 4.1.8 snap shot OS:Solaris (Solaris 2.8)
Assigned to: CPU Architecture:Any

[13 Dec 2004 21:55] Todd Carter
Description:
I get the following error when I try to make the mgmsrv:

bash-2.03# make
make: Fatal error in reader: Makefile, line 654: Unexpected end of line seen

Here is an excerpt from the make file:
   631  info-am:
   632
   633  install-data-am: install-ndbbinPROGRAMS
   634
   635  install-exec-am:
   636
   637  install-info: install-info-am
   638
   639  install-man:
   640
   641  installcheck-am:
   642
   643  maintainer-clean: maintainer-clean-am
   644
   645  maintainer-clean-am: distclean-am maintainer-clean-generic
   646
   647  mostlyclean: mostlyclean-am
   648
   649  mostlyclean-am: mostlyclean-compile mostlyclean-generic \
   650          mostlyclean-libtool
   651
   652  pdf: pdf-am
   653
   654  pdf-am:
   655
   656  ps: ps-am
   657
   658  ps-am:

How to repeat:
Here are the configure options that I used:
./configure --prefix=/usr/local/mysql --with-mysql-user
=mysql --without-debug --with-ndbcluster --with-low-memory --enable-assembler

run make
[14 Dec 2004 23:58] Todd Carter
After installing GNU Make, and after loading a newer version of libgcc (3.5) and libtool (1.5) - problem is corrected.

You must also set your LD_LIBARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib, and your path to include (gnu)make, gcc, and ld.

After that I encountered one more problem documented on this webpage (http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2004-02/0282.html) after I followed this it compiles, and runs.

Errors I saw:
> sql_lex.cc: In function `void lex_init()': 
> sql_lex.cc:85: error: `symbols' undeclared (first use this function) 
> sql_lex.cc:85: error: (Each undeclared identifier is reported only once 

Fix as mentioned above on link:
   shell> cd sql 
   shell> make gen_lex_hash 
   shell> ./gen_lex_hash > lex_hash.h 
   shell> cd .. 
   shell> make 

Then I went back to the main source directory and re-ran make to be safe just to make test sure everything was compiled, and that it tested. 

I added libstdc++.so.5 to the LD_LIBRARY_PATH (it is in /usr/local/lib - and is in the libgcc3.3 and 3.5 packages from sunfreeware.com) so I didn't have to follow the last instruction on the page mentioned above.
[20 Dec 2004 10:05] Hartmut Holzgraefe
654  pdf-am:

i greped over our sorce distribution but could not find the string "pdf-am" anywhere,
neither in the Makefiles, their templates or elsewhere in the source

maybe your autotools added this target? can you please tell us which versions
of autoconf and automake you use? 

and can you add "ls -l Makefile*" and "wc Makefile*" output, too?
[3 Jan 2005 15:13] Olaf Greis
you can also try

diff -uNr mysql-4.1.8a.orig/ndb/src/mgmsrv/Makefile.in mysql-4.1.8a/ndb/src/mgmsrv/Makefile.in
--- mysql-4.1.8a.orig/ndb/src/mgmsrv/Makefile.in        2004-12-27 17:47:57.000000000 +0100
+++ mysql-4.1.8a/ndb/src/mgmsrv/Makefile.in     2005-01-03 16:12:13.868686000 +0100
@@ -678,8 +678,6 @@
        tags uninstall uninstall-am uninstall-info-am \
        uninstall-ndbbinPROGRAMS

-           @TERMCAP_LIB@
-
 # Don't update the files from bitkeeper
 %::SCCS/s.%
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".