pcp
[Top] [All Lists]

Re: PCP build on Ubuntu Precise (kernel 3.2)

To: Amer Ather <aather@xxxxxxxxxxx>
Subject: Re: PCP build on Ubuntu Precise (kernel 3.2)
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Thu, 17 Jul 2014 22:05:47 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CAM1aq-GUKBWvC0v_LGMMSFBJM7-ccuXf-Y7uZmvMJMbw8XdSwQ@xxxxxxxxxxxxxx> (Amer Ather's message of "Thu, 17 Jul 2014 18:33:40 -0700")
References: <CAM1aq-GUKBWvC0v_LGMMSFBJM7-ccuXf-Y7uZmvMJMbw8XdSwQ@xxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Amer Ather <aather@xxxxxxxxxxx> writes:

> [...]
> To overcome this dependency, I compiled libmicrohttpd-0.9.34
> from the source but ran into pcp build errors.
> [...]
> Build Error on Ubuntu Precise with libmicrohttpd-0.9.34:
>
> # ./Makepkgs --verbose
> ....
> " -I../../src/include -I../../src/include/pcp -o pmwebd
> -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wall -L./src/libpcp/src -L./src/libpcp_pmda/src  -Wl,-Bsymbolic-functions
> -Wl,-z,relro -Wall -L../src/libpcp/src -L../src/libpcp_pmda/src
>  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wall -L../../src/libpcp/src 
> -L../../src
> /libpcp_pmda/src -pie -Wl,-z,relro -Wl,-z,now  main.o util.o pmwebapi.o
> pmresapi.o     -lpcp  -lmicrohttpd 
> main.o: In function `mhd_respond':
> /home/nflx-kernel-tunablestest/dev/build/deb/pcp-3.9.8/src/pmwebapi/main.c:88:
> undefined reference to `MHD_create_response_from_buffer'
> pmwebapi.o: In function `pmwebapi_notify_error':
> [...]

Which -lmicrohttpd did this pick up?  I don't see any -L/-l reference
to a non-system build.  (The named function was introduced back in
libmicrohttpd version 0.9.6 or so, so 0.9.34 ought to work nicely.)
You could try adding a custom -L to the src/pmwebapi/GNUmakefile's
LLDLIBS.


> Also, do you recommend installing PCP on the system as deb packages
> or from tarball. Somehow installing from deb packages generated by
> the build on ubuntu precise (when using trusty repository) was
> causing inconsistent results.

(In general I prefer to use packaged/versioned software rather than
binary tarballs.)


- FChE

<Prev in Thread] Current Thread [Next in Thread>