[Vortex] libaxl compilation errors on AIX64

Satish Mittal satish.mittal at gmail.com
Mon Jun 20 13:41:11 CEST 2011


Hi All,

When trying to compile libaxl on AIX64 platform, I ran into couple of
issues.

1) The ./autogen.sh script always needs python, even though I didn't want
it. I had to install python to workaround it. This is discussed in a
separate thread.
2) After running ./configure; I ran make. I got the following error:

libaxl% make
make[1]: Entering directory
`/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl'
Making all in src
make[2]: Entering directory
`/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src'
source='axl.c' object='axl.lo' libtool=yes \
DEPDIR=.deps depmode=aix /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC   --mode=compile cc -qlanglvl=extc89
-DHAVE_CONFIG_H -I. -I.. -Wall   -Wstrict-prototypes -g -I..
 -DVERSION=\""0.6.4.b4604.g4611"\"
-DPACKAGE_DTD_DIR=\""/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share"\"
-DPACKAGE_TOP_DIR=\"".."\" -Wall -ansi -D__axl_disable_broken_bool_def__
-DVERSION=\"0.6.4.b4604.g4611\" -DSHOW_DEBUG_LOG  -Wall -Werror   -g -c -o
axl.lo axl.c
mkdir .libs
 cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall -Wstrict-prototypes -g
-I.. -DVERSION=\"0.6.4.b4604.g4611\"
-DPACKAGE_DTD_DIR=\"/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share\"
-DPACKAGE_TOP_DIR=\"..\" -Wall -ansi -D__axl_disable_broken_bool_def__
-DVERSION=\"0.6.4.b4604.g4611\" -DSHOW_DEBUG_LOG -Wall -Werror -g -c -M
axl.c  -DPIC -o .libs/axl.o
cc: 1501-210 (S) *command option Wall contains an incorrect subargument*
make[2]: *** [axl.lo] Error 1
make[2]: Leaving directory
`/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl'
make: *** [all] Error 2

On analysis, I figured out that the *configure.ac* script had the following
flags hardcoded:
CPPFLAGS="*-Wall -Werror* $PYTHON_INCLUDES"

The* -Wall* and* -Werror* compiler flags are not recognized by AIX compiler.
Hence I replaced it with the following flag for AIX64:
CPPFLAGS="-q64 -qwarn64 $PYTHON_INCLUDES"

3) After making the above change, I proceeded with the compilation. This
time it failed with the following error:
make[2]: Entering directory
`/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src'
source='axl.c' object='axl.lo' libtool=yes \
DEPDIR=.deps depmode=aix /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC   --mode=compile cc -qlanglvl=extc89
-DHAVE_CONFIG_H -I. -I.. -Wall   -Wstrict-prototypes -g -I..
 -DVERSION=\""0.6.4.b4604.g4611"\"
-DPACKAGE_DTD_DIR=\""/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share"\"
-DPACKAGE_TOP_DIR=\"".."\" -Wall -ansi -D__axl_disable_broken_bool_def__
-DVERSION=\"0.6.4.b4604.g4611\" -DSHOW_DEBUG_LOG  -q64 -qwarn64   -g -c -o
axl.lo axl.c
mkdir .libs
 cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall -Wstrict-prototypes -g
-I.. -DVERSION=\"0.6.4.b4604.g4611\"
-DPACKAGE_DTD_DIR=\"/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share\"
-DPACKAGE_TOP_DIR=\"..\" -Wall -ansi -D__axl_disable_broken_bool_def__
-DVERSION=\"0.6.4.b4604.g4611\" -DSHOW_DEBUG_LOG -q64 -qwarn64 -g -c -M
axl.c  -DPIC -o .libs/axl.o
cc: 1501-210 (S) *command option Wall contains an incorrect subargument*
make[2]: *** [axl.lo] Error 1

It meant that -Wall flag was still hardcoded somewhere else. On analyzing, I
found that the *Makefile.am* scripts have it hardcoded inside them. I fixed
them to remove -Wall entries.

4) After fixing Makefile.am files, I again hit similar compilation error,
but this time for *-**Wstrict-prototypes* flag. Hence I had to remove that
flag as well from all Makefile.am files. After making those change,
compilation succeeded for me.

Here is a summary of various Makefile.am files and various options within
them (which I had to remove):

./babel/Makefile.am: -Wall, -ansi

./knife/Makefile.am: -Wall

./ns/Makefile.am:  -Wall, -ansi

./src/Makefile.am:  -Wall, -ansi, -Wstrict-prototypes

./test/Makefile.am: -Wall

./py-axl/Makefile.am:  -Wall, -ansi, -Wstrict-prototypes
It seems that the configure.ac and Makefile.am present within axl are still
having options specific to Linux platform.

Regards,
Satish M
-- 
"The happiest of people don´t necessarily have the best of everything, they
just make the most of everything that comes along their way."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aspl.es/pipermail/vortex/attachments/20110620/ce0b4c11/attachment.htm>


More information about the Vortex mailing list