From: Robert A Nesius <rnesius@ichips.intel.com>
To: gcc-help@gcc.gnu.org
Subject: Fun with shared libs on HPUX - Request for help
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.02A.10003261514210.706-100000@pdxlx196.pdx.intel.com> (raw)
Message-ID: <20000401000000.4vQFRddd2ubQQ5dfcY7RyNpnNlfNHfijHs5naXSj_WM@z> (raw)
Howdy all,
I managed to get a nice build of gcc 2.95.1 built by following
(roughly) the following steps.
On: HPUX 10.20
Build binuntils 2.9.1 - install bin utils into area where gcc
will be installed.
Configure gcc 2.95.1 like so:
setenv CC gcc
../gcc-2.95.1/configure --prefix=/usr/intel/pkgs/gcc/2.95.1 --enable-shared
--enable-threads --without-gnu-ld --with-gnu-as
--with-as=/usr/intel/pkgs/gcc/2.95.1/hppa1.1-hp-hpux10.20/bin/as
And that seemed to work great! 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. When I try to create a shared library that needs
to pull in routines from libstdc++, I get errors indicating I
need to build libstdc++ with +z or +Z.
eg:
[pdxhp204]-> ~ 55> /usr/intel/pkgs/gcc/2.95.1/bin/g++ -shared -fpic -o libworld.
sl my_helloworld.o
/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
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
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?
Working around the build issues for HPUX has caused me to get into a
slightly confused state as to how fix this. Could some HPUX savvy
people offer some insights?
Thanks much!
-Rob
--
#include <sig.h>
------------------------------------------------------------------
Robert Nesius rnesius@ichips.intel.com 503.264.2830
next reply other threads:[~2000-04-01 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-26 15:30 Robert A Nesius [this message]
2000-03-26 21:32 ` Alexandre Oliva
2000-03-27 10:09 ` Robert A Nesius
2000-03-27 10:55 ` Alexandre Oliva
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` Robert A Nesius
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` Robert A Nesius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.02A.10003261514210.706-100000@pdxlx196.pdx.intel.com \
--to=rnesius@ichips.intel.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).