'cups-config --libs' gives spurious output

Bug #163704 reported by Erik de Castro Lopo
2
Affects Status Importance Assigned to Milestone
Chromium Browser
New
Undecided
Unassigned
cups (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Trying to compile my own software which links against libcupsys2.

Normally, to get the libraries needed to link CUPS one would do 'cups-config --libs', but in Gutsy, this gives:

    -lcups -L/usr/lib -g -Wall -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lz -lpthread -lm -lcrypt

which should not contain any of this:

    -g -Wall -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in cupsys:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in cupsys:
status: Incomplete → Invalid
Revision history for this message
Evan Martin (Chromium) (evan-chromium) wrote :

This still happens on my Natty machine.

$ dpkg -s libcups2-dev | grep Version
Version: 1.4.6-5ubuntu1.3

$ for i in cflags ldflags libs; do echo -n "$i: "; cups-config --$i; done
cflags:
ldflags:
libs: -lcups -L/usr/lib/x86_64-linux-gnu -g -O2 -g -O2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -Wl,-Bsymbolic-functions -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -L/usr/lib/x86_64-linux-gnu -lgnutls -L/lib/x86_64-linux-gnu -lgcrypt -lz -lm -lcrypt

The -I flags belong in cflags, the -L flags belong in ldflags.

Changed in cupsys (Ubuntu):
status: Invalid → Confirmed
Fabien Tassin (fta)
affects: cupsys (Ubuntu) → cups (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.