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

Mathew Hodson mathew.hodson at gmail.com
Sun Mar 12 08:51:49 UTC 2017


** Changed in: cups-pdf (Ubuntu)
   Importance: Undecided => High

-- 
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:
  New
Status in cups-pdf package in Debian:
  Unknown

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