From: swi To: [EMAIL PROTECTED] Subject: Try to compile development source. mysql1-4 Aborts in MAKE...
>Description: Screen output is attached at the bottom. I aborts in MAKE, Might have a problem with Libtool, but can't figure out. >How-To-Repeat: See screen output. (Follow MySQL manual 2.3.4 Installing from the Development source tree) >Fix: A developer's problem to solve?? >Submitter-Id: Christian Becker, Norway >Originator: Software Installation >Organization: <organization of PR author (multiple lines)> >MySQL support: none >Synopsis: I suppose some error in build files >Severity: critical >Priority: low >Category: mysql >Class: sw-bug >Release: mysql-3.23.56 (Source distribution) >Server: /usr/bin/mysqladmin Ver 8.23 Distrib 3.23.56, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 3.23.56 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime: 2 hours 5 sec Threads: 1 Questions: 6 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 0 Queries per second avg: 0.001 >Environment: <machine, os, target, libraries (multiple lines)> System: Linux goWs1Cbe 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown unknown GNU/Linux Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.3 20030309 (Debian prerelease) Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 Mar 24 16:01 /lib/libc.so.6 -> libc-2.3.1.so -rwxr-xr-x 1 root root 1104040 Mar 21 17:19 /lib/libc-2.3.1.so -rw-r--r-- 1 root root 2338008 Mar 21 17:19 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Mar 21 17:19 /usr/lib/libc.so Configure command: ./configure --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc/mysql --localstatedir=/var/lib/mysql --includedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --with-libwrap --enable-assembler --with-berkeley-db --with-innodb --enable-static --enable-shared --enable-local-infile --with-raid --enable-thread-safe-client --without-readline --with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-mysqld-user=mysql --without-bench --without-docs --with-client-ldflags=-lstdc++ --with-extra-charsets=all =============================== >>>> My screen output follows: Shorted where everything looks ok. =============================== I try to follow the installation instructions given in file: Installing_source_tree.html I'm more or less a novice in doing this, but can't figure out why I get the following errormessages: I get down to the MAKE more or less ok, but then it aborts. I did a reboot the PC, and tried again just in case. Screen output is shorted for your info. >>> I document some places in the output. See 3 arrows >>> Question.... I have downloaded the latest versions of these tools aclocal; autoheader; autoconf; except automake which is version1.5. =========================================== >>> I bk pull latest changes from source tree =========================================== Shell output following: [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ bk pull Pull bk://mysql.bkbits.net/mysql-4.1 -> file://LxSrc/mysql-4.1 ---------------------- Receiving the following csets ----------------------- 1.1554 1.1553 1.1552 ---------------------------------------------------------------------------- ChangeSet: 3 deltas sql/item_strfunc.cc: 3 deltas --------------------------------------------------------------------------- takepatch: saved entire patch in PENDING/2003-03-25.01 --------------------------------------------------------------------------- Applying 3 revisions to ChangeSet Applying 3 revisions to sql/item_strfunc.cc takepatch: 6 new revisions, 0 conflicts in 2 files 1003 bytes uncompressed to 3785, 3.77X expansion Running resolve to apply new work ... =================================== >>>> The software update works ok. =================================== ======================================================== >>> I do the following commands as given in install notes: ======================================================== [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ bk -r get -Sq [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ aclocal [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ autoheader WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' WARNING: and `config.h.top', to define templates for `config.h.in' WARNING: is deprecated and discouraged. WARNING: Using the third argument of `AC_DEFINE' and WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without WARNING: `acconfig.h': WARNING: AC_DEFINE([NEED_MAIN], 1, WARNING: [Define if a function `main' is needed.]) WARNING: More sophisticated templates can also be produced, see the WARNING: documentation. configure.in:758: warning: AC_LANG_CALL: no function given [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ ======================================================================================= >>>> My Question: In above output, AC_LANG_CALL Where do I find it?? have I forgotten >>>> to do something?? >>>> And what is deprecated and discouraged in listing above ======================================================================================= ======================== >>> Well I go on trying: ======================== [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ autoconf configure.in:193: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ ========================================================================================== >>>> My Question: AC_PROG_LIBTOOL Where do I find it?? have I forgotten to do >>>> something?? ========================================================================================== ====================== >>>> I go on trying: ====================== [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ automake --version automake (GNU automake) 1.6.3 [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ automake [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ =================================================== >>> Automake works OK, No output given. I go on trying ./configure, which works ok I suppose. Give you output just for purpose of documentation: ==================================================== [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ ./configure checking build system type... i686-pc-linux checking host system type... i686-pc-linux checking target system type... i686-pc-linux checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether build environment is sane... yes checking whether make sets $(MAKE)... (cached) yes checking for gawk... (cached) gawk checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -E checking "C Compiler version"... "gcc gcc (GCC) 3.2.3 20030309 (Debian prerelease)" checking "C++ compiler version"... "g++ g++ (GCC) 3.2.3 20030309 (Debian prerelease)" checking for ranlib... ranlib ./configure: line 3872: AC_PROG_LIBTOOL: command not found =========== >>>> Here above something goes wrong >>> Following Output is shorted =========== checking for ORBit... found! checking if we should build MySQLFS... no checking for OpenSSL... ./configure: line 18392: no: command not found ./configure: line 18393: no: command not found mkdir: cannot create directory `include/readline': File exists =========== >>>> Here above something goes wrong >>> Output is shorted =========== checking for BerkeleyDB... no checking for Innodb... Using Innodb checking for aio_read in -lrt... yes CONFIGURING FOR INNODB configure: WARNING: If you wanted to set the --build type, don't use --host. config.status: creating ib_config.h config.status: executing depfiles commands END OF INNODB CONFIGURATION configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing default commands Thank you for choosing MySQL! ====== >>>> I go on trying to do the MAKE command: ===== [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ make cd client; make link_sources make[1]: Entering directory `/LxSrc/mysql-4.1/client' for f in log_event.h log_event.cc ; do \ rm -f ./$f; \ /bin/ln -s ../sql/$f ./$f; \ done; make[1]: Leaving directory `/LxSrc/mysql-4.1/client' ====== >>>> Question: I get scriptcode as output above in the start of make output. Is it OK? ====== >>> Output shorted... source='fcns.c' object='fcns.o' libtool=no \ depfile='.deps/fcns.Po' tmpdepfile='.deps/fcns.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR -I. -I. -I../.. -I../../ include -I./../.. -I.. -O3 -DDBUG_OFF -c `test -f 'fcns.c' || echo './'`fcn s.c rm -f liblibedit.a ar cru liblibedit.a chared.o el.o fgetln.o history.o map.o prompt.o readline.o s earch.o strlcpy.o tokenizer.o vi.o common.o emacs.o hist.o key.o parse.o read.o refresh.o sig.o term.o tty.o help.o fcns.o ranlib liblibedit.a Making all in libmysql make[2]: Entering directory `/LxSrc/mysql-4.1/libmysql' source='libmysql.c' object='libmysql.lo' libtool=yes \ depfile='.deps/libmysql.Plo' tmpdepfile='.deps/libmysql.TPlo' \ depmode=gcc3 /bin/sh ../depcomp \ @LIBTOOL@ --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DDATADIR=" \"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I. -I.. -I../include -O3 -DDBUG_OFF -c -o libmysql.lo `test -f 'libmysql.c' || echo './'`libmysql.c ../depcomp: line 60: @LIBTOOL@: command not found make[2]: *** [libmysql.lo] Error 127 make[2]: Leaving directory `/LxSrc/mysql-4.1/libmysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/LxSrc/mysql-4.1' make: *** [all] Error 2 [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ ======== >>>> As far as I understand the libtool should be there. (See output below) But here I am stuck.... Is there a bug, or is there the usual Novice fingers fooling around?? As far as I understand I think I have installed the libtool ok ======== >>>> Output from Libtool [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ libtool --version ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36) [EMAIL PROTECTED]:/LxSrc/mysql-4.1$ >>>> If you could give me a response I would be grateful. Thank's Regards Christian Becker Norway _____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]