Description of problem: $ pkg-config --libs libuser -pthread -luser -lcrypt -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 I guess that not all of the libs are used by libuser API. It seems that --libs also returns libs used internally by libuser. It's pretty common mistake and it generates unwanted dependencies. For example: $ readelf -a ./chfn | grep NEED [ 8] .gnu.version_r VERNEED 00000000004010a8 000010a8 0x0000000000000001 (NEEDED) Shared library: [libuser.so.1] 0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libgmodule-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libpam.so.0] 0x0000000000000001 (NEEDED) Shared library: [libpam_misc.so.0] 0x0000000000000001 (NEEDED) Shared library: [libselinux.so.1] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] The solution is to use Requires.private in libuser.pc for all private stuff. The pkg-config is smart enough to use Requires.private for "--lisb --static" output.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19
Fixed in upstream commit b60e0b0c7eb3 . The output of (pkg-config --libs libuser) now reads > -luser -lgobject-2.0 -lglib-2.0 (Removing these two would be useful only in very rare cases, and would cause extra work fixing some users.) Thanks for your report.
libuser-0.60-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libuser-0.60-3.fc20
Package libuser-0.60-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libuser-0.60-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-19208/libuser-0.60-3.fc20 then log in and leave karma (feedback).
seems fine with libuser-0.60-3.fc20
libuser-0.60-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.