Open linker issues on FreeBSD
Osipov, Michael
michael.osipov at siemens.com
Wed Mar 27 13:39:34 CET 2019
Hi folks,
I have sent this initially to Nikola Lečić, but did not receive an
answer to this. This issue persists at least since TL 2018 and is
present in pretest TL 2019:
=====
Hi Nikola,
you might remember that I contacted you sometime ago about incorrectly
linked executables on FreeBSD. I started migrating to a new host with
12-STABLE into a jail with 12-RELEASE and the issue with TeX Live 2018
still persists:
> asy:
> libOSMesa.so.9 => not found (0)
> libglut.so.12 => not found (0)
> libGLU.so.1 => not found (0)
> libGL.so.1 => not found (0)
forget these, OpenGL ist not installed.
> libreadline.so.8 => not found (0)
Does not exist:
> ldadocgen at deblndw011x1j:/usr/ports
> $ grep -r --include='**/pkg-plist' libreadline.so .
> ./devel/readline/pkg-plist:lib/libreadline.so
> ./devel/readline/pkg-plist:lib/libreadline.so.7
> librt.so.1 => /usr/lib/librt.so.1 (0x800c95000)
> libz.so.6 => /lib/libz.so.6 (0x800c9d000)
> libm.so.5 => /lib/libm.so.5 (0x800cb7000)
> libncurses.so.8 => /lib/libncurses.so.8 (0x800ce9000)
> libc++.so.1 => /usr/lib/libc++.so.1 (0x800d40000)
> libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x800e0f000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x800e30000)
> libthr.so.3 => /lib/libthr.so.3 (0x800e48000)
> libc.so.7 => /lib/libc.so.7 (0x800e73000)
> xelatex:
> libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
(0x801cea000)
> libfreetype.so.9 => not found (0)
Does not exist:
ldadocgen at deblndw011x1j:/usr/ports
$ grep -r --include='**/pkg-plist' libfreetype.so .
./print/freetype2/pkg-plist:lib/libfreetype.so
./print/freetype2/pkg-plist:lib/libfreetype.so.6
./print/freetype2/pkg-plist:lib/libfreetype.so.6.16.1
> libm.so.5 => /lib/libm.so.5 (0x801d34000)
> libc.so.7 => /lib/libc.so.7 (0x801d66000)
> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x802159000)
> libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x802211000)
> libthr.so.3 => /lib/libthr.so.3 (0x80223c000)
> libz.so.6 => /lib/libz.so.6 (0x802267000)
> libbz2.so.4 => /usr/lib/libbz2.so.4 (0x802281000)
> xetex:
> libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
(0x801cea000)
> libfreetype.so.9 => not found (0)
See above.
> libm.so.5 => /lib/libm.so.5 (0x801d34000)
> libc.so.7 => /lib/libc.so.7 (0x801d66000)
> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x802159000)
> libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x802211000)
> libthr.so.3 => /lib/libthr.so.3 (0x80223c000)
> libz.so.6 => /lib/libz.so.6 (0x802267000)
> libbz2.so.4 => /usr/lib/libbz2.so.4 (0x802281000)
For now I have added the following file:
> root at deblndw011x1j:/usr/local/etc/libmap.d
> $ cat texlive.conf
> [/usr/local/ldadocgen/]
> libfreetype.so.9 libfreetype.so.6
> libreadline.so.8 libreadline.so.7
Did you get a chance to take a look at it in your build jail? Shall I
rereport this to the TeX Live ML?
Tried also:
ftp://ftp.cstug.cz/pub/tex/local/tlpretest/archive/xetex.amd64-freebsd.tar.xz
> ldadocgen at deblndw011x1j:/tmp/bin/amd64-freebsd
> $ ldd ./xetex
> ./xetex:
> libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
(0x801cea000)
> libfreetype.so.9 => not found (0)
> libm.so.5 => /lib/libm.so.5 (0x801d34000)
> libc.so.7 => /lib/libc.so.7 (0x801d66000)
> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x802159000)
> libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x802211000)
> libthr.so.3 => /lib/libthr.so.3 (0x80223c000)
> libz.so.6 => /lib/libz.so.6 (0x802267000)
> libbz2.so.4 => /usr/lib/libbz2.so.4 (0x802281000)
> ldadocgen at deblndw011x1j:/tmp/bin/amd64-freebsd
> ldadocgen at deblndw011x1j:/tmp/bin/amd64-freebsd
> $ readelf -d ./xetex
>
> Dynamic section at offset 0x16a5040 contains 26 entries:
> Tag Type Name/Value
> 0x0000000000000001 NEEDED Shared library:
[libfontconfig.so.1]
> 0x0000000000000001 NEEDED Shared library:
[libfreetype.so.9]
> 0x0000000000000001 NEEDED Shared library: [libm.so.5]
> 0x0000000000000001 NEEDED Shared library: [libc.so.7]
> 0x000000000000000f RPATH Library rpath: [/usr/local/lib]
> 0x000000000000001d RUNPATH Library runpath:
[/usr/local/lib]
How can we fix that except with libmap.conf for TL 2019?
Michael
More information about the tex-live
mailing list