Opened 19 years ago

Closed 19 years ago

#3444 closed defect (fixed)

py-ctypes build fails under tiger, in libffi

Reported by: eichin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

---> Configuring py-ctypes ---> Building py-ctypes with target build Error: Target com.apple.build returned: shell command "cd "/Users/eichin/optlocal/darwinports/ dports/python/py-ctypes/work/ctypes-0.9.2" && CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/ local/lib /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: Libraries have been installed in:

/Users/eichin/optlocal/darwinports/dports/python/py-ctypes/work/ctypes-0.9.2/build/

temp.darwin-8.1.0-Power_Macintosh-2.4/lib

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:

  • add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable during execution

See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages.


make[2]: Nothing to be done for `install-data-am'. Building static FFI library: cd build/temp.darwin-8.1.0-Power_Macintosh-2.4/libffi && '/Users/eichin/optlocal/darwinports/ dports/python/py-ctypes/work/ctypes-0.9.2/source/gcc/libffi/configure' --disable-shared --enable- static --enable-multilib=no --prefix='/Users/eichin/optlocal/darwinports/dports/python/py-ctypes/ work/ctypes-0.9.2/build/temp.darwin-8.1.0-Power_Macintosh-2.4' && make install building '_ctypes' extension creating build/temp.darwin-8.1.0-Power_Macintosh-2.4/source creating build/temp.darwin-8.1.0-Power_Macintosh-2.4/source/darwin gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno- common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/opt/local/include - DIS_BIG_ENDIAN=1 -Isource/darwin -I/Users/eichin/optlocal/darwinports/dports/python/py-ctypes/ work/ctypes-0.9.2/build/temp.darwin-8.1.0-Power_Macintosh-2.4/include -I/Users/eichin/optlocal/ darwinports/dports/python/py-ctypes/work/ctypes-0.9.2/build/temp.darwin-8.1.0- Power_Macintosh-2.4/lib/gcc/3.5.0/include/libffi -I/Library/Frameworks/Python.framework/Versions/ 2.4/include/python2.4 -c source/_ctypes.c -o build/temp.darwin-8.1.0-Power_Macintosh-2.4/source/ _ctypes.o In file included from source/_ctypes.c:85: /opt/local/include/ffi.h:408: warning: function declaration isn't a prototype /opt/local/include/ffi.h:423: warning: function declaration isn't a prototype /opt/local/include/ffi.h:609: warning: function declaration isn't a prototype source/_ctypes.c: In function 'CFuncPtr_new': source/_ctypes.c:2339: warning: assignment makes pointer from integer without a cast source/_ctypes.c: At top level: source/_ctypes.c:3455: error: static declaration of 'Pointer_Type' follows non-static declaration source/ctypes.h:99: error: previous declaration of 'Pointer_Type' was here error: command 'gcc' failed with exit status 1

Change History (1)

comment:1 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

fixed

Note: See TracTickets for help on using tickets.