From: Bob D. <bd...@si...> - 2003-12-04 15:16:38
|
Hi, I had to work around PHP doing stuff like that before.. but we use swig to generate the python bindings.. if you don't need python compile rlib with --disable-python to get around this mess.. if you do need python.. you could try getting the latest version of swig (www.swig.org) and then in rlib/libsrc do: swig -python rlib.i it makes a file rlib_wrap.c copy it to rlib/bindings/python/python.c and try to compile again.. let me know if it works Also.. I'm not the only RLIB developer so could we keep discussions on list please: rli...@li... thanks - Bob On Thu, 2003-12-04 at 10:02, Treeve Jelbert wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I found a further problem but this seems to be related to Python itself > > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > - -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rlib\" > - -DVERSION=\"1.1.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 > - -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > - -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > - -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_ODBC=1 -DHAVE_PYTHON=1 -DSTDC_HEADERS=1 > - -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CPDFLIB_H=1 -DHAVE_LIBCPDF=1 > - -DENABLE_CRASH=1 -I. -I. -I../../libsrc/ -I/usr/include/libxml2 > - -I/usr/include -I /usr/include/python2.3 -Wall -Werror -march=athlon-tbird > - -mmmx -m3dnow -O3 -c environment.c -MT environment.lo -MD -MP > - -MF .deps/environment.TPlo -fPIC -DPIC -o .libs/environment.o > In file included from /usr/include/python2.3/Python.h:8, > from environment.c:22: > /usr/include/python2.3/pyconfig.h:847:1: "_POSIX_C_SOURCE" redefined > In file included from /usr/include/stdlib.h:25, > from environment.c:20: > /usr/include/features.h:171:1: this is the location of the previous definition > make[3]: *** [environment.lo] Error 1 > make[3]: Leaving directory `/usr/src/rlib-1.1.5/bindings/python' > > > > > Regards, Treeve > > - -- > PGP Key ID: AB929B24 > PGP Key Fingerprint:31D9 D22F 42E6 F545 662E AB6F 9697 34C5 AB92 9B24 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQE/z0yBlpc0xauSmyQRAvy2AJ48wYvA0XlEdySTcwxlksFTvKYy8ACcC4sX > 6yWRFe52xnNK3bvmOOqNwdM= > =8woV > -----END PGP SIGNATURE----- |