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
|