Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 15:44:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 230980] net-mgmt/php56-snmp: links with libpkg for no apparent reason (affects all php versions)
Message-ID:  <bug-230980-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230980

            Bug ID: 230980
           Summary: net-mgmt/php56-snmp: links with libpkg for no apparent
                    reason (affects all php versions)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale@FreeBSD.org
          Reporter: amdmi3@FreeBSD.org
             Flags: maintainer-feedback?(ale@FreeBSD.org)
          Assignee: ale@FreeBSD.org

For some strange reason, php-snmp (with all php versions) links with libpkg:

=3D=3D=3D>  Building for php56-snmp-5.6.37
...
cc -shared  .libs/snmp.o  -L/usr/lib -lssl -L/usr/local/lib -L/lib -lnetsnmp
-lm -lkvm -ldevstat -lcrypto -lelf    -lpkg    -lssp_nonshared  -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/lib -Wl,-rpath -Wl,/usr/local/lib
-Wl,-soname -Wl,snmp.so -o ./.libs/snmp.so
...
=3D=3D=3D=3D> Running Q/A tests (stage-qa)=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
Error: /usr/local/lib/php/20131226/snmp.so is linked to
/usr/local/lib/libpkg.so.4 from ports-mgmt/pkg but it is not declared as a
dependency=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Warning: you need LIB_DEPENDS+=3Dlibpkg.so:ports-mgmt/pkg=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
...
=3D>> Checking shared library dependencies=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
...
 0x0000000000000001 NEEDED               Shared library: [libpkg.so.4]
...

This doesn't seem needed nor right, creates a hidden dependency on pkg and
breaks the module when libpkg.so version changes. This may also affect othe=
r or
all php modules.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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