Summary: | net-print/cups-1.5.2-r1 includes CFLAGS in cups-config --libs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew Savchenko <bircoph> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bircoph, chromium, djdunn.safety |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
cups-config |
Description
Andrew Savchenko
2011-08-07 13:40:38 UTC
Created attachment 282415 [details]
emerge --info
Created attachment 282417 [details]
cups-config
Original cups-config from cups-1.4.6-r21 on the target system.
Most likely, it's not really cups that fails here - it's kerberos (either mit or heimdal). (In reply to comment #3) > Most likely, it's not really cups that fails here - it's kerberos (either mit > or heimdal). I thought so too, but kerberos is fine (I use mit): $ krb5-config --libs -march=atom -m32 -O3 -fno-inline-functions -fno-ipa-cp-clone -mstackrealign -pipe -Wl,-O1 -Wl,--as-needed -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl returns only LDFLAGS. And when I recompile cups with simplified CFLAGS/CXXFLAGS, exactly those flags apperars at the beginnig of cups-config --libs output. I dig into cups configure script and it looks like it really prepends CFLAGS there. If I read the sources correctly, you should look at 'krb5-config --libs gssapi'. (In reply to comment #5) > If I read the sources correctly, you should look at 'krb5-config --libs > gssapi'. That's not the case: krb5-config --libs gssapi -march=atom -m32 -O3 -fno-inline-functions -fno-ipa-cp-clone -mstackrealign -pipe -Wl,-O1 -Wl,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl =app-crypt/mit-krb5-1.9.1 Please note -DDBUS_API_SUBJECT_TO_CHANGE in $LIBS, preprocessor directives are used in CFLAGS, but never during linking. And the only place in can be found in cups-1.4.6 configure is: CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" now compare it to the $LIBS content. Well, the thing is 'cups-config --libs' returns for me: -lcups -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lasn1 -lwind -lroken -pthread -lssl -lcrypto -lz -lpthread -lm -lcrypt ...but I'm not only using heimdal 1.3.3-r1, but also my ebuild for it significantly changes krb5-config to prevent this CFLAGS/LIBS mixup. The relative position of the option groups suggest that kerberos is the culprit. Related to bug #396133, I emerged cups with different CFLAGS, and *only* by recompiling cups I went from: $ cups-config --libs -lcups -L/usr/lib64 -march=core2 -mcx16 -msahf -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=6144 -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -Wl,-O1 -Wl,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lgnutls -L/usr/lib64 -lgcrypt -lgpg-error -lz -lpthread -lm -lcrypt to $ cups-config --libs -lcups -L/usr/lib64 -march=core2 -mcx16 -msahf -msse4.1 -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -Wl,-O1 -Wl,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lgnutls -L/usr/lib64 -lgcrypt -lgpg-error -lz -lpthread -lm -lcrypt (I removed the --param's from my CFLAGS) So I don't think it is related to kerberos. I'm using mit-krb5 by the way and I have: $ krb5-config --libs -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl *** Bug 396133 has been marked as a duplicate of this bug. *** Please check if this is still a problem for cups-1.5, and report back here... (In reply to comment #10) > Please check if this is still a problem for cups-1.5, and report back here... This problem is still present with 1.5.2-r1. Not a regression Please check if this is still a problem for cups-1.6, and report back here... Looks like this is fixed with cups-1.6.1 (and mit-krb5-1.11.1): $ cups-config --libs -lcups -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lgcrypt -lgpg-error -lz -lpthread -lm -lcrypt -lz (In reply to Andrew Savchenko from comment #14) > Looks like this is fixed with cups-1.6.1 (and mit-krb5-1.11.1): > > $ cups-config --libs > -lcups -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls > -lgcrypt -lgpg-error -lz -lpthread -lm -lcrypt -lz Good. |