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

Bug #130108 for perl5: Perl 5.24.1 fails to compile with DTrace enabled on FreeBSD #15810

Open
p5pRT opened this issue Jan 15, 2017 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 15, 2017

Migrated from rt.perl.org#130563 (status was 'open')

Searchable as RT130563$

@p5pRT
Copy link
Author

p5pRT commented Jan 15, 2017

From @ip75

Hello

I tried to apply all attached patches but I got the same error while
compilation.

dtrace_mini.o​: In function `fixsymbol'​:
drti.c​:(.text+0x203)​: undefined reference to `gelf_getsym'
drti.c​:(.text+0x256)​: undefined reference to `elf_strptr'
dtrace_mini.o​: In function `dtrace_dof_init'​:
drti.c​:(.text+0x3b6)​: undefined reference to `elf_version'
drti.c​:(.text+0x3e9)​: undefined reference to `elf_begin'
drti.c​:(.text+0x41a)​: undefined reference to `elf_getshdrstrndx'
drti.c​:(.text+0x45d)​: undefined reference to `elf_nextscn'
drti.c​:(.text+0x474)​: undefined reference to `gelf_getshdr'
drti.c​:(.text+0x4a7)​: undefined reference to `elf_strptr'
drti.c​:(.text+0x4c6)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x4ef)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x527)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x8ae)​: undefined reference to `elf_end'
drti.c​:(.text+0x93e)​: undefined reference to `elf_end'
*** [lib/buildcustomize.pl] Error code 1
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/lang/perl5.24.
*** [install] Error code 1

Stop in /usr/ports/lang/perl5.24.

info​:

FreeBSD 9.3-STABLE FreeBSD 9.3-STABLE #155 r309781​: Sat Dec 10 06​:32​:50 MSK
2016 root@​bvg​:/usr/obj/usr/src/sys/BVG amd64

[ /usr/ports/lang/perl5.24 ] # cat distinfo
TIMESTAMP = 1484491231
SHA256 (perl/perl-5.24.1.tar.xz) =
03a77bac4505c270f1890ece75afc7d4b555090b41aa41ea478747e23b2afb3f
SIZE (perl/perl-5.24.1.tar.xz) = 11569284

____________________________________________________
Yours sincerely,
Igor

@p5pRT
Copy link
Author

p5pRT commented Jan 17, 2017

From @jkeenan

On Sun, 15 Jan 2017 22​:02​:57 GMT, igor.polovykh@​gmail.com wrote​:

Hello

I tried to apply all attached patches but I got the same error while
compilation.

dtrace_mini.o​: In function `fixsymbol'​:
drti.c​:(.text+0x203)​: undefined reference to `gelf_getsym'
drti.c​:(.text+0x256)​: undefined reference to `elf_strptr'
dtrace_mini.o​: In function `dtrace_dof_init'​:
drti.c​:(.text+0x3b6)​: undefined reference to `elf_version'
drti.c​:(.text+0x3e9)​: undefined reference to `elf_begin'
drti.c​:(.text+0x41a)​: undefined reference to `elf_getshdrstrndx'
drti.c​:(.text+0x45d)​: undefined reference to `elf_nextscn'
drti.c​:(.text+0x474)​: undefined reference to `gelf_getshdr'
drti.c​:(.text+0x4a7)​: undefined reference to `elf_strptr'
drti.c​:(.text+0x4c6)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x4ef)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x527)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x8ae)​: undefined reference to `elf_end'
drti.c​:(.text+0x93e)​: undefined reference to `elf_end'
*** [lib/buildcustomize.pl] Error code 1
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/lang/perl5.24.
*** [install] Error code 1

Stop in /usr/ports/lang/perl5.24.

info​:

FreeBSD 9.3-STABLE FreeBSD 9.3-STABLE #155 r309781​: Sat Dec 10 06​:32​:50 MSK
2016 root@​bvg​:/usr/obj/usr/src/sys/BVG amd64

[ /usr/ports/lang/perl5.24 ] # cat distinfo
TIMESTAMP = 1484491231
SHA256 (perl/perl-5.24.1.tar.xz) =
03a77bac4505c270f1890ece75afc7d4b555090b41aa41ea478747e23b2afb3f
SIZE (perl/perl-5.24.1.tar.xz) = 11569284

____________________________________________________
Yours sincerely,
Igor

As indicated here​:

https://rt-archive.perl.org/perl5/Ticket/Display.html?id=130108#txn-1443092

... the Perl 5 committer rebased the patches on the HEAD of the 'blead' branch and then applied them to that branch in a series of commits two weeks ago. Applying the patches to perl-5.24.1 would probably not be the correct approach.

If you can checkout perl 5 blead on your FreeBSD-with-dtrace machine and build and test it there, that would be a good indicator of where things stand. You can request assistance on irc.perl.org #p5p or #bsdperl.

Thank you very much.
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Jan 17, 2017

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

@p5pRT
Copy link
Author

p5pRT commented Jan 17, 2017

From @jkeenan

On Tue, 17 Jan 2017 13​:17​:05 GMT, jkeenan wrote​:

On Sun, 15 Jan 2017 22​:02​:57 GMT, igor.polovykh@​gmail.com wrote​:

Hello

I tried to apply all attached patches but I got the same error while
compilation.

dtrace_mini.o​: In function `fixsymbol'​:
drti.c​:(.text+0x203)​: undefined reference to `gelf_getsym'
drti.c​:(.text+0x256)​: undefined reference to `elf_strptr'
dtrace_mini.o​: In function `dtrace_dof_init'​:
drti.c​:(.text+0x3b6)​: undefined reference to `elf_version'
drti.c​:(.text+0x3e9)​: undefined reference to `elf_begin'
drti.c​:(.text+0x41a)​: undefined reference to `elf_getshdrstrndx'
drti.c​:(.text+0x45d)​: undefined reference to `elf_nextscn'
drti.c​:(.text+0x474)​: undefined reference to `gelf_getshdr'
drti.c​:(.text+0x4a7)​: undefined reference to `elf_strptr'
drti.c​:(.text+0x4c6)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x4ef)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x527)​: undefined reference to `elf_getdata'
drti.c​:(.text+0x8ae)​: undefined reference to `elf_end'
drti.c​:(.text+0x93e)​: undefined reference to `elf_end'
*** [lib/buildcustomize.pl] Error code 1
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the
failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/lang/perl5.24.
*** [install] Error code 1

Stop in /usr/ports/lang/perl5.24.

info​:

FreeBSD 9.3-STABLE FreeBSD 9.3-STABLE #155 r309781​: Sat Dec 10
06​:32​:50 MSK
2016 root@​bvg​:/usr/obj/usr/src/sys/BVG amd64

[ /usr/ports/lang/perl5.24 ] # cat distinfo
TIMESTAMP = 1484491231
SHA256 (perl/perl-5.24.1.tar.xz) =
03a77bac4505c270f1890ece75afc7d4b555090b41aa41ea478747e23b2afb3f
SIZE (perl/perl-5.24.1.tar.xz) = 11569284

____________________________________________________
Yours sincerely,
Igor

As indicated here​:

https://rt-archive.perl.org/perl5/Ticket/Display.html?id=130108#txn-1443092

... the Perl 5 committer rebased the patches on the HEAD of the
'blead' branch and then applied them to that branch in a series of
commits two weeks ago. Applying the patches to perl-5.24.1 would
probably not be the correct approach.

Which is to say​: The patches in question will not appear in a production release version of perl until perl-5.26.0 is released in May of this year.

If you can checkout perl 5 blead on your FreeBSD-with-dtrace machine
and build and test it there, that would be a good indicator of where
things stand. You can request assistance on irc.perl.org #p5p or
#bsdperl.

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

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

No branches or pull requests

2 participants