Re: pcp-gui build bug 586466
Hi Petr,
Thanks for the help! ...
----- "Petr Salinger" <Petr.Salinger@seznam.cz> wrote:
>
> 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 ?
Yes indeed. This is fixed in next pcp upload (pending).
> 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
> ...
> 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.
Ah, OK.
> The libpcp3 + libpcp3-dev is sufficient, it builds even without
> pcp installed.
Yep.
> 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)
Awesome, thanks!!! I'll get those changes merged and uploaded soon.
cheers.
--
Nathan
Reply to: