pkgsrc-Bugs archive

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

pkg/38915: sysutils/gvfs compile problem in DragonFly



>Number:         38915
>Category:       pkg
>Synopsis:       sysutils/gvfs compile problem in DragonFly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 09 11:50:00 +0000 2008
>Originator:     Hasso Tepper
>Release:        DragonFly
>Organization:
>Environment:
DragonFly
>Description:
Compiling gvfs libarchive plugins fails in DragonFly:

=> Checking file-check results for gvfs-0.2.4
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/libexec/gvfsd-archive
ERROR:         /usr/pkg/share/gvfs/mounts/archive.mount
*** Error code 1

The problem is that there is libarchive in the DragonFly base. Configure test 
tries to link small testprogram, but fails because of trying to do it against 
librachive in /usr/lib:

configure:27390: checking for archive_read_open in -larchive
configure:27425: cc -o conftest -O2 -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -I/usr/include -I/usr/pkg/include 
-I/usr/pkg/include/freetype2 -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -L/usr/lib conftest.c -larchive  -lutil  >&5
/usr/lib/libarchive.so: undefined reference to `deflate'
/usr/lib/libarchive.so: undefined reference to `inflate'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzDecompressInit'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzDecompress'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzDecompressEnd'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzCompress'
/usr/lib/libarchive.so: undefined reference to `crc32'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzCompressInit'
/usr/lib/libarchive.so: undefined reference to `deflateInit2_'
/usr/lib/libarchive.so: undefined reference to `inflateReset'
/usr/lib/libarchive.so: undefined reference to `BZ2_bzCompressEnd'
/usr/lib/libarchive.so: undefined reference to `inflateEnd'
/usr/lib/libarchive.so: undefined reference to `inflateInit2_'
/usr/lib/libarchive.so: undefined reference to `deflateEnd'
configure:27431: $? = 1

The point is that -larchive is not enough to link a app against libarchive in 
/usr/lib, -lbz2 and -lz are needed as well.
>How-To-Repeat:

>Fix:
Ideas are welcome ho to fix this - of course I can force it to use the library 
in the system in DragonFly (don't depend on libarchive in pkgsrc if DragonFly 
and to patch the configure script), but is it right thing to do?



Home | Main Index | Thread Index | Old Index