chanduusc / libdnet

Automatically exported from code.google.com/p/libdnet
Other
0 stars 0 forks source link

building python interface failed on OS X (python 2.6): dnet.c problems #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py build

After building libdnet from svn (subsequent to 1.12)

building the python interface starts with:

creating build/temp.macosx-10.6-universal-2.6
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall 
-Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe 
-I../include 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
./dnet.c -o build/temp.macosx-10.6-universal-2.6/./dnet.o
./dnet.c:62: warning: this decimal constant is unsigned only in ISO C90
./dnet.c: In function ‘__pyx_f_4dnet___oserror’:
./dnet.c:447: warning: function declaration isn’t a prototype
./dnet.c: In function ‘__pyx_f_4dnet_3eth_get’:
./dnet.c:581: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness

and dnet.c just doesn't build.  I am seeing an -arch ppc  which seems 
suspicious.

Original issue reported on code.google.com by gregory....@gmail.com on 2 Aug 2011 at 8:51