FTBFS: undefined reference (cups-pdf-3.0.1-2) [zesty/all arches]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups-pdf (Debian) |
Fix Released
|
Unknown
|
|||
cups-pdf (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
cups-pdf 3.0.1-2 currently FTBFS on Zesty on all arches. [1]
x86_64-
/tmp/cc4NNYoz.o: In function `init':
./src/cups-
/tmp/cc4NNYoz.o: In function `read_config_ppd':
./src/cups-
./src/cups-
./src/cups-
./src/cups-
./src/cups-
/tmp/cc4NNYoz.o: In function `read_config_
./src/cups-
collect2: error: ld returned 1 exit status
debian/rules:20: recipe for target 'override_
make[1]: *** [override_
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.
tags: | added: patch |
Changed in cups-pdf (Ubuntu): | |
importance: | Undecided → High |
Changed in cups-pdf (Debian): | |
status: | Unknown → Fix Released |
FTBFS fix that sets the cups library as the last param to gcc.
The debdiff is between 3.0.1-3, so the changelog chunk will not apply cleanly to 3.0.1-2 (currently what has been synced from Debian), but it is an easy fix. I would recommend syncing zesty to cups-pdf 3.0.1-3 anyway.