pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

www/opera on FreeBSD



I tried to run www/opera on FreeBSD.
$ uname -a
FreeBSD cocoon.triaxx.org 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC  amd64

The package built successfully but libraries seem to be missing. First I tried to build the package with the "native" FreeBSD emulation. 
$ bmake show-var VARNAME=EMUL_TYPE.freebsd
native
$ opera 
ld-elf.so.1: Shared object "libfreetype.so.9" not found, required by "opera"

Then, I tried the builtin emulation.
$ bmake show-var VARNAME=EMUL_TYPE.freebsd
builtin
$ opera
ld-elf.so.1: Shared object "libfreetype.so.9" not found, required by "opera"

Actually, I did not understand what these two emulation types are expected to do. When I look at the resolution of shared objects, I notice that many are missing.
$ ldd /usr/pkg/lib/opera/opera 
/usr/pkg/lib/opera/opera:
        libfreetype.so.9 => not found (0)
        libfontconfig.so.1 => not found (0)
        libSM.so.6 => not found (0)
        libICE.so.6 => not found (0)
        libXext.so.6 => not found (0)
        libXrender.so.1 => not found (0)
        libX11.so.6 => not found (0)
        libthr.so.3 => /lib/libthr.so.3 (0x801ca0000)
        librt.so.1 => /usr/lib/librt.so.1 (0x801ccd000)
        libstdc++.so.6 => not found (0)
        libm.so.5 => /lib/libm.so.5 (0x801cd5000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801d07000)
        libc.so.7 => /lib/libc.so.7 (0x801d21000)

When I search for freetype library on the system, I only find the one provided by pkgsrc.
$ find / -type f -name "libfreetype*"
/usr/pkg/lib/libfreetype.la
/usr/pkg/lib/libfreetype.a
/usr/pkg/lib/libfreetype.so.6.17.1

If I look at the print/freetype2 provided by FreeBSD ports, that is the same version of the library.

Even with LD_LIBRARY_PATH set to /usr/pkg/lib, libfreetype.so.9 is not resolved.
$ LD_LIBRARY_PATH=/usr/pkg/lib ldd /usr/pkg/lib/opera/opera 
/usr/pkg/lib/opera/opera:
        libfreetype.so.9 => not found (0)
        libfontconfig.so.1 => /usr/pkg/lib/libfontconfig.so.1 (0x801ca0000)
        libSM.so.6 => /usr/pkg/lib/libSM.so.6 (0x801cef000)
        libICE.so.6 => /usr/pkg/lib/libICE.so.6 (0x801cf9000)
        libXext.so.6 => /usr/pkg/lib/libXext.so.6 (0x801d15000)
        libXrender.so.1 => /usr/pkg/lib/libXrender.so.1 (0x801d29000)
        libX11.so.6 => /usr/pkg/lib/libX11.so.6 (0x801d35000)
        libthr.so.3 => /lib/libthr.so.3 (0x801e79000)
        librt.so.1 => /usr/lib/librt.so.1 (0x801ea6000)
        libstdc++.so.6 => not found (0)
        libm.so.5 => /lib/libm.so.5 (0x801eae000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801ee0000)
        libc.so.7 => /lib/libc.so.7 (0x801efa000)
        libfreetype.so.6 => /usr/pkg/lib/libfreetype.so.6 (0x8022f3000)
        libz.so.6 => /lib/libz.so.6 (0x8023ae000)
        libbz2.so.4 => /usr/lib/libbz2.so.4 (0x8023c8000)
        libexpat.so.1 => /usr/pkg/lib/libexpat.so.1 (0x8023dc000)
        libuuid.so.1 => /usr/pkg/lib/libuuid.so.1 (0x802408000)
        libintl.so.8 => /usr/pkg/lib/libintl.so.8 (0x802411000)
        libxcb.so.1 => /usr/pkg/lib/libxcb.so.1 (0x80241e000)
        libXau.so.6 => /usr/pkg/lib/libXau.so.6 (0x802448000)
        libXdmcp.so.6 => /usr/pkg/lib/libXdmcp.so.6 (0x80244d000)


Home | Main Index | Thread Index | Old Index