Bug #7370 configure problem

Submitted: 16 Dec 2004 23:05 Modified: 7 Apr 2005 18:51
Reporter: Boyd GERBER Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S1 (Critical)
Version:4.1.8 OS:UnixWare 7.1.4
Assigned to: CPU Architecture:Any

[16 Dec 2004 23:05] Boyd GERBER
Description:
configure fails when used with

CC="cc" CFLAGS="-I/usr/local/include" CXX="CC" CFLAGS="-I/usr/local/include" ./configure --prefix=/usr/local/mysql --enable-thread-safe-client --with-berkeley-db=./bdb --with-innodb --with-openssl --with-extra-charsets=complex --with-vio

it gives

...
configure: creating ./config.status
../../././bdb/dist/configure: line 21797: cat: not found
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in
configure: error: could not configure Berkeley DB

I have used this for many years and it is now failing.  I downloaded from ftp://mysql.mirror.redwire.net/pub/mysql/MySQL-4.1/mysql-4.1.8.tar.gz and the md5 sum was ok.

How to repeat:
Download from a mirror and verify the md5 sum.
$ gunzip mysql-4.1.8.tar.gz
$ tar xf mysql-4.1.8.tar
$ cd mysql-4.1.8
$ CC="cc" CFLAGS="-I/usr/local/include" CXX="CC" CFLAGS="-I/usr/local/include" ./configure --prefix=/usr/local/mysql --enable-thread-safe-client --with-berkeley-db=./bdb --with-innodb --with-openssl --with-extra-charsets=complex --with-vio
[17 Dec 2004 0:36] Boyd GERBER
Use libtool macros to find cat or edit created Makefile and change cat to /usr/local/bin/cat
[28 Dec 2004 17:41] Boyd GERBER
MySQL-4.1.8a now has a problem in the innodbase directory.

$ pwd
/home/mount/uw714/zenez1/build/uw714/mysql-4.1.8a/innobase

$ make
/bin/ksh: syntax error at line 1: `;' unexpected
make: *** [/Makefile.in] Error 3
[28 Dec 2004 17:43] Boyd GERBER
The cat problem was fixed with mysql-4.1.8a but now configure and make fails.
[28 Dec 2004 17:46] Boyd GERBER
The problem is the

srcdir = 
top_srcdir = 

are not being set now in the Makefile.
[28 Dec 2004 17:59] Boyd GERBER
Also after making changes to use readline instead of libedit.

make[2]: Entering directory `/home/mount/uw714/zenez1/build/uw714/mysql-4.1.8a/client'
/bin/ksh ../libtool --preserve-dup-deps --mode=link CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK  -O3 -DDBUG_OFF    -DNO_CPLUSPLUS_ALLOCA   -o mysql  mysql.o readline.o sql_string.o completion_hash.o ../cmd-line-utils/readline/libreadline.a -lcurses ../libmysql/libmysqlclient.la -lcrypt -lcrypt -lsocket -lm  -lz -L/usr/local/lib/ -lssl -lcrypto
LD_RUN_PATH="/usr/local/mysql/lib/mysql:/usr/local/lib:$LD_RUN_PATH" CC -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK -O3 -DDBUG_OFF -DNO_CPLUSPLUS_ALLOCA -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o  -Kthread ../cmd-line-utils/readline/libreadline.a -lcurses ../libmysql/.libs/libmysqlclient.so -lcrypt -L/usr/local/lib/ -lcrypt -lcrypt -lcrypt -lsocket -lm /usr/local/lib/libz.so -lssl -lcrypto
Undefined                       first referenced
symbol                              in file
completion_matches                  mysql.o
UX:ld: ERROR: Symbol referencing errors. No output written to .libs/mysql
make[2]: *** [mysql] Error 1
[7 Apr 2005 3:35] Boyd GERBER
Fixed in mysql-4.1.11 if I patch db_config.h or copy mysql-4.1.10/bdb/build_unix/db_config.h
[7 Apr 2005 15:36] Boyd GERBER
Fixed, but new bug with generation of db_config.h. see bug 9698.
[7 Apr 2005 15:39] Boyd GERBER
Fixed but new bug see bug 9698

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.