From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Robert A Nesius Cc: gcc-help@gcc.gnu.org Subject: Re: Fun with shared libs on HPUX - Request for help Date: Sun, 26 Mar 2000 21:32:00 -0000 Message-id: References: X-SW-Source: 2000-03/msg00096.html On Mar 26, 2000, Robert A Nesius wrote: > But the problem I'm running into is that my libstdc++ lib is > apparantly not really a shared library, even though -fPIC is getting > set by the configure. > /usr/ccs/bin/ld: DP relative code in file /usr/intel/pkgs/gcc/2.95.1/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.1/libstdc++.a(iostream.o) - shared library must be position ^ See, it's linking with the static version of libstdc++, for some reason. e reason I don't understand. Check whether libstdc++.sl was installed, and, if it was, where it lives. > I'm having trouble bottoming out on what the best way to fix this > is. Build libstdc++ by itself separately after the main build > and reinstall it, using aCC and +Z? No, that definitely won't help, C++ compilers still don't produce link-compatible code. -- Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Robert A Nesius Cc: gcc-help@gcc.gnu.org Subject: Re: Fun with shared libs on HPUX - Request for help Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: X-SW-Source: 2000-q1/msg00406.html Message-ID: <20000401000000.CErI1fXhTtwmRgURocQeQvIOKg6Y0qdDjSGwtNRM-R0@z> On Mar 26, 2000, Robert A Nesius wrote: > But the problem I'm running into is that my libstdc++ lib is > apparantly not really a shared library, even though -fPIC is getting > set by the configure. > /usr/ccs/bin/ld: DP relative code in file /usr/intel/pkgs/gcc/2.95.1/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.1/libstdc++.a(iostream.o) - shared library must be position ^ See, it's linking with the static version of libstdc++, for some reason. e reason I don't understand. Check whether libstdc++.sl was installed, and, if it was, where it lives. > I'm having trouble bottoming out on what the best way to fix this > is. Build libstdc++ by itself separately after the main build > and reinstall it, using aCC and +Z? No, that definitely won't help, C++ compilers still don't produce link-compatible code. -- Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/ Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me