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

Re: pcp-gui build bug 586466



reassign 586466 pcp
--

Hi.

It seems my latest upload has somehow triggered this build
issue but this section of configuration hasn't changed and
builds on all other platforms, so I'm a bit stumped.  I'd
love to see whats in config.log, is that still accessible
after a buildd build?

The configure check that failing does a simple AC_CHECK_LIB
on a library thats clearly been installed OK during setup
for the build, so its all a bit wierd.

It looks like pcp package is built in a wrong way.
It cannot be installed on kfreebsd (sorry for czech messages):

Nastavuji balík pcp (3.3.1) ...
pcp.env: Fatal Error: "/etc/pcp.conf" not found
invoke-rc.d: initscript pcp, action "start" failed.
dpkg: chyba při zpracovávání pcp (--configure):
 podproces instalovaný post-installation skript vrátil chybový status 1
Při zpracování nastaly chyby:
 pcp
E: Sub-process /usr/bin/dpkg returned an error code (1)


It looks like wrong depends.
Why libpcp3-dev depends on pcp ?
Shouldn't libpcp3-dev depend on libpcp3 ?
And shouldn't pcp depend on libpcp3 ?

With current depends, the build of pcp-gui later fails with:

configure:4623: checking for pmNewContext in -lpcp
configure:4648: gcc -o conftest -g -O2   conftest.c -lpcp   >&5
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(util.o): In function `vpmprintf': (.text+0x711): warning: the use of `tempnam' is dangerous, better use `mkstemp' /usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmLocalPMDA':
(.text+0x788): undefined reference to `dlclose'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmLocalPMDA':
(.text+0x8ee): undefined reference to `dlclose'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmConnectLocal':
(.text+0x1010): undefined reference to `dlopen'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmConnectLocal':
(.text+0x103e): undefined reference to `dlsym'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmConnectLocal':
(.text+0x10e0): undefined reference to `dlclose'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmConnectLocal':
(.text+0x1131): undefined reference to `dlclose'
/usr/lib/gcc/i486-kfreebsd-gnu/4.4.4/../../../libpcp.a(connectlocal.o): In function `__pmConnectLocal':
(.text+0x1310): undefined reference to `dlerror'
collect2: ld returned 1 exit status



But when also libpcp3 is installed, the build ends fine.
The libpcp3 + libpcp3-dev is sufficient, it builds even without
pcp installed.

With pcp altered as shown bellow, the pcp depends on libpcp3,
similarly as on linux.

--- src/include/buildrules~     2010-06-16 03:54:45.000000000 +0200
+++ src/include/buildrules      2010-07-08 10:05:09.000000000 +0200
@@ -49,7 +49,7 @@
 _SHAREDOPTS    = -qmkshrobj
 endif
 ifeq ($(TARGET_OS), freebsd)
-_SHAREDOPTS    = -shared -Wl'-soname $(LIBTARGET)'
+_SHAREDOPTS    = -shared -Wl,-soname,$(LIBTARGET)
 endif
 $(LIBTARGET) : $(SUBDIRS) $(OBJECTS)
        $(CC) $(LDFLAGS) $(_SHAREDOPTS) -o $(LIBTARGET) $(OBJECTS) $(LDLIBS) $(LIB_FOR_DLOPEN) $(LIB_FOR_BASENAME)


Petr

-------
apt-cache show pcp libpcp3 libpcp3-dev

Package: pcp
Architecture: kfreebsd-i386
Version: 3.3.1
Depends: libc0.1 (>= 2.7), libreadline6 (>= 6.0), gawk, procps, sysv-rc-conf, cpp

Package: libpcp3
Architecture: kfreebsd-i386
Source: pcp
Version: 3.3.1
Depends: libc0.1 (>= 2.7)

Package: libpcp3-dev
Architecture: kfreebsd-i386
Source: pcp
Version: 3.3.1
Depends: pcp (= 3.3.1), libc6-dev | libc-dev

Reply to: