Operating System - HP-UX
1833792 Members
2227 Online
110063 Solutions
New Discussion

Can't compile python modules

 

Can't compile python modules

I'm trying to complie gnome bindings for gtk2, I have this stopper:

/usr/local/pa20_32/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/python2.3 -DORBIT2=1 -I/opt/Garnome/include/orbit-2.0/ORBitservices -I/opt/Garnome/include/orbit-2.0 -I/opt/Garnome/include/libIDL-2.0 -I/opt/Garnome/include/glib-2.0 -I/opt/Garnome/lib/glib-2.0/include -DORBIT2_STUBS_API -I/opt/Garnome/include -I/usr/X11R6/include -I/usr/contrib/X11R6/include -I/usr/local/include -D__STDC_EXT__ -g -I/opt/Garnome/include -I/usr/X11R6/include -L/opt/Garnome/lib -L/usr/X11R6/lib -I/usr/contrib/X11R6/include -L/usr/contrib/X11R6/lib -I/usr/local/include -L/usr/local/lib -O2 -pipe -mpa-risc-2-0 -Wall -std=c9x -MT stub-gen.lo -MD -MP -MF .deps/stub-gen.Tpo -c stub-gen.c -DPIC In file included from /usr/local/include/python2.3/Python.h:28,
from pyorbit.h:23,
from pyorbit-private.h:28,
from stub-gen.c:24:
/usr/local/pa20_32/lib/gcc-lib/hppa2.0w-hp-hpux11/3.3.1/include/stdio.h:658: error: parse error before "ftello"
/usr/local/pa20_32/lib/gcc-lib/hppa2.0w-hp-hpux11/3.3.1/include/stdio.h:659: error: parse error before "off_t"

I have build gcc as Merjin posted...

matias@trutien:~$ /usr/local/pa20_32/bin/gcc -v
Reading specs from /usr/local/pa20_32/lib/gcc-lib/hppa2.0w-hp-hpux11/3.3.1/specs
Configured with: ../src/configure --enable-languages=c,c++,objc --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --disable-shared --disable-nls --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --host=hppa2.0w-hp-hpux11
Thread model: single
gcc version 3.3.1


I think is some issue with largefile support, but I can't understand what are the correct defines.

btw, I am building gnome 2.4 in 11.00 and is currently usable!!

http://nauta.homeunix.net/gnomeHPUXWiki/

Thanks in advance.
3 REPLIES 3
Nico Schockaert
Trusted Contributor

Re: Can't compile python modules

Hello,

Maybe this helps :

-D_LARGEFILE_SOURCE for "ftello" problem

and

-D_FILE_OFFSET_BITS=64 for "off_t" problem

Regards,

Nico

Re: Can't compile python modules

Nico, have tried those and didnt help, same error.
any ideas?

Thxs

Re: Can't compile python modules

Hey, problem solved!!!
-std=c9x, that is the one!!! just removing it from all the Makefiles did the trick.
Thanks