hello all,
i am trying to compile gpc-20060325 with the gcc-3.4.4 core on hp-ux 11.23 (PA-RISC) but i get the following error when the compilation process reaches the rts directory:
gmake[2]: Entering directory `/home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/p/rts' echo '{ rts-config.inc. Generated automatically from rts-config.h. }'
rts-config.inc
sed -e 's,/*,{,g;s,*/,},g;s,^[ \t]*#(.*),{$\1},' rts-config.h >> rts-config.inc /home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/xgcc -B/home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/ -B/opt/gpc/hppa2.0w-hp-hpux11.23/bin/ -B/opt/gpc/hppa2.0w-hp-hpux11.23/lib/ -isystem /opt/gpc/hppa2.0w-hp-hpux11.23/include -isystem /opt/gpc/hppa2.0w-hp-hpux11.23/sys-include -c -I. -W -Wall -Wmissing-prototypes -Wmissing-declarations -g -O2 -Wpointer-arith -Wwrite-strings "/home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c" /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:1: warning: -g is only supported when using GAS on this processor, /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:1: warning: -g option disabled /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:660: error: conflicting types for 'open64' /usr/include/sys/fcntl.h:246: error: previous declaration of 'open64' was here /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:660: error: conflicting types for 'open64' /usr/include/sys/fcntl.h:246: error: previous declaration of 'open64' was here /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:663:1: warning: "open" redefined In file included from /usr/include/fcntl.h:9, from /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:89: /usr/include/sys/fcntl.h:259:1: warning: this is the location of the previous definition /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:691: error: conflicting types for 'usleep' /home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/include/sys/unistd.h:413: error: previous declaration of 'usleep' was here /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:691: error: conflicting types for 'usleep' /home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/include/sys/unistd.h:413: error: previous declaration of 'usleep' was here /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c: In function `_p_Sleep': /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:1084: warning: implicit declaration of function `_sleep' /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c: In function `_p_CStringStrSignal': /home/aduritz/truetrue/gnu-pascal/gcc-3.4.4/gcc/p/rts/rts.c:2446: warning: empty body in an if-statement gmake[2]: *** [rts.o] Error 1 gmake[2]: Leaving directory `/home/aduritz/truetrue/gnu-pascal/gpc-build/gcc/p/rts' gmake[1]: *** [pascal.rts] Error 2 gmake[1]: Leaving directory `/home/aduritz/truetrue/gnu-pascal/gpc-build/gcc' gmake: *** [all-gcc] Error 2
i was able to resolve the "usleep" by removing the definition from rts.c and leaving the one in unistd.h.
any help will be greatly appreciated.
greetings,
Stoyan Angelov