An idea why apreq isnt building
Mithun Bhattacharya <[email protected]> Sun, 30 Nov 2025 03:01:16 -0600
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CAHTPV9+7xLky8Do73kxtHL8_TA1sjrvqMDG=6BqkwcPstMfgjA@mail.gmail.com> |
--000000000000d726600644cc1b4d Content-Type: text/plain; charset="UTF-8" I usually build everything from scratch but I havent done one in a couple of years. # Perl $ perlbrew install stable -des -Duserelocatableinc [email protected] -Dman1dir=none -Dman3dir=none # Apache $ ./configure --prefix=/home/xxxxx/httpd/2.4.65RH8 --with-included-apr --enable-mpms-shared --with-mpm=prefork --enable-pie --enable-alias --enable-apreq --enable-authn_core --enable-authz_core --enable-authz_user --enable-autoindex --enable-cgi --enable-dir --enable-env --enable-headers --enable-log_config --enable-mime --enable-mpm_prefork --enable-perl --enable-status --enable-unixd --enable-ssl --enable-proxy # Apreq - attempted $ perl Makefile.PL MP_APXS=/home/xxxx/httpd/2.4.65RH8/bin/apxs MP_NO_THREADS=1 This is blowing up for -fPIC which I see both the Perl and Apache builds are using - am I missreading the error ? ------------------------------------------- cc -I/hfs/home/mb525/OpenSource/RH8/mod_perl-2.0.13/src/modules/perl -I/hfs/home/mb525/OpenSource/RH8/mod_perl-2.0.13/xs -I/hfs/home/mb525/httpd/2.4.65RH8/include -I/hfs/home/mb525/httpd/2.4.65RH8/include -I/hfs/home/mb525/httpd/2.4.65RH8/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -I/hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE -DMOD_PERL -DMP_COMPAT_1X -fgnu89-inline -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -fPIC \ -c modperl_exports.c && mv modperl_exports.o modperl_exports.lo rm -f mod_perl.so cc -shared -O2 -L/usr/local/lib -fstack-protector-strong \ \ mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_debug.lo modperl_common_util.lo modperl_common_log.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo modperl_exports.lo -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc \ -o mod_perl.so /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(op.o): relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(perl.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(universal.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(av.o): relocation R_X86_64_32 against symbol `PL_memory_wrap' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(builtin.o): relocation R_X86_64_32S against undefined symbol `PL_sv_immortals' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(caretx.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(class.o): relocation R_X86_64_32S against symbol `PL_charclass' can not be used when making a shared object; recompile with -fPIC --000000000000d726600644cc1b4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">I usually build everything from scratch b= ut I havent=C2=A0done one in a couple of years.<div><br></div><div># Perl</= div><div>$ perlbrew install stable -des -Duserelocatableinc -Dcf_email=3D<a= href=3D"mailto:[email protected]">[email protected]</a> -Dman1dir=3Dnone -Dman3dir= =3Dnone=C2=A0</div><div><br></div><div># Apache</div><div>$=C2=A0./configur= e --prefix=3D/home/xxxxx/httpd/2.4.65RH8 --with-included-apr --enable-mpms-= shared --with-mpm=3Dprefork --enable-pie --enable-alias --enable-apreq --en= able-authn_core --enable-authz_core --enable-authz_user --enable-autoindex = --enable-cgi --enable-dir --enable-env --enable-headers --enable-log_config= --enable-mime --enable-mpm_prefork --enable-perl --enable-status --enable-= unixd --enable-ssl --enable-proxy</div><div><br></div><div># Apreq - attemp= ted</div><div>$=C2=A0=C2=A0perl Makefile.PL MP_APXS=3D/home/xxxx/httpd/2.4.= 65RH8/bin/apxs MP_NO_THREADS=3D1</div><div><br></div><div>This is blowing u= p for -fPIC which I see both the Perl and Apache builds are using - am I mi= ssreading the error ?</div><div>-------------------------------------------= </div><div><p class=3D"m_6752661090878578269p1" style=3D"margin:0in;backgro= und:black;font-size:7.5pt;font-family:Monaco;color:rgb(242,242,242)"><span = class=3D"m_6752661090878578269s1">cc -I/hfs/home/mb525/OpenSource/RH8/mod_p= erl-2.0.13/src/modules/perl -I/hfs/home/mb525/OpenSource/RH8/mod_perl-2.0.1= 3/xs -I/hfs/home/mb525/httpd/2.4.65RH8/include -I/hfs/home/mb525/httpd/2.4.= 65RH8/include</span><span class=3D"m_6752661090878578269apple-converted-spa= ce">=C2=A0=C2=A0</span><span class=3D"m_6752661090878578269s1">-I/hfs/home/= mb525/httpd/2.4.65RH8/include -fwrapv -fno-strict-aliasing -pipe -fstack-pr= otector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS= =3D64 -D_FORTIFY_SOURCE=3D2 -I/hfs/home/mb525/perl5/perlbrew_RH8/perls/perl= -5.42.0/lib/5.42.0/x86_64-linux/CORE -DMOD_PERL -DMP_COMPAT_1X -fgnu89-inli= ne -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -fPIC \</span><u></u><u></u></p><= p class=3D"m_6752661090878578269p1" style=3D"margin:0in;background:black;fo= nt-size:7.5pt;font-family:Monaco;color:rgb(242,242,242)"><span class=3D"m_6= 752661090878578269s1">-c modperl_exports.c && mv modperl_exports.o = modperl_exports.lo</span><u></u><u></u></p><p class=3D"m_675266109087857826= 9p1" style=3D"margin:0in;background:black;font-size:7.5pt;font-family:Monac= o;color:rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">rm -f mod= _perl.so</span><u></u><u></u></p><p class=3D"m_6752661090878578269p1" style= =3D"margin:0in;background:black;font-size:7.5pt;font-family:Monaco;color:rg= b(242,242,242)"><span class=3D"m_6752661090878578269s1">cc -shared -O2 -L/u= sr/local/lib -fstack-protector-strong \</span><u></u><u></u></p><p class=3D= "m_6752661090878578269p1" style=3D"margin:0in;background:black;font-size:7.= 5pt;font-family:Monaco;color:rgb(242,242,242)"><span class=3D"m_67526610908= 78578269apple-converted-space">=C2=A0</span><span class=3D"m_67526610908785= 78269s1">\</span><u></u><u></u></p><p class=3D"m_6752661090878578269p1" sty= le=3D"margin:0in;background:black;font-size:7.5pt;font-family:Monaco;color:= rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">mod_perl.lo modpe= rl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd= .lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.= lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo mod= perl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.= lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo= modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo m= odperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_debug= .lo modperl_common_util.lo modperl_common_log.lo modperl_hooks.lo modperl_d= irectives.lo modperl_flags.lo modperl_xsinit.lo modperl_exports.lo</span><s= pan class=3D"m_6752661090878578269apple-converted-space">=C2=A0=C2=A0</span= ><span class=3D"m_6752661090878578269s1">-Wl,-E</span><span class=3D"m_6752= 661090878578269apple-converted-space">=C2=A0=C2=A0</span><span class=3D"m_6= 752661090878578269s1">-fstack-protector-strong -L/usr/local/lib</span><span= class=3D"m_6752661090878578269apple-converted-space">=C2=A0=C2=A0</span><s= pan class=3D"m_6752661090878578269s1">-L/hfs/home/mb525/perl5/perlbrew_RH8/= perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE -lperl -lpthread -ldl -lm -l= crypt -lutil -lc \</span><u></u><u></u></p><p class=3D"m_675266109087857826= 9p1" style=3D"margin:0in;background:black;font-size:7.5pt;font-family:Monac= o;color:rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">-o mod_pe= rl.so</span><u></u><u></u></p><p class=3D"m_6752661090878578269p1" style=3D= "margin:0in;background:black;font-size:7.5pt;font-family:Monaco;color:rgb(2= 42,242,242)"><span class=3D"m_6752661090878578269s1">/usr/bin/ld: /hfs/home= /mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/li= bperl.a(op.o): relocation R_X86_64_32 against symbol `PL_memory_wrap' c= an not be used when making a shared object; recompile with -fPIC</span><u><= /u><u></u></p><p class=3D"m_6752661090878578269p1" style=3D"margin:0in;back= ground:black;font-size:7.5pt;font-family:Monaco;color:rgb(242,242,242)"><sp= an class=3D"m_6752661090878578269s1">/usr/bin/ld: /hfs/home/mb525/perl5/per= lbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(perl.o):= relocation R_X86_64_32 against `.rodata.str1.1' can not be used when m= aking a shared object; recompile with -fPIC</span><u></u><u></u></p><p clas= s=3D"m_6752661090878578269p1" style=3D"margin:0in;background:black;font-siz= e:7.5pt;font-family:Monaco;color:rgb(242,242,242)"><span class=3D"m_6752661= 090878578269s1">/usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-= 5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(universal.o): relocation R_X8= 6_64_32 against `.rodata.str1.1' can not be used when making a shared o= bject; recompile with -fPIC</span><u></u><u></u></p><p class=3D"m_675266109= 0878578269p1" style=3D"margin:0in;background:black;font-size:7.5pt;font-fam= ily:Monaco;color:rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">= /usr/bin/ld: /hfs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.= 0/x86_64-linux/CORE/libperl.a(av.o): relocation R_X86_64_32 against symbol = `PL_memory_wrap' can not be used when making a shared object; recompile= with -fPIC</span><u></u><u></u></p><p class=3D"m_6752661090878578269p1" st= yle=3D"margin:0in;background:black;font-size:7.5pt;font-family:Monaco;color= :rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">/usr/bin/ld: /hf= s/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/C= ORE/libperl.a(builtin.o): relocation R_X86_64_32S against undefined symbol = `PL_sv_immortals' can not be used when making a shared object; recompil= e with -fPIC</span><u></u><u></u></p><p class=3D"m_6752661090878578269p1" s= tyle=3D"margin:0in;background:black;font-size:7.5pt;font-family:Monaco;colo= r:rgb(242,242,242)"><span class=3D"m_6752661090878578269s1">/usr/bin/ld: /h= fs/home/mb525/perl5/perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/= CORE/libperl.a(caretx.o): relocation R_X86_64_32 against `.rodata.str1.1= 9; can not be used when making a shared object; recompile with -fPIC</span>= <u></u><u></u></p><p class=3D"m_6752661090878578269p1" style=3D"margin:0in;= background:black;font-size:7.5pt;font-family:Monaco;color:rgb(242,242,242)"= ><span class=3D"m_6752661090878578269s1">/usr/bin/ld: /hfs/home/mb525/perl5= /perlbrew_RH8/perls/perl-5.42.0/lib/5.42.0/x86_64-linux/CORE/libperl.a(clas= s.o): relocation R_X86_64_32S against symbol `PL_charclass' can not be = used when making a shared object; recompile with -fPIC</span></p></div></di= v></div> --000000000000d726600644cc1b4d--