Shared library not found after upgrade to 9.2-PRERELEASE
list at museum.rain.com
Mon Sep 2 20:15:38 UTC 2013
I recently upgraded a system to
FreeBSD t42.umpquanet.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r254977: Wed Aug 28 19:58:37 PDT 2013 root at t42.umpquanet.com:/usr/obj/usr/src/sys/GENERIC i386
I then deleted all the installed ports, and am rebuilding the
ones I still use.
I've encountered several instances where although a required
port is already installed, a dependent port build will claim that
the required library isn't found, and attempt a (re-)install of
In this example, jbig2dec claims that shared library libpng15.so
is not found, although 'ls' says it is in /usr/local/lib, and
'make missing' reports no uninstalled dependencies.
What can I do to remedy this, short of setting FORCE_PKG_REGISTER
and spending a lot of time rebuilding ports that are already
Please Cc: me on replies.
# cd /usr/ports/graphics/jbig2dec
# ls -l /usr/local/lib/libpng15*
-rw-r--r-- 1 root wheel 202762 Sep 1 16:10 /usr/local/lib/libpng15.a
lrwxr-xr-x 1 root wheel 14 Sep 1 16:10 /usr/local/lib/libpng15.so@ -> libpng15.so.15
-rwxr-xr-x 1 root wheel 175596 Sep 1 16:10 /usr/local/lib/libpng15.so.15*
# make clean
===> Cleaning for png-1.5.17
===> Cleaning for jbig2dec-0.11_1
# make missing
===> License GPLv3 accepted by the user
===> Found saved configuration for jbig2dec-0.11
===> Fetching all distfiles required by jbig2dec-0.11_1 for building
===> Extracting for jbig2dec-0.11_1
=> SHA256 Checksum OK for jbig2dec-0.11.tar.xz.
===> Patching for jbig2dec-0.11_1
===> Applying extra patch /usr/ports/graphics/jbig2dec/files/simpler-test-patch
===> Applying FreeBSD patches for jbig2dec-0.11_1
/usr/bin/sed -i.bak -E 's|SHA1_Final\( *([^,]+), *([^\)]+)\)|SHA1_Final(\2, \1)|' /usr/ports/graphics/jbig2dec/work/jbig2dec-0.11/jbig2dec.c /usr/ports/graphics/jbig2dec/work/jbig2dec-0.11/sha1.c
===> jbig2dec-0.11_1 depends on shared library: libpng15.so - not found
===> Verifying for libpng15.so in /usr/ports/graphics/png
===> Found saved configuration for png-1.5.12
===> Fetching all distfiles required by png-1.5.17 for building
===> Extracting for png-1.5.17
=> SHA256 Checksum OK for libpng-1.5.17.tar.xz.
=> SHA256 Checksum OK for libpng-1.5.17-apng.patch.gz.
/bin/cp /usr/ports/distfiles//libpng-1.5.17-apng.patch.gz /usr/ports/graphics/png/work/libpng-1.5.17/
/usr/bin/gzip -nf -9 -d /usr/ports/graphics/png/work/libpng-1.5.17/libpng-1.5.17-apng.patch.gz
===> Patching for png-1.5.17
===> Applying extra patch /usr/ports/graphics/png/work/libpng-1.5.17/libpng-1.5.17-apng.patch
===> Applying FreeBSD patches for png-1.5.17
/usr/bin/sed -i.bak -e 's|RELEASE}.0|RELEASE}|' -e 's|LIBDIR}/pkgconfig|LIBDIR}data/pkgconfig|' /usr/ports/graphics/png/work/libpng-1.5.17/CMakeLists.txt
===> png-1.5.17 depends on file: /usr/local/bin/cmake - found
===> Configuring for png-1.5.17
===> Performing in-source build
/bin/mkdir -p /usr/ports/graphics/png/work/libpng-1.5.17
-- The C compiler identification is GNU 4.2.1
... snip ...
[100%] Built target pngvalid
/usr/local/bin/cmake -E cmake_progress_start /usr/ports/graphics/png/work/libpng-1.5.17/CMakeFiles 0
Test project /usr/ports/graphics/png/work/libpng-1.5.17
Start 1: pngtest
1/2 Test #1: pngtest .......................... Passed 0.02 sec
Start 2: pngvalid
2/2 Test #2: pngvalid ......................... Passed 43.20 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 43.23 sec
===> Installing for png-1.5.17
===> Generating temporary packing list
===> Checking if graphics/png already installed
===> png-1.5.17 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of graphics/png
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** [check-already-installed] Error code 1
Stop in /usr/ports/graphics/png.
*** [lib-depends] Error code 1
Stop in /usr/ports/graphics/jbig2dec.
More information about the freebsd-questions