public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: compile perl 5.8.1with gcc 3.3 on Solaris 9
@ 2003-10-17 15:43 lrtaylor
  0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2003-10-17 15:43 UTC (permalink / raw)
  To: charles_cox, gcc-help

We had a similar problem and found that adding -Wl,-E to ccdlflags in
config.sh fixed the problem.  

ccdlflags=' -Wl,-E -z combreloc'

That causes the Perl binary to export its symbols to the Perl modules.
If they aren't exported, then no modules that reference symbols in Perl
will be able to be loaded.

We have had no problems using the GNU assembler and linker, so I don't
think you should have to revert back to the Solaris ones in order to get
it to work.

Cheers,
Lyle

-----Original Message-----
From: charles_cox@att.net [mailto:charles_cox@att.net] 
Sent: Thursday, October 16, 2003 4:56 PM
To: gcc-help@gcc.gnu.org
Subject: compile perl 5.8.1with gcc 3.3 on Solaris 9

I have built gcc 3.3 and have compiled a variety of different packages
with it
since.  Unfortunately I'm having a heck of a time building perl 5.8.1
with it.
 The Perl install notes claim that there is a problem with the GNU as
and ld
utilities (I'm using binutils 2.14) which results in problems with
Perl's
dynamic loading features.  Perl will compile successfully, but you get
runtime
errors like "ld.so.1: ./perl: fatal: relocation error:"  Their docs say
to add
'-B/usr/ccs/bin/' to the gcc command to make it use the Solaris as and
ld
utils, but this doesn't seem to work.  gcc still appears to be using my
GNU as
and ld anyway.

Is there some other way to make gcc use the Solaris as and ld instead of
the
GNU ones?  Does anybody know of some way to make the GNU as and ld build
Perl's dynamic loading stuff correctly?  If I configure Perl to disable
dynamic loading, then it builds and runs fine, but lots of Perl modules
that
depend on dynamic loading won't run...

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

* compile perl 5.8.1with gcc 3.3 on Solaris 9
@ 2003-10-16 22:56 charles_cox
  0 siblings, 0 replies; 2+ messages in thread
From: charles_cox @ 2003-10-16 22:56 UTC (permalink / raw)
  To: gcc-help

I have built gcc 3.3 and have compiled a variety of different packages with it
since.  Unfortunately I'm having a heck of a time building perl 5.8.1 with it.
 The Perl install notes claim that there is a problem with the GNU as and ld
utilities (I'm using binutils 2.14) which results in problems with Perl's
dynamic loading features.  Perl will compile successfully, but you get runtime
errors like "ld.so.1: ./perl: fatal: relocation error:"  Their docs say to add
'-B/usr/ccs/bin/' to the gcc command to make it use the Solaris as and ld
utils, but this doesn't seem to work.  gcc still appears to be using my GNU as
and ld anyway.

Is there some other way to make gcc use the Solaris as and ld instead of the
GNU ones?  Does anybody know of some way to make the GNU as and ld build
Perl's dynamic loading stuff correctly?  If I configure Perl to disable
dynamic loading, then it builds and runs fine, but lots of Perl modules that
depend on dynamic loading won't run...

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

end of thread, other threads:[~2003-10-17 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 15:43 compile perl 5.8.1with gcc 3.3 on Solaris 9 lrtaylor
  -- strict thread matches above, loose matches on Subject: below --
2003-10-16 22:56 charles_cox

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