Perl / perl5

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

Undefined symbols when compiling to miniperl on solaris 10 -- dtrace symbols in pp_hot.o #12076

Closed p5pRT closed 12 years ago

p5pRT commented 12 years ago

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

Searchable as RT112698$

p5pRT commented 12 years ago

From Carl.Furst@mlb.com

Cmd​:

/opt/SUNWspro/bin/cc -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/sparc -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib -o miniperl \   gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.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 numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \   miniperlmain.o opmini.o perlmini.o -lsocket -lnsl -ldl -lm -lc

Produced the following error​:

Undefined first referenced symbol in file __dtrace_perl___sub__entry pp_hot.o __dtraceenabled_perl___sub__return pp_hot.o __dtraceenabled_perl___sub__entry pp_hot.o __dtrace_perl___sub__return pp_hot.o ld​: fatal​: Symbol referencing errors. No output written to miniperl *** Error code 2 make​: Fatal error​: Command failed for target `miniperl'

I did say that to use dtrace and dtrace is located at /usr/sbin/dtrace.

Not sure what I did wrong. Should I compile without dtrace? Would I still be able to trace/dtrace a perl process??

Thanks\, Carl Furst CMS Developer

**********************************************************

MLB.com​: Where Baseball is Always On

p5pRT commented 12 years ago

From @jkeenan

On Mon Apr 30 11​:39​:25 2012\, Carl.Furst@​mlb.com wrote​:

Cmd​:

/opt/SUNWspro/bin/cc -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/sparc -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.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 numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \ miniperlmain.o opmini.o perlmini.o -lsocket -lnsl -ldl -lm -lc

Produced the following error​:

Undefined first referenced symbol in file __dtrace_perl___sub__entry pp_hot.o __dtraceenabled_perl___sub__return pp_hot.o __dtraceenabled_perl___sub__entry pp_hot.o __dtrace_perl___sub__return pp_hot.o ld​: fatal​: Symbol referencing errors. No output written to miniperl *** Error code 2 make​: Fatal error​: Command failed for target `miniperl'

I did say that to use dtrace and dtrace is located at /usr/sbin/dtrace.

Not sure what I did wrong.

Can you post the Configure with options command you used?

Should I compile without dtrace?

For diagnostic purposes\, it would probably be worthwhile to try building from source with just minimal options\, i.e.\, without dtrace.

Thank you very much. Jim Keenan

p5pRT commented 12 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 12 years ago

From @tonycoz

On Mon Apr 30 11​:39​:25 2012\, Carl.Furst@​mlb.com wrote​:

Cmd​:

/opt/SUNWspro/bin/cc -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/sparc -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.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 numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \ miniperlmain.o opmini.o perlmini.o -lsocket -lnsl -ldl -lm -lc

Produced the following error​:

What version of perl is this?

What options did you supply to Configure?

Tony

p5pRT commented 12 years ago

From Carl.Furst@mlb.com

I did the interactive version\, config.sh attached Carl Furst

On 4/30/12 5​:20 PM\, "James E Keenan via RT" \perlbug\-followup@​perl\.org wrote​:

On Mon Apr 30 11​:39​:25 2012\, Carl.Furst@​mlb.com wrote​:

Cmd​:

/opt/SUNWspro/bin/cc -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/sparc -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib -o miniperl \ gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.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 numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \ miniperlmain.o opmini.o perlmini.o -lsocket -lnsl -ldl -lm -lc

Produced the following error​:

Undefined first referenced symbol in file __dtrace_perl___sub__entry pp_hot.o __dtraceenabled_perl___sub__return pp_hot.o __dtraceenabled_perl___sub__entry pp_hot.o __dtrace_perl___sub__return pp_hot.o ld​: fatal​: Symbol referencing errors. No output written to miniperl *** Error code 2 make​: Fatal error​: Command failed for target `miniperl'

I did say that to use dtrace and dtrace is located at /usr/sbin/dtrace.

Not sure what I did wrong.

Can you post the Configure with options command you used?

Should I compile without dtrace?

For diagnostic purposes\, it would probably be worthwhile to try building from source with just minimal options\, i.e.\, without dtrace.

Thank you very much. Jim Keenan

**********************************************************

MLB.com​: Where Baseball is Always On

p5pRT commented 12 years ago

From Carl.Furst@mlb.com

config.sh

p5pRT commented 12 years ago

From @tonycoz

On Thu May 03 01​:50​:13 2012\, Carl.Furst@​mlb.com wrote​:

I did the interactive version\, config.sh attached Carl Furst

From your config.sh it appears you're trying to build perl 5.10.1 which is no longer supported.

I managed to reproduce your problem on 5.10.0 with​:

./Configure -des -Dprefix=/home/tony/perl/5.10.1 -Dusedtrace -Duse64bitint && make

I then tested that with 5.14.1\, which built successfully.

This appears to have been fixed in 3d450a5dd4e8f9a7b2aba0b018f9fe078fb6aa30

Tony

p5pRT commented 12 years ago

@tonycoz - Status changed from 'open' to 'resolved'