Subject: MySQL4-Client will not build on OS X 10.3.4
To: None <tech-pkg@NetBSD.org>
From: Casey Zednick <casey.zednick@usis.com>
List: tech-pkg
Date: 06/29/2004 19:52:58
Hello all,

	I'm trying to build MySQL4-Client or any version of MySQL-Client on OS  
X 10.3.4, however I have not been able to.  The output of the failed  
build is at the end of this E-Mail.

	I have made sure my pkgsrc is up to date using, "cvs -q update -dP."   
Also my pkgsrc is installed on a case-sensitive hfs+ partition.

	- My (newbie) diagnosis of the problem is not having the proper  
directory that contains the mysql *.o or libs sym-linked into the  
.buildlink/lib/mysql directory as is evidenced in the build output.   
I'm not sure which library should be sym-linked in.  I did not see  
anything that looked odd to me in the buildlink3.mk file.


	Can somebody give me some hints as what I should do or try.  Thank you,
Casey T. Zednick



===> Building for mysql-client-4.0.20
/usr/bin/gnumake  all-recursive
Making all in .
gnumake[2]: Nothing to be done for `all-am'.
Making all in include
/usr/bin/gnumake  all-am
gnumake[3]: Nothing to be done for `all-am'.
Making all in pstack
Making all in aout
gnumake[3]: Nothing to be done for `all'.
gnumake[3]: Nothing to be done for `all-am'.
Making all in libmysql
gnumake[2]: Nothing to be done for `all'.
Making all in client
/bin/sh ../libtool --preserve-dup-deps --mode=link g++  -O3 -DDBUG_OFF  
-O2 -I/usr/include -I/usr/pkg/include  -fno-implicit-templates  
-fno-exceptions -fno-rtti  -Wl,-L/usr/pkg/lib/mysql -L/usr/lib  
-L/usr/pkg/lib  -o mysql  mysql.o readline.o sql_string.o  
completion_hash.o -lreadline -lcurses -ltermcap  
../libmysql/libmysqlclient.la  -lz -lm  -L/usr/lib -lssl -lcrypto
g++ -O3 -DDBUG_OFF -O2  
-I/Volumes/App/usr/pkgsrc/databases/mysql4-client/work/.buildlink/ 
include -fno-implicit-templates -fno-exceptions -fno-rtti  
-Wl,-L/Volumes/App/usr/pkgsrc/databases/mysql4-client/work/.buildlink/ 
lib/mysql -o .libs/mysql mysql.o readline.o sql_string.o  
completion_hash.o -Wl,-bind_at_load   
../libmysql/.libs/libmysqlclient.dylib  
-L/Volumes/App/usr/pkgsrc/databases/mysql4-client/work/.buildlink/lib  
-ledit -ltermcap -lcurses -ltermcap  
/Volumes/App/usr/pkgsrc/databases/mysql4-client/work/.buildlink/lib/ 
libz.dylib -lm -lssl -lcrypto
ld: warning -L: directory name  
(/Volumes/App/usr/pkgsrc/databases/mysql4-client/work/.buildlink/lib/ 
mysql) does not exist
ld: Undefined symbols:
_add_history
_completion_matches
_read_history
_readline
_rl_attempted_completion_function
_rl_completion_entry_function
_rl_readline_name
_write_history
gnumake[2]: *** [mysql] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2