[Bug 1672101] [NEW] FTBFS: undefined reference (cups-pdf-3.0.1-2) [zesty/all arches]

Launchpad Bug Tracker 1672101 at bugs.launchpad.net
Sun Mar 12 00:05:41 UTC 2017


You have been subscribed to a public bug by Tiago Stürmer Daitx (tdaitx):

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

** Affects: cups-pdf (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: cups-pdf (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: ftbfs patch
-- 
FTBFS: undefined reference (cups-pdf-3.0.1-2) [zesty/all arches]
https://bugs.launchpad.net/bugs/1672101
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list