Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
p5pRT opened this issue Apr 30, 2012 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 30, 2012

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

Searchable as RT112698$

@p5pRT
Copy link
Author

p5pRT commented Apr 30, 2012

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
Copy link
Author

p5pRT commented Apr 30, 2012

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
Copy link
Author

p5pRT commented Apr 30, 2012

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

@p5pRT
Copy link
Author

p5pRT commented May 1, 2012

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
Copy link
Author

p5pRT commented May 3, 2012

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
Copy link
Author

p5pRT commented May 3, 2012

From Carl.Furst@mlb.com

config.sh

@p5pRT
Copy link
Author

p5pRT commented May 7, 2012

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 3d450a5

Tony

@p5pRT
Copy link
Author

p5pRT commented May 7, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant