From: Bob D. <bd...@si...> - 2003-12-04 13:46:27
Attachments:
rlib.patch
|
Try this please odd cause my gcc is 3.3.2 and I don't have the same problem On Thu, 2003-12-04 at 08:37, Treeve Jelbert wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > using gcc-3.3.2 > > 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/usr/include/libxml2 -I/usr/include > - -I /usr/include/python2.3 -Wall -Werror -march=athlon-tbird -mmmx -m3dnow -O3 > - -c util.c -MT util.lo -MD -MP -MF .deps/util.TPlo -fPIC -DPIC > - -o .libs/util.o > util.c: In function `tentothe': > util.c:156: warning: integer constant is too large for "long" type > util.c:156: warning: integer constant is too large for "long" type > util.c:156: warning: integer constant is too large for "long" type > make[2]: *** [util.lo] Error 1 > make[2]: Leaving directory `/usr/src/rlib-1.1.5/libsrc' > > > > 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/zziXlpc0xauSmyQRAlvpAJ9t4qbHNnMeL27NX7dMs0pJHobUcACgswmO > 7dgvdHoz079CzgWjO7Bxblk= > =ay/n > -----END PGP SIGNATURE----- |
From: Bob D. <bd...@si...> - 2003-12-04 14:39:08
Attachments:
rlib.patch
|
I think the M4 macro allows for it to detect the latest version of PYTHON.. so I'll change it to that.. and I'll add a configure option --with-python-version= to set it to whatever.. because most distros ship w/ a bunch of python's - Bob On Thu, 2003-12-04 at 09:17, Treeve Jelbert wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thursday 04 December 2003 14:46, you wrote: > > Try this please > > > > odd cause my gcc is 3.3.2 and I don't have the same problem > > > > similar problem elsewhere > fxp.c: In function `rlib_fxp_div': > fxp.c:49: warning: integer constant is too large for "long" type > > > incidentally, I have Python 2.3 on my system, so I had to patch configure.in > (see attachment) > > > > > On Thu, 2003-12-04 at 08:37, Treeve Jelbert wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > using gcc-3.3.2 > > > > > > 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/usr/include/libxml2 -I/usr/include - -I > > > /usr/include/python2.3 -Wall -Werror -march=athlon-tbird -mmmx -m3dnow > > > -O3 - -c util.c -MT util.lo -MD -MP -MF .deps/util.TPlo -fPIC -DPIC - -o > > > .libs/util.o > > > util.c: In function `tentothe': > > > util.c:156: warning: integer constant is too large for "long" type > > > util.c:156: warning: integer constant is too large for "long" type > > > util.c:156: warning: integer constant is too large for "long" type > > > make[2]: *** [util.lo] Error 1 > > > make[2]: Leaving directory `/usr/src/rlib-1.1.5/libsrc' > > > > > > > > > > > > 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/zziXlpc0xauSmyQRAlvpAJ9t4qbHNnMeL27NX7dMs0pJHobUcACgswmO > > > 7dgvdHoz079CzgWjO7Bxblk= > > > =ay/n > > > -----END PGP SIGNATURE----- > 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/z0ILlpc0xauSmyQRAp8ZAKDlgliTG+KvPK8Ho5RrPw1b5ZM8sACfXJBk > Apsu3Uat1ac2YNdxqr/K5ko= > =Laxs > -----END PGP SIGNATURE----- |
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----- |