Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 13:11:32 -0700
From:      Jim Long <list@museum.rain.com>
To:        freebsd-questions@freebsd.org
Subject:   Shared library not found after upgrade to 9.2-PRERELEASE
Message-ID:  <20130902201132.GB78334@ns.umpquanet.com>

next in thread | raw e-mail | index | archive | help
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@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
that port.

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
installed?

Please Cc: me on replies.

Thank you!

Jim


# 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
# make
===>  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
Running tests...
/usr/local/bin/ctest --force-new-ctest-process 
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130902201132.GB78334>