<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Simplified Arabic Fixed";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello Numpy Discussion List,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So I’m trying to get numpy working on an AIX 6.1 system.  Initially I had a lot of problems trying to compile the package because the xlc compiler weren’t installed on this machine, but apparently the Python package we installed had been built with them.  Once we got xlc installed the process seemed to work pretty well until we got to compiling heapsort.c.  At this point I began to get a huge number of errors in the form:  <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>compile options: '-Inumpy/core/include -Ibuild/src.aix-6.1-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/freeware/include/python2.7 -Ibuild/src.aix-6.1-2.7/numpy/core/src/multiarray -Ibuild/src.aix-6.1-2.7/numpy/core/src/umath -c'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>xlc_r: build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.c<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-343 (S) Redeclaration of fgetpos64 differs from previous declaration on line 323 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-377 (I) The type "long long*" of parameter 2 differs from the previous type "long* restrict".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-343 (S) Redeclaration of fseeko64 differs from previous declaration on line 471 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-377 (I) The type "long long" of parameter 2 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-343 (S) Redeclaration of fsetpos64 differs from previous declaration on line 325 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-377 (I) The type "const long long*" of parameter 2 differs from the previous type "const long*".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-343 (S) Redeclaration of ftello64 differs from previous declaration on line 472 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 171.17: 1506-343 (S) Redeclaration of lseek64 differs from previous declaration on line 169 of "/usr/include/unistd.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 171.17: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 171.17: 1506-377 (I) The type "long long" of parameter 2 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/sys/lockf.h", line 64.20: 1506-343 (S) Redeclaration of lockf64 differs from previous declaration on line 62 of "/usr/include/sys/lockf.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>...................................................<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 942.25: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 942.25: 1506-377 (I) The type "long long" of parameter 2 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 943.25: 1506-343 (S) Redeclaration of fsync_range64 differs from previous declaration on line 940 of "/usr/include/unistd.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/unistd.h", line 943.25: 1506-377 (I) The type "long long" of parameter 3 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>error: Command "/usr/vac/bin/xlc_r -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -q32 -qbitfields=signed -qmaxmem=70000 -qalloca -bmaxdata:0x80000000 -Wl,-brtl -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DNDEBUG -O2 -Inumpy/core/include -Ibuild/src.aix-6.1-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/freeware/include/python2.7 -Ibuild/src.aix-6.1-2.7/numpy/core/src/multiarray -Ibuild/src.aix-6.1-2.7/numpy/core/src/umath -c build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.c -o build/temp.aix-6.1-2.7/build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.o" failed with exit status 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>There are a lot more than this.  Probably in neighborhood of 40 lines all told.  I spent some time doing research and this appears to be something not terribly uncommon when compiling F/OSS on AIX.  Most of the instances appeared to involve either sshd or smb.  Unfortunately the most commonly cited solution (using the --disable-largefile to configure) won’t work for compiling a Python module.  One suggestion I found that did help was to explicitly include some of the standard libraries in the .c file.  So I added:<o:p></o:p></p><p class=MsoNormal><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:black'>#include<unistd.h></span><span style='color:black'><o:p></o:p></span></p><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>#include<stdarg.h><o:p></o:p></span></pre><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>To heapsort.c.  That dramatically reduced the error messages.  Now I get:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>compile options: '-Inumpy/core/include -Ibuild/src.aix-6.1-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/freeware/include/python2.7 -Ibuild/src.aix-6.1-2.7/numpy/core/src/multiarray -Ibuild/src.aix-6.1-2.7/numpy/core/src/umath -c'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>xlc_r: build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.c<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-343 (S) Redeclaration of fgetpos64 differs from previous declaration on line 323 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-377 (I) The type "long long*" of parameter 2 differs from the previous type "long* restrict".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-343 (S) Redeclaration of fseeko64 differs from previous declaration on line 471 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-377 (I) The type "long long" of parameter 2 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-343 (S) Redeclaration of fsetpos64 differs from previous declaration on line 325 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-377 (I) The type "const long long*" of parameter 2 differs from the previous type "const long*".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-343 (S) Redeclaration of ftello64 differs from previous declaration on line 472 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-343 (S) Redeclaration of fgetpos64 differs from previous declaration on line 323 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 528.12: 1506-377 (I) The type "long long*" of parameter 2 differs from the previous type "long* restrict".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-343 (S) Redeclaration of fseeko64 differs from previous declaration on line 471 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 531.12: 1506-377 (I) The type "long long" of parameter 2 differs from the previous type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-343 (S) Redeclaration of fsetpos64 differs from previous declaration on line 325 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 532.12: 1506-377 (I) The type "const long long*" of parameter 2 differs from the previous type "const long*".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-343 (S) Redeclaration of ftello64 differs from previous declaration on line 472 of "/usr/include/stdio.h".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>"/usr/include/stdio.h", line 533.16: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long".<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.0pt;font-family:"Simplified Arabic Fixed";color:#1F497D'>error: Command "/usr/vac/bin/xlc_r -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -q32 -qbitfields=signed -qmaxmem=70000 -qalloca -bmaxdata:0x80000000 -Wl,-brtl -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DNDEBUG -O2 -Inumpy/core/include -Ibuild/src.aix-6.1-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/opt/freeware/include/python2.7 -Ibuild/src.aix-6.1-2.7/numpy/core/src/multiarray -Ibuild/src.aix-6.1-2.7/numpy/core/src/umath -c build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.c -o build/temp.aix-6.1-2.7/build/src.aix-6.1-2.7/numpy/core/src/npysort/heapsort.o" failed with exit status 1<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And that’s all of them, and all related to stdio.h.  Unfortunately the obvious solution of explicitly including stdio.h didn’t help.  It also seems really odd that I would have to explicitly include standard system libraries.  I’m hoping there some sort of solution to this that doesn’t involve a massive amount of recoding.  Thanks in advance for your help!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Trevor<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>