pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/49686: pkgtools/cwrappers does not work correctly with PREFER.pkgsrc=sqlite3
>Number: 49686
>Category: pkg
>Synopsis: pkgtools/cwrappers does not work correctly with PREFER.pkgsrc=sqlite3
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 22 19:50:00 +0000 2015
>Originator: Tobias Nygren
>Release: the bleeding edge
>Organization:
>Environment:
7.99.5 amd64
MKLLVM=yes
HAVE_LLVM=yes
MKGCC=no
PKGSRC_COMPILER=clang
CLANGBASE=/usr
USE_CWRAPPERS=yes
>Description:
There is some problem related to appearance of -L/usr/lib on the command line, which causes different sqlite3 libraries to be linked in (in some cases, but not always). I see it with for example net/gupnp and www/firefox.
>How-To-Repeat:
=========== Actual outcome
USE_CWRAPPERS=yes
PREFER.pkgsrc=sqlite3
$ cd /usr/pkgsrc/net/gupnp && make install
[...]
$ ldd /usr/pkg/lib/libgupnp-1.0.so | grep sqlite3
-lsqlite3.0 => /usr/pkg/lib/libsqlite3.so.0
-lsqlite3.1 => /usr/lib/libsqlite3.so.1
=========== Expected outcome
USE_CWRAPPERS=no
PREFER.pkgsrc=sqlite3
$ cd /usr/pkgsrc/net/gupnp && make install
[...]
$ ldd /usr/pkg/lib/libgupnp-1.0.so | grep sqlite3
tnn@t3610:gupnp> ldd /usr/pkg/lib/libgupnp-1.0.so | grep sqlite3
-lsqlite3.0 => /usr/pkg/lib/libsqlite3.so.0
=========== Linker command line from work.log in case of USE_CWRAPPERS=yes
/usr/bin/clang -shared -fPIC -DPIC .libs/gupnp-acl.o .libs/gupnp-context.o .libs/gupnp-context-manager.o .libs/gupnp-control-point.o .libs/gupnp-device.o .libs/gupnp-device-info.o .libs/gupnp-device-proxy.o .libs/gupnp-error.o .libs/gupnp-resource-factory.o .libs/gupnp-root-device.o .libs/gupnp-service.o .libs/gupnp-service-info.o .libs/gupnp-service-proxy.o .libs/gupnp-service-introspection.o .libs/gupnp-xml-doc.o .libs/gupnp-white-list.o .libs/gupnp-types.o .libs/http-headers.o .libs/gupnp-unix-context-manager.o .libs/gupnp-simple-context-manager.o .libs/gvalue-util.o .libs/xml-util.o .libs/gupnp-marshal.o -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -L/usr/lib -L/usr/pkg/lib -lgssdp-1.0 -lsoup-2.4 -lsqlite3 -lpthread -lgio-2.0 -lgmodule-2.0 -lgobject-2.0 -lffi -lglib-2.0 -lpcre -lintl -lxml2 -lz -llzma -lm -pthread -O2 -march=core-avx-i -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,--export-dynamic -pthread -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/u
sr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -pthread -Wl,-soname -Wl,libgupnp-1.0.so.4 -o .libs/libgupnp-1.0.so.4.0.0 -Qunused-arguments -I/tmp/pkgsrc-obj/net/gupnp/work/.buildlink/include
=========== Linker command line from work.log in case of USE_CWRAPPERS=no
/usr/bin/clang -shared -fPIC -DPIC .libs/gupnp-acl.o .libs/gupnp-context.o .libs/gupnp-context-manager.o .libs/gupnp-control-point.o .libs/gupnp-device.o .libs/gupnp-device-info.o .libs/gupnp-device-proxy.o .libs/gupnp-error.o .libs/gupnp-resource-factory.o .libs/gupnp-root-device.o .libs/gupnp-service.o .libs/gupnp-service-info.o .libs/gupnp-service-proxy.o .libs/gupnp-service-introspection.o .libs/gupnp-xml-doc.o .libs/gupnp-white-list.o .libs/gupnp-types.o .libs/http-headers.o .libs/gupnp-unix-context-manager.o .libs/gupnp-simple-context-manager.o .libs/gvalue-util.o .libs/xml-util.o .libs/gupnp-marshal.o -Wl,-rpath,/usr/pkg/lib -L/tmp/pkgsrc-obj/net/gupnp/work/.buildlink/lib -pthread -O2 -march=core-avx-i -Wl,-R/usr/pkg/lib -Wl,--export-dynamic -pthread -pthread -Wl,-soname -Wl,libgupnp-1.0.so.4 -o .libs/libgupnp-1.0.so.4.0.0 -Qunused-arguments -I/tmp/pkgsrc-obj/net/gupnp/work/.buildlink/include -lgssdp-1.0 -lsoup-2.4 -lsqlite3 -lpthread -lgio-2.0 -lgmodule-2.0 -lgobject
-2.0 -lffi -lglib-2.0 -lpcre -lintl -lxml2 -lz -llzma -lm
>Fix:
Don't use cwrappers on affected packages.
Home |
Main Index |
Thread Index |
Old Index