Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.97k stars 560 forks source link

perl linking problem #3536

Closed p5pRT closed 20 years ago

p5pRT commented 23 years ago

Migrated from rt.perl.org#5986 (status was 'resolved')

Searchable as RT5986$

p5pRT commented 23 years ago

From jack.rong@alcatel.com

I am building perl5.6 version in my unix "SunOS 5.7 Generic_106541-11 sun4u sparc SUNW\,Ultra-5_10" and it fails in linking process as shown below​:

rm -f libperl.a /usr/local/bin/ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o cc -L/nsm/pine/lib -L/usr/local/lib -L/nsm/pine/thirdparty/CC5.0/SUNWspro/SC5.0/lib -o miniperl \   miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc -lcrypt -lsec /lib/libcrypt.a ld​: warning​: file libperl.a ignored​: unable to locate archive symbol table Undefined first referenced symbol in file PL_in_eval opmini.o PL_Xpv opmini.o PL_savestack opmini.o PL_debstash opmini.o PL_markstack_max opmini.o PL_sub_generation opmini.o Perl_newAV opmini.o Perl_av_fill opmini.o PL_perl_destruct_level miniperlmain.o . . . .

ld​: fatal​: Symbol referencing errors. No output written to miniperl *** Error code 1 make​: Fatal error​: Command failed for target `miniperl'

Looks like the problem probably is in libperl.a. But don't know why. By the way\, I am using default installation.

Thanks a lot for the possible helps from you!

Jack

p5pRT commented 23 years ago

From @doughera88

On Wed\, 7 Mar 2001 jack.rong@​alcatel.com wrote​:

Dear Sir\,

I am building perl5.6 version in my unix "SunOS 5.7 Generic_106541-11 sun4u sparc SUNW\,Ultra-5_10" and it fails in linking process as shown below​:

/usr/local/bin/ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o

Looks like the problem probably is in libperl.a. But don't know why. By the way\, I am using default installation.

It's probably because '/usr/local/bin/ar' isn't producing a valid archive for you. I have no idea what your local version of 'ar' is or why it isn't working correctly. However\, you should be just fine using the native Solaris 'ar'\, found in /usr/ccs/bin/. I suggest moving /usr/local/bin/ar out of your $PATH and trying the 'make' again. Everything should work fine with the Solaris 'ar' command.