gpc-20041218 - linker problems on
ih8mj at fjf.gnu.de
Fri Dec 31 03:44:12 CET 2004
Prof A Olowofoyeku (The African Chief) wrote:
> I have built the core gcc-3.3.3 and gpc-20041218 to see whether they
> will run on Smoothwall (yes, I know that Smoothwal is a security
> appliance and you shouldn't run compilers on it, etc., etc. - but I
> have my own reasons).
> Anyway, I built the compilers on Fedora Core 1. The gcc compiler
> compiles and links simple programs okay. The gpc compiler working on an
> "hello world" program on the other hand produces this:
> "/usr/gnu/lib/gcc-lib/i386-redhat linux/3.3.3/libgpc.a(rts.o)
> (.text+0x21d1): In function `_p_CGetP
> wEnt': : Using 'getpwent' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking
> linux/3.3.3/libgpc.a(rts.o)(.text+0x215b): In function `_p_CGetP
> : Using 'getpwnam' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking"
> and such other complaints about 'getpwuid' and 'setpwent'.
> Any simple solution? Thanks.
I've got the same warnings (at least, in my case these were
warnings, here they look like errors) when trying to link statically
As far as I can make any sense of it, apparently current versions of
glibc don't really support static linking anymore. :-(
Did you give `-static' explicitly?
Frank Heckenbach, frank at g-n-u.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
More information about the Gpc