AIX compilation errors
am 20.08.2002 15:48:51 von Mark McBrideHi.
How-To-Repeat:
I am running AIX 4.3.3 with xlc 3.6.6 and tring to compile MySQL 3.23.52 =
and I am getting errors. They are minor errors but they are nusances.
My configuration script :
export CC=3D"xlc_r -ma -O2 -qmaxmem=3D65536 "
export CXX=3D"xlC_r -ma -O3 -qstrict -qoptimize=3D3 -qmaxmem=3D65536"
export CFLAGS=3D"-I /usr/local/include"
export LDLFAGS=3D"-L /usr/local/lib"
export CPPFLAGS=3D$CFLAGS
export CXXFLAGS=3D$CFLAGS
if ! ./configure --prefix=3D/usr/local/mysql \
--localstatedir=3D/usr/local/mysql/var/mysql \
--sysconfdir=3D/usr/local/mysql/etc/mysql \
--sbindir=3D'/usr/local/mysql/bin' \
--libexecdir=3D'/usr/local/mysql/bin' \
--enable-thread-safe-client \
--enable-large-files
then
echo "Exiting..."
exit
fi
"my_gethostbyname.c", line 75.5: 1506-068 (S) Operation between types=20
"struct hostent*" and "int" is not allowed.
The line 75 in my_gethostbyname.c just needs a simple casting of (struct =
hostent*).
The "_Export" on line 582 in include/global.h is ignored by the xlc=20
compiler but a *lot* of messages are produced.
The _hash_init is not being linked in mysqltest.c.
Making all in client
/bin/sh ../libtool --mode=3Dlink xlc_r -ma -O2 -qmaxmem=3D65536 =
-O=20
-DDBUG_OFF -I /usr/local/include -Wa,-many -DUNDEF_HAVE_INITGROUPS=20
-DSIGNALS_DONT_BREAK_READ -o mysqltest mysqltest.o=20
.../libmysql/libmysqlclient.la -lcrypt -lnsl_r -lm
xlc_r -ma -O2 -qmaxmem=3D65536 -O -DDBUG_OFF -I /usr/local/include=20
-Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ -o=20
..libs/mysqltest mysqltest.o -L../libmysql/.libs -lmysqlclient -lcrypt=20
-lnsl_r -lm -lcrypt -lnsl_r -lm -b nolibpath -b=20
libpath:/usr/local/mysql/lib/mysql:/usr/lib:/lib
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more=20
information.
ld: 0711-317 ERROR: Undefined symbol: ._hash_init
make: The error code from the last command is 8.
I can't seem to get past this last one.
Thanks
mark
------------------------------------------------------------ ---------
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 bugs-thread12384@lists.mysql.com
To unsubscribe, e-mail