I'm trying in vain to build the latest version of MySQL 3.23.51 (downloaded 
today) on a new AIX box we've recently setup.  It has the latest IBM 
patches for the VisualAge C++ compiler v5, bringing it up to rev 5020.

When building, there are two problems.. One is that the configure script 
improperly determines the proper way to use gethostbyname_r for this 
platform and causes the errors when compiling my_gethostbyname.c due to not 
setting HAVE_GETHOSTBYNAME_R_RETURN_INT.  Instead it tries to use a 
function that returns a struct, which causes lots of problems.  I hacked 
that problem by hand in config.h and acconfig.h..

Also, libtool needed to be hacked due to it passing an option to the 
compiler similar to "{-wl},-berok"..  I just removed the "{-wl}," and left 
it as "-berok"..

The next problem is a bit more difficult.. It arises when libtool is 
invoked in libmysql_r, and is passing a bad option to the compiler (-L with 
no other option following it)

gmake[2]: Entering directory 
`/quest/vista/rflower/src/databases/mysql/irvvsdu02/mysql-3.23.51/libmysql_
r'
/bin/sh ../libtool --mode=link xlc_r -ma -O3 -qstrict -qoptimize=3 
-qmaxmem=8192   -g  -DDBUG_ON -DSAFE_MUTEX -I /usr/local/include  -Wa,-many 
-DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ -L /usr/local/lib -o 
libmysqlclient_r.la -rpath /opt/mysql/lib/mysql -version-info 10:0:0 
libmysql.lo net.lo violite.lo password.lo get_password.lo errmsg.lo 
my_init.lo my_static.lo my_malloc.lo my_realloc.lo 
my_create.lo my_delete.lo mf_tempfile.lo my_open.lo 
mf_casecnv.lo my_read.lo my_write.lo errors.lo                  my_error.lo 
my_getwd.lo my_div.lo                       mf_pack.lo my_messnc.lo 
mf_dirname.lo mf_fn_ext.lo                      mf_wcomp.lo typelib.lo 
safemalloc.lo my_alloc.lo                        mf_format.lo mf_path.lo 
mf_unixpath.lo my_fopen.lo                      my_symlink.lo my_fstream.lo 
mf_loadpath.lo my_pthread.lo my_thr_init.lo 
thr_mutex.lo mulalloc.lo string.lo default.lo 
my_compress.lo array.lo my_once.lo list.lo my_net.lo 
charset.lo hash.lo mf_iocache.lo my_seek.lo 
my_pread.lo mf_cache.lo my_gethostbyname.lo getopt.lo getopt1.lo getvar.lo 
my_lib.lo strmov.lo strxmov.lo strnmov.lo strmake.lo strend.lo 
strnlen.lo strfill.lo is_prefix.lo                      int2str.lo 
str2int.lo strinstr.lo strcont.lo                    strcend.lo 
bchange.lo bmove.lo bmove_upp.lo longlong2str.lo 
strtoull.lo strtoll.lo llstr.lo                         ctype.lo  dbug.lo 
-lz -lcrypt -lnsl_r -lm
rm -fr .libs/libmysqlclient_r.la .libs/libmysqlclient_r.* 
.libs/libmysqlclient_r.*
xlc_r -ma -O3 -qstrict -qoptimize=3 -qmaxmem=8192  -bM:SRE -o 
.libs/libmysqlclient_r.so.10.0.0  libmysql.o net.o violite.o password.o 
get_password.o errmsg.o my_init.o my_static.o my_malloc.o my_realloc.o 
my_create.o my_delete.o mf_tempfile.o my_open.o mf_casecnv.o my_read.o 
my_write.o errors.o my_error.o my_getwd.o my_div.o mf_pack.o my_messnc.o 
mf_dirname.o mf_fn_ext.o mf_wcomp.o typelib.o safemalloc.o my_alloc.o 
mf_format.o mf_path.o mf_unixpath.o my_fopen.o my_symlink.o my_fstream.o 
mf_loadpath.o my_pthread.o my_thr_init.o thr_mutex.o mulalloc.o string.o 
default.o my_compress.o array.o my_once.o list.o my_net.o charset.o hash.o 
mf_iocache.o my_seek.o my_pread.o mf_cache.o my_gethostbyname.o getopt.o 
getopt1.o getvar.o my_lib.o strmov.o strxmov.o strnmov.o strmake.o strend.o 
strnlen.o strfill.o is_prefix.o int2str.o str2int.o strinstr.o strcont.o 
strcend.o bchange.o bmove.o bmove_upp.o longlong2str.o strtoull.o strtoll.o 
llstr.o ctype.o dbug.o   -L -lz -lcrypt -lnsl_r -lm -lc  -bexpall -bnoentry 
-berok
xlc_r: 1501-208 command option L is missing a subargument
gmake[2]: *** [libmysqlclient_r.la] Error 40
gmake[2]: Leaving directory 
`/quest/vista/rflower/src/databases/mysql/irvvsdu02/mysql-3.23.51/libmysql_
r'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/quest/vista/rflower/src/databases/mysql/irvvsdu02/mysql-3.23.51'
gmake: *** [all-recursive-am] Error 2

Any comments on this one?  I'm thinking again that libtool is at fault 
here, but I'm not 100% sure..


---------------------------------------------------------------------
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

Reply via email to