2 messages in com.mysql.lists.bugsAIX compilation errors
FromSent OnAttachments
Mark McBride20 Aug 2002 06:48 
Sinisa Milivojevic22 Aug 2002 12:36 
Subject:AIX compilation errors
From:Mark McBride (MMcB@ohsers.org)
Date:08/20/2002 06:48:29 AM
List:com.mysql.lists.bugs

Hi.

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="xlc_r -ma -O2 -qmaxmem=65536 " export CXX="xlC_r -ma -O3 -qstrict -qoptimize=3 -qmaxmem=65536" export CFLAGS="-I /usr/local/include" export LDLFAGS="-L /usr/local/lib" export CPPFLAGS=$CFLAGS export CXXFLAGS=$CFLAGS

if ! ./configure --prefix=/usr/local/mysql \ --localstatedir=/usr/local/mysql/var/mysql \ --sysconfdir=/usr/local/mysql/etc/mysql \ --sbindir='/usr/local/mysql/bin' \ --libexecdir='/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 "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 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=link xlc_r -ma -O2 -qmaxmem=65536 -O -DDBUG_OFF -I /usr/local/include -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ -o mysqltest mysqltest.o ../libmysql/libmysqlclient.la -lcrypt -lnsl_r -lm xlc_r -ma -O2 -qmaxmem=65536 -O -DDBUG_OFF -I /usr/local/include -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ -o .libs/mysqltest mysqltest.o -L../libmysql/.libs -lmysqlclient -lcrypt -lnsl_r -lm -lcrypt -lnsl_r -lm -b nolibpath -b 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 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