Bug #42024 AIX537 with VAC 6.0 compile issue
Submitted: 11 Jan 2009 2:11 Modified: 16 Jan 2014 13:47
Reporter: John T Mills Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.67 OS:IBM AIX (AIX 5.3 TL7)
Assigned to: CPU Architecture:Any

[11 Jan 2009 2:11] John T Mills
Description:
I'm compiling mysql versus VisualAge C/C++ 6.0 on AIX 5.3TL7.  The configure completes normally, but, on the make, there is an error on mysql.cc.

# ./configure \
--prefix=/opt/mysql/5.0.67 \
--without-server \
--enable-thread-safe-client \
--enable-large-files
...
# make
...
cc -qlanglvl=ansi -O -DDBUG_OFF -o conf_to_src conf_to_src.o  -lpthread ../zlib/.libs/libzlt.a -lnsl_r -lm
Target "all" is up to date.
Making all in client
        source='mysql.cc' object='mysql.o' libtool=no  DEPDIR=.deps depmode=aix /bin/sh ../depcomp  xlC_r -DUNDEF_THREADS_HACK  -DDEFAULT_MYSQL_HOME="\"/opt/mysql/5.0.67\""  -DDATADIR="\"/opt/mysql/5.0.67/var\"" -I. -I. -I../include -I../include  -I../include  -I../regex       -O3 -DDBUG_OFF    -c -o mysql.o mysql.cc
"mysql.cc", line 3221.20: 1540-0274 (S) The name lookup for "alloca" did not find a declaration.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

How to repeat:
# ./configure \
--prefix=/opt/mysql/5.0.67 \
--without-server \
--enable-thread-safe-client \
--enable-large-files
...
# make
[11 Jan 2009 17:49] Valeriy Kravchuk
Thank you for a problem report. Please, try to execute

export CFLAGS="-I /usr/vac/include -I /usr/include -ma"
export CXXFLAGS="-I /usr/vac/include -I /usr/include -ma"

before running ./configure and check if that will change anything.
[11 Jan 2009 18:42] John T Mills
That fixed the issue.  Thanks for the quick response!

# /opt/mysql/5.0.67/bin/mysql --version
/opt/mysql/5.0.67/bin/mysql  Ver 14.12 Distrib 5.0.67, for ibm-aix5.3.0.0 (powerpc) using  EditLine wrapper
[14 Jan 2009 9:01] Valeriy Kravchuk
Actually, I'd say this is a bug. configure should be able to find out what exact directories should be listed with -I for successful compilation.
[16 Jan 2014 13:46] Ståle Deraas
Posted by developer:
 
This is not a supported platform.