[Bug 1672101] Re: FTBFS: undefined reference (cups-pdf-3.0.1-2) [zesty/all arches]
Launchpad Bug Tracker
1672101 at bugs.launchpad.net
Sun Mar 12 10:03:12 UTC 2017
This bug was fixed in the package cups-pdf - 3.0.1-2ubuntu1
---------------
cups-pdf (3.0.1-2ubuntu1) zesty; urgency=medium
* [rules]
+ Move cups library to the end to adhere to the standard POSIX-required
behavior and avoid undefined references (Closes: #857500, LP: #1672101)
-- Tiago Stürmer Daitx <tiago.daitx at canonical.com> Sat, 11 Mar 2017
22:52:43 +0000
** Changed in: cups-pdf (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1672101
Title:
FTBFS: undefined reference (cups-pdf-3.0.1-2) [zesty/all arches]
Status in cups-pdf package in Ubuntu:
Fix Released
Status in cups-pdf package in Debian:
Fix Released
Bug description:
cups-pdf 3.0.1-2 currently FTBFS on Zesty on all arches. [1]
x86_64-linux-gnu-gcc -lcups -o src/cups-pdf src/cups-pdf.c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro
/tmp/cc4NNYoz.o: In function `init':
./src/cups-pdf.c:359: undefined reference to `cupsBackendDeviceURI'
/tmp/cc4NNYoz.o: In function `read_config_ppd':
./src/cups-pdf.c:281: undefined reference to `ppdOpenFile'
./src/cups-pdf.c:286: undefined reference to `ppdMarkDefaults'
./src/cups-pdf.c:288: undefined reference to `ppdFirstOption'
./src/cups-pdf.c:291: undefined reference to `ppdNextOption'
./src/cups-pdf.c:293: undefined reference to `ppdClose'
/tmp/cc4NNYoz.o: In function `read_config_options':
./src/cups-pdf.c:304: undefined reference to `cupsParseOptions'
collect2: error: ld returned 1 exit status
debian/rules:20: recipe for target 'override_dh_auto_build-arch' failed
make[1]: *** [override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:26: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
The undefined references are caused by -lcups being set before the file
being compiled. Setting the cups library last during build fixes that.
[1] https://launchpad.net/ubuntu/+source/cups-pdf/3.0.1-2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-pdf/+bug/1672101/+subscriptions
More information about the Ubuntu-sponsors
mailing list