public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Dr. Armin Tschammer" <tscha00a@oi42.kwu.siemens.de>
To: help-gcc@gnu.org
Subject: Linking shared libraries on hpux 10.20 with gcc 2.92.1 fails !!
Date: Thu, 28 Oct 1999 05:37:00 -0000	[thread overview]
Message-ID: <38183EF6.39D5007F@oi42.kwu.siemens.de> (raw)

Hi,
Now I succeded in compiling and installing the gcc 2.95.1 on a hpux
10.20 box.
I would like to create shared libraries and I did the following:


                  g++ -fpic  -c a.C
                  g++ -fpic  -c  b.C
                  g++ -shared  a.o b.o -o x.sl

  I got the following message:

/usr/ccs/bin/ld: DP relative code in file /var/tmp/cc2TTYoc.o - shared
library must be position
    independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status


Any hints ??

Thanks

      Armin





WARNING: multiple messages have this Message-ID
From: "Dr. Armin Tschammer" <tscha00a@oi42.kwu.siemens.de>
To: help-gcc@gnu.org
Subject: Linking shared libraries on hpux 10.20 with gcc 2.92.1 fails !!
Date: Sun, 31 Oct 1999 13:57:00 -0000	[thread overview]
Message-ID: <38183EF6.39D5007F@oi42.kwu.siemens.de> (raw)
Message-ID: <19991031135700.i9oyTmxqyNfWz9Vs3GFh5jp-VaRTCtZdXyY6Excuodk@z> (raw)

Hi,
Now I succeded in compiling and installing the gcc 2.95.1 on a hpux
10.20 box.
I would like to create shared libraries and I did the following:


                  g++ -fpic  -c a.C
                  g++ -fpic  -c  b.C
                  g++ -shared  a.o b.o -o x.sl

  I got the following message:

/usr/ccs/bin/ld: DP relative code in file /var/tmp/cc2TTYoc.o - shared
library must be position
    independent.  Use +z or +Z to recompile.
collect2: ld returned 1 exit status


Any hints ??

Thanks

      Armin





             reply	other threads:[~1999-10-28  5:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-28  5:37 Dr. Armin Tschammer [this message]
1999-10-31 13:57 ` Dr. Armin Tschammer
1999-11-10 11:22 ` jd_wells
1999-11-10 11:22   ` jd_wells
1999-11-10 12:03   ` Eric Ladner
1999-11-10 12:03     ` Eric Ladner
1999-11-10 12:17     ` Jeffrey A Law
1999-11-30 23:28       ` Jeffrey A Law
1999-11-30 23:28     ` Eric Ladner
1999-11-11  1:27   ` Joerg Faschingbauer
1999-11-11  1:27     ` Joerg Faschingbauer
1999-11-30 23:28     ` Joerg Faschingbauer
1999-11-30 23:28   ` jd_wells

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=38183EF6.39D5007F@oi42.kwu.siemens.de \
    --to=tscha00a@oi42.kwu.siemens.de \
    --cc=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).