Hi All,<div><br></div><div>When trying to compile libaxl on AIX64 platform, I ran into couple of issues.</div><div><br></div><div>1) The ./autogen.sh script always needs python, even though I didn&#39;t want it. I had to install python to workaround it. This is discussed in a separate thread.</div>
<div>2) After running ./configure; I ran make. I got the following error:</div><div><div><br></div><div>libaxl% make</div><div>make[1]: Entering directory `/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl&#39;</div>
<div>Making all in src</div><div>make[2]: Entering directory `/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src&#39;</div><div>source=&#39;axl.c&#39; object=&#39;axl.lo&#39; libtool=yes \</div>
<div>DEPDIR=.deps depmode=aix /bin/sh ../depcomp \</div><div>/bin/sh ../libtool --tag=CC   --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall   -Wstrict-prototypes -g -I..  -DVERSION=\&quot;&quot;0.6.4.b4604.g4611&quot;\&quot; -DPACKAGE_DTD_DIR=\&quot;&quot;/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share&quot;\&quot; -DPACKAGE_TOP_DIR=\&quot;&quot;..&quot;\&quot; -Wall -ansi -D__axl_disable_broken_bool_def__ -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DSHOW_DEBUG_LOG  -Wall -Werror   -g -c -o axl.lo axl.c</div>
<div>mkdir .libs</div><div><span class="Apple-style-span"> cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall -Wstrict-prototypes -g -I.. -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DPACKAGE_DTD_DIR=\&quot;/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share\&quot; -DPACKAGE_TOP_DIR=\&quot;..\&quot; -Wall -ansi -D__axl_disable_broken_bool_def__ -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DSHOW_DEBUG_LOG </span>-Wall -Werror<span class="Apple-style-span"> -g -c -M axl.c  -DPIC -o .libs/axl.o</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);">cc: 1501-210 (S) <b>command option Wall contains an incorrect subargument</b></span></div><div>make[2]: *** [axl.lo] Error 1</div><div>make[2]: Leaving directory `/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src&#39;</div>
<div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl&#39;</div><div>make: *** [all] Error 2</div><div><br></div>On analysis, I figured out that the <b><a href="http://configure.ac">configure.ac</a></b> script had the following flags hardcoded:</div>
<div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">CPPFLAGS=&quot;<b>-Wall -Werror</b>
$PYTHON_INCLUDES&quot;</span></div><div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"><br></span></div><div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">The<b> -Wall</b> and<b> -Werror</b> compiler flags are not recognized by AIX compiler. Hence </span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">I replaced it with the following flag for AIX64:</span></div>
<div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">CPPFLAGS=&quot;-q64 -qwarn64 $PYTHON_INCLUDES&quot;</span></div><div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"><br></span></div><div><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:
minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;
mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">3) After making the above change, I proceeded with the compilation. This time it failed with the following error:</span></div><div><div style="font-family: Calibri, sans-serif; font-size: 11pt; ">
make[2]: Entering directory `/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/src&#39;</div><div style="font-family: Calibri, sans-serif; font-size: 11pt; ">source=&#39;axl.c&#39; object=&#39;axl.lo&#39; libtool=yes \</div>
<div style="font-family: Calibri, sans-serif; font-size: 11pt; ">DEPDIR=.deps depmode=aix /bin/sh ../depcomp \</div><div style="font-family: Calibri, sans-serif; font-size: 11pt; ">/bin/sh ../libtool --tag=CC   --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall   -Wstrict-prototypes -g -I..  -DVERSION=\&quot;&quot;0.6.4.b4604.g4611&quot;\&quot; -DPACKAGE_DTD_DIR=\&quot;&quot;/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share&quot;\&quot; -DPACKAGE_TOP_DIR=\&quot;&quot;..&quot;\&quot; -Wall -ansi -D__axl_disable_broken_bool_def__ -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DSHOW_DEBUG_LOG  -q64 -qwarn64   -g -c -o axl.lo axl.c</div>
<div style="font-family: Calibri, sans-serif; font-size: 11pt; ">mkdir .libs</div><div style="font-family: Calibri, sans-serif; font-size: 11pt; "> cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I.. -Wall -Wstrict-prototypes -g -I.. -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DPACKAGE_DTD_DIR=\&quot;/home/devbld/glal/smittal/smittal_cpp_jsf_unix/thirdparty/AIX-ppc64/libaxl/share\&quot; -DPACKAGE_TOP_DIR=\&quot;..\&quot; -Wall -ansi -D__axl_disable_broken_bool_def__ -DVERSION=\&quot;0.6.4.b4604.g4611\&quot; -DSHOW_DEBUG_LOG -q64 -qwarn64 -g -c -M axl.c  -DPIC -o .libs/axl.o</div>
<div style="font-family: Calibri, sans-serif; font-size: 11pt; ">cc: 1501-210 (S) <b>command option Wall contains an incorrect subargument</b></div><div style="font-family: Calibri, sans-serif; font-size: 11pt; ">make[2]: *** [axl.lo] Error 1</div>
<div style="font-family: Calibri, sans-serif; font-size: 11pt; "><br></div><div><font class="Apple-style-span" face="Calibri, sans-serif"><span class="Apple-style-span" style="font-size: 11pt;">It meant that -Wall flag was still hardcoded somewhere else. On </span><span class="Apple-style-span" style="font-size: 15px;">analyzing</span><span class="Apple-style-span" style="font-size: 11pt;">, I found that the <b>Makefile.am</b> scripts have it hardcoded inside them. I fixed them to remove -Wall entries.</span></font></div>
</div><div><font class="Apple-style-span" face="Calibri, sans-serif"><span class="Apple-style-span" style="font-size: 11pt;"><br></span></font></div><div><font class="Apple-style-span" face="Calibri, sans-serif"><span class="Apple-style-span" style="font-size: 11pt;">4) After fixing Makefile.am files, I again hit similar compilation error, but this time for <b>-</b></span></font><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><b>Wstrict-prototypes</b> flag. Hence I had to remove that flag as well from all Makefile.am files. After making those change, compilation succeeded for me.</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">Here is a summary of various Makefile.am files and various options within them (which I had to remove):</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><p class="MsoListParagraphCxSpFirst" style="margin-left:1.25in;mso-add-space:
auto">./babel/Makefile.am: -Wall, -ansi</p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.25in;mso-add-space:
auto">./knife/Makefile.am: -Wall</p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.25in;mso-add-space:
auto">./ns/Makefile.am: <span style="mso-spacerun:yes"> </span>-Wall, -ansi</p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.25in;mso-add-space:
auto">./src/Makefile.am: <span style="mso-spacerun:yes"> </span>-Wall, -ansi,
-Wstrict-prototypes</p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:1.25in;mso-add-space:
auto">./test/Makefile.am: -Wall</p>

<p class="MsoListParagraphCxSpLast" style="margin-left:1.25in;mso-add-space:auto">./py-axl/Makefile.am:
<span style="mso-spacerun:yes"> </span>-Wall, -ansi, -Wstrict-prototypes</p></span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">It seems that the <a href="http://configure.ac">configure.ac</a> and Makefile.am present within axl are still having options specific to Linux platform.</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">Regards,</span></div>
<div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">Satish M</span></div><div>-- <br>&quot;The happiest of people don´t necessarily have the best of everything, they just make the most of everything that comes along their way.&quot;<br>

</div>