You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I've posted this in the wrong place please accept my apologies and let me know where I should put it..
I've been working on moving some software from RHEL 7 to Ubuntu 22.04.
I utilize Perlbrew and when I built the new 5.36.0 everything seemed normal until I started working on compiling mod_perl for my apache servers. I hit an error:
/usr/bin/ld: /opt/perl5/perls/perl-5.36.0t/lib/5.36.0/x86_64-linux-thread-multi/CORE/libperl.a(op.o): relocation R_X86_64_PC32 against symbol `PL_hash_state_w' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
I did the googling and realized I'm trying to do a 'make' against a library that is static versus a shared object library I think? How do I set perlbrew install options to make this a .so library in Ubuntu just like it is in my previous version in RHEL?
/perl5/perls/perl-5.26.2/lib/5.26.2/x86_64-linux-thread-multi/CORE/libperl.so
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Release: 7.6
Codename: Maipo
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I've posted this in the wrong place please accept my apologies and let me know where I should put it..
I've been working on moving some software from RHEL 7 to Ubuntu 22.04.
I utilize Perlbrew and when I built the new 5.36.0 everything seemed normal until I started working on compiling mod_perl for my apache servers. I hit an error:
/usr/bin/ld: /opt/perl5/perls/perl-5.36.0t/lib/5.36.0/x86_64-linux-thread-multi/CORE/libperl.a(op.o): relocation R_X86_64_PC32 against symbol `PL_hash_state_w' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
I did the googling and realized I'm trying to do a 'make' against a library that is static versus a shared object library I think? How do I set perlbrew install options to make this a .so library in Ubuntu just like it is in my previous version in RHEL?
/perl5/perls/perl-5.26.2/lib/5.26.2/x86_64-linux-thread-multi/CORE/libperl.so
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Release: 7.6
Codename: Maipo
/perl5/perls/perl.5.36.0t/lib/5.36.0/x86_64-linux-thread-multi/CORE/libperl.a
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
TIA!
Beta Was this translation helpful? Give feedback.
All reactions