Hello,

My first guess is that you have only built a static libperl library, and we
build shared libraries, which is not possible against a static libperl
library.  It could also be possible that linking against a static
library works when doing a shared library, but only if the executables
inside the static library have been compiled with -fPIC.

There could be an error now, while there was no error before because now
we use the flags corresponding to compilation and linking against Perl
for all the libraries/files.  However, a similar error should have
appeared before when compiling/linking the ctexi2any executable.

Did you manage to compile/link before in the same or similar setting?

On Sat, Jan 10, 2026 at 02:55:33PM -0500, Carl Hansen wrote:
> 
> gcc 16
> 
> make[4]: Entering directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C'
> make  all-am
> make[5]: Entering directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C'
> /bin/bash ../libtool  --tag=CC   --mode=link cc -fwrapv -fno-strict-aliasing 
> -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -fPIC  -version-info 0:0:0 -Wl,-E  
> -fstack-protector-strong -L/usr/local/lib  -o libtexinfo-main.la -rpath 
> /opt/gsrc/lib/texi2any swig/libtexinfo_main_la-swig_interface.lo 
> swig/libtexinfo_main_la-swig_parser_api.lo 
> convert/libtexinfo_main_la-texinfo.lo libtexinfoxs.la libtexinfo.la 
> libtexinfo-convert.la libperlembed_libtexinfo_main.la ../gnulib/lib/libgnu.la 
> -Wl,-E  -fstack-protector-strong -L/usr/local/lib  
> -L/usr/local/lib/perl5/5.42.0/x86_64-linux/CORE -lperl -lpthread -ldl -lm 
> -lcrypt -lutil -lc 
> libtool: link: cc -shared  -fPIC -DPIC  
> swig/.libs/libtexinfo_main_la-swig_interface.o 
> swig/.libs/libtexinfo_main_la-swig_parser_api.o 
> convert/.libs/libtexinfo_main_la-texinfo.o  -Wl,--whole-archive 
> ./.libs/libperlembed_libtexinfo_main.a ../gnulib/lib/.libs/libgnu.a 
> -Wl,--no-whole-archive  -Wl,-rpath 
> -Wl,/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C/.libs
>  -Wl,-rpath -Wl,/opt/gsrc/lib/texi2any 
> -L/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C/.libs 
> -L/usr/local/lib ./.libs/libtexinfoxs.so -L/opt/gsrc/lib 
> ./.libs/libtexinfo.so ./.libs/libtexinfo-convert.so 
> /home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C/.libs/libtexinfoxs.so
>  
> /home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C/.libs/libtexinfo.so
>  -L/usr/local/lib/perl5/5.42.0/x86_64-linux/CORE 
> /opt/gsrc/lib/libunistring.so -lperl -lpthread -ldl -lm -lcrypt -lutil -lc  
> -fstack-protector-strong -Wl,-E -fstack-protector-strong -Wl,-E 
> -fstack-protector-strong   -Wl,-soname -Wl,libtexinfo-main.so.0 -o 
> .libs/libtexinfo-main.so.0.0.0
> /opt/gsrc/bin/ld: 
> /usr/local/lib/perl5/5.42.0/x86_64-linux/CORE/libperl.a(op.o): warning: 
> relocation against `PL_modcount' in read-only section `.text'
> /opt/gsrc/bin/ld: 
> /usr/local/lib/perl5/5.42.0/x86_64-linux/CORE/libperl.a(op.o): relocation 
> R_X86_64_PC32 against symbol `PL_compcv' can not be used when making a shared 
> object; recompile with -fPIC
> /opt/gsrc/bin/ld: final link failed: bad value
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:2998: libtexinfo-main.la] Error 1
> make[5]: Leaving directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C'
> make[4]: *** [Makefile:2748: all] Error 2
> make[4]: Leaving directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta/C'
> make[3]: *** [Makefile:1875: all-recursive] Error 1
> make[3]: Leaving directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build/tta'
> make[2]: *** [Makefile:2005: all-recursive] Error 1
> make[2]: Leaving directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build'
> make[1]: *** [Makefile:1944: all] Error 2
> make[1]: Leaving directory 
> '/home/carl/build/gsrc/pkg/gnu/texinfo/work/texinfo-7.2.90-build'
> [build] Build failed. Exiting.
> make: *** [../../../gar/gar.lib.mk:642: 
> build-work/texinfo-7.2.90-build/Makefile] Error 1
> 
> 
> 
> 
> 
> 
> 
> 
> 

Reply via email to