public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Use +z or +Z to recompile...
@ 2002-10-21 10:57 Venkatakrishnan, V
  2002-10-21 11:04 ` Jeff Law
  0 siblings, 1 reply; 8+ messages in thread
From: Venkatakrishnan, V @ 2002-10-21 10:57 UTC (permalink / raw)
  To: 'law@redhat.com'; +Cc: gcc-help

Ah I see, now that I am using it during linking as well it worked, thanks
Jeff :).
But how come it wasn't sufficient to use it during compile only, why
explicitly at link as well??

-----Original Message-----
From: Jeff Law [mailto:law@porcupine.cygnus.com] 
Sent: Monday, October 21, 2002 2:03 PM
To: Venkatakrishnan, V
Cc: gcc-help@gcc.gnu.org
Subject: Re: Use +z or +Z to recompile... 


In message
<8229C4577A00D511ABC00090277A45A0012361B2@us0111-ch-ms1.sdi.xcdg.xer
ox.com>, "Venkatakrishnan, V" writes:
 >Using -fPIC gives the same error.
Did you use it when linking your shared library as well?
jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Use +z or +Z to recompile...
@ 2002-10-21 10:47 Venkatakrishnan, V
  2002-10-21 10:55 ` Jeff Law
  0 siblings, 1 reply; 8+ messages in thread
From: Venkatakrishnan, V @ 2002-10-21 10:47 UTC (permalink / raw)
  To: 'law@redhat.com'; +Cc: gcc-help

Using -fPIC gives the same error.

-----Original Message-----
From: Jeff Law [mailto:law@porcupine.cygnus.com] 
Sent: Monday, October 21, 2002 12:34 PM
To: Venkatakrishnan, V
Cc: gcc-help@gcc.gnu.org
Subject: Re: Use +z or +Z to recompile... 


In message
<8229C4577A00D511ABC00090277A45A0012361B1@us0111-ch-ms1.sdi.xcdg.xer
ox.com>, "Venkatakrishnan, V" writes:
 >Hi,
 >	I'm using gcc ver 3.2 20020708 (experimental) on my HPUX 11.0 box.
 >	When building a shared library I get an error as follows....
 >
 >/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccCoJZUg.o - shared
>library must be position independent.  Use +z or +Z to recompile.  >
 >	Now I'm already using the -fpic option while compiling my .c to .o
 >using which I then try to build my .sl, so I guess my object file is
already  >position independent.  Why the error during link though?
 >	Is there something I'm missing here??
Use -fPIC rather than -fpic.
jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Use +z or +Z to recompile...
@ 2002-10-21  9:01 Venkatakrishnan, V
  2002-10-21  9:25 ` Jeff Law
  0 siblings, 1 reply; 8+ messages in thread
From: Venkatakrishnan, V @ 2002-10-21  9:01 UTC (permalink / raw)
  To: gcc-help

Hi,
	I'm using gcc ver 3.2 20020708 (experimental) on my HPUX 11.0 box.
	When building a shared library I get an error as follows....

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

	Now I'm already using the -fpic option while compiling my .c to .o
using which I then try to build my .sl, so I guess my object file is already
position independent.  Why the error during link though?
	Is there something I'm missing here??

Regards,
Venky



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-10-23 10:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 10:57 Use +z or +Z to recompile Venkatakrishnan, V
2002-10-21 11:04 ` Jeff Law
  -- strict thread matches above, loose matches on Subject: below --
2002-10-21 10:47 Venkatakrishnan, V
2002-10-21 10:55 ` Jeff Law
2002-10-21 17:50   ` Nagu
2002-10-23  3:45     ` Andrea Bocci
2002-10-21  9:01 Venkatakrishnan, V
2002-10-21  9:25 ` Jeff Law

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).