Hi! I've tried to make my libgpc be shared. I work on HP SuperDome - hppa2.0w-hp-hpux11.00 (or at least the configure calls it so). I've tried to install gpc based on gcc-2.95.X unsuccesfully so I've installed gpc-20030509 based on gcc-3.2.1. Everything worked OK. But libgpc installed as static despite WITH_SHARED=yes option. After checking p/rts/Makefile I've pointed out that in that file WITH_SHARED= i.e. is just empty. After fixing it and making inside the rts I've got the following: nm: libgpc.so.2.1.20030509 not found. It was because of -Wl,-soname=libgpc.`cat ...` option specified to xgcc on the linking step. Eliminating it didn't help, now I got another error: LD: DP relative code in file /var/tmp/xxx.o - shared library ... Adding the -fPIC option used in building the *.lo files to linking command helped. Now the question - why configure doesn't do all these things? Also before that I got some strange errors when configure erroneusly created rts-config.h file - it didn't found open64 and usleep functions in /usr/local/include/fcntl.h - it was discovered by compiler. Any ideas, why? Thank you in advance, Nick
participants (3)
-
"Nick Ioffe -
Frank Heckenbach -
nick