libupsclient.pc contains unresolved symbols
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: nut
Hi,
While I was investigating a FTBFS in collectd:
...
configure:22249: checking for upscli_connect in -lupsclient
configure:22274: i686-linux-gnu-gcc -o conftest -Wall -g -O2 -I/build/
i686-linux-gnu-gcc: @LIBSSL_LDFLAGS@: No such file or directory
I discovered that this reference to LIBSSL_LDFLAGS comes from libupsclient.pc.
As you can see in actual .pc file, this reference has not been resolved at compile time (content of more /usr/lib/
prefix=/usr
exec_prefix=/
libdir=/lib
includedir=
sysconfdir=/etc/nut
statepath=
nutuser=nut
Name: libupsclient
Description: UPS monitoring with Network UPS Tools
Version: 2.6.0
Libs: -L${libdir} -lupsclient @LIBSSL_LDFLAGS@
Cflags: -I${includedir}
This is because configure script and all makefile.in has been updated to use and substitute LIBSSL_LIBS instead of LIBSSL_LDFLAGS, but libupsclient.pc.in has not been updated.
By replacing LIBSSL_LDFLAGS with LIBSSL_LIBS in .in files, the generated .pc file is correct.
Thanks,
Fabrice
Related branches
Changed in nut (Ubuntu): | |
assignee: | nobody → Fabrice Coutadeur (fabricesp) |
status: | New → In Progress |
Patch that fix the error and make collectd more buildable (there is still an error because of gcc4.5 that I'll fix after the fix for nut is uploaded)