>Description:
mysql binaries from AIX binary distribution will not run.
1 % cd /tmp/mysql/bin
2 % ./mysql
Could not load program ./mysql:
Dependent module /usr/lib/libz.a(shr.o) could not be loaded.
Member shr.o is not found in archive
Rebuild libz with shr.o, put in LIBPATH:
3 % setenv LIBPATH /home/ccaamrg/aixlib:/usr/lib
4 % echo $LIBPATH
/home/ccaamrg/aixlib:/usr/lib
5 % ./mysql
Could not load program ./mysql:
Symbol resolution failed for mysql because:
Symbol strcpy (number 131) is not exported from dependent
module /home/ccaamrg/aixlib/libz.a(shr.o).
Symbol strcat (number 132) is not exported from dependent
module /home/ccaamrg/aixlib/libz.a(shr.o).
Symbol memmove (number 134) is not exported from dependent
module /home/ccaamrg/aixlib/libz.a(shr.o).
Symbol bcopy (number 135) is not exported from dependent
module /home/ccaamrg/aixlib/libz.a(shr.o).
Examine .loader section symbols with the 'dump -Tv' command.
6 % dump -Tv mysql
....
[130] 0x00000000 undef IMP DS EXTref libz.a(shr.o) compress
[131] 0x00000000 undef IMP DS EXTref libz.a(shr.o) strcpy
[132] 0x00000000 undef IMP DS EXTref libz.a(shr.o) strcat
[133] 0x00000000 undef IMP DS EXTref libz.a(shr.o) uncompress
[134] 0x00000000 undef IMP DS EXTref libz.a(shr.o) memmove
[135] 0x00000000 undef IMP DS EXTref libz.a(shr.o) bcopy
....
Why looking for strcpy,strcat,memmove,bcopy in libz? These are libc functions.
>How-To-Repeat:
>Fix:
>Submitter-Id: <submitter ID>
>Originator:
>Organization:
Mike Gahan
Education and Information Support Division
University College London
http://www.ucl.ac.uk/~ccaamrg/
>
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:
>Severity:
>Priority:
>Category: mysql
>Class:
>Release: mysql-3.23.49 (Official MySQL binary)
>Environment:
System: AIX rs6-svr-2 3 4 00454DCB4C00
Some paths: /usr/local/rbin/perl /bin/make /usr/local/rbin/gcc /bin/cc
GCC: Reading specs from /usr/local/rlib/gcc-lib/rs6000-ibm-aix3.2.5/2.7.0/specs
gcc version 2.7.0
Compilation info: CC='gcc' CFLAGS='-O3 -mcpu=powerpc -Wa,-many ' CXX='c++'
CXXFLAGS='-O3 -mcpu=powerpc -Wa,-many -felide-constructors -fno-exceptions -fno-rtti'
LDFLAGS=''
LIBC:
lrwxrwxrwx 1 bin bin 19 Oct 24 08:37 /lib/libc.a ->
/usr/ccs/lib/libc.a
lrwxrwxrwx 1 bin bin 19 Oct 24 08:37 /usr/lib/libc.a ->
/usr/ccs/lib/libc.a
Configure command: ./configure --prefix=/usr/local/mysql '--with-comment=Official
MySQL binary' --with-extra-charsets=complex --with-server-suffix=
--enable-thread-safe-client --enable-local-infile --disable-shared
Perl: This is perl, version 5.005_02 built for aix
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php