[Bug 761117] New: pkg-config for fuse does not return all required libraries
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c0 Summary: pkg-config for fuse does not return all required libraries Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: mszeredi@novell.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de CC: rguenther@suse.com Found By: Development Blocker: --- This breaks the build of package archivemount as the required libraries for linkage will not found. IMHO the file /usr/lib(64)/pkgconfig/fuse.pc is wrong prefix=/usr exec_prefix=/ libdir=/lib64 includedir=/usr/include Name: fuse Description: Filesystem in Userspace Version: 2.9.0 Libs: -L${libdir} -lfuse Libs.private: -pthread -lrt -ldl Cflags: -I${includedir}/fuse -D_FILE_OFFSET_BITS=64 as the linker requires on the final linkage all libraries even those of Libs.private. I'm aware this is the problem with the configuration of our linker. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c1 --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2012-05-08 08:28:37 UTC --- If one uses the option --static of pkg-config: pkg-config --static --libs "fuse >= 2.6" then the result is -pthread -L/lib64 -lfuse -lrt -ldl that is we have three possiblities: a) all packages using pkg-config have to have add the option --static even for dynamic linkage b) the configuration of the linker will be changed to upstream default c) the tool pkg-config will be changed to work toghether with our linker configuration IMHO only b) or c) is an option -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c2 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mszeredi@novell.com Resolution| |UPSTREAM --- Comment #2 from Miklos Szeredi <mszeredi@novell.com> 2012-05-14 16:25:11 UTC --- To me it looks like a problem in the archivemount makefiles. Archivemount uses the pthreads API explicitly, not just through libfuse and so it needs to be linked with -pthread. Other fuse filesystems build fine with the new pkgconfig file, so I don't think there's a general problem here. Closing with RESOLVED/UPSTREAM as this appears to be an archivemount bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c3 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent Status|RESOLVED |REOPENED Resolution|UPSTREAM | --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2012-05-15 07:08:37 UTC --- This is not a solution! IMHO at least gvfs package des not use pkg-config for fuse. The configure script of archivemount (not the Maekfile nor the Makefile.in nor Makefile.am) uses pkg-config for asking the fuse package configuration but this does not work correct with our linker configuration. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |rguenther@suse.com InfoProvider| |rguenther@suse.com --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2012-05-15 07:12:15 UTC --- Richard? Is there a way to tell the linker not to exit with an error if not all required libraries are on its command line. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c5 --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2012-05-15 07:21:40 UTC --- @Miklos: It is a bug of fuse as pkg-config does not provide all required libraries for the package fuse in case of dynamically linking and a simple comparision between fuse version 2.8.5 and current in Factroy shows that this is caused the the change in /usr/lib/pkgconfig/fuse.pc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c6 --- Comment #6 from Miklos Szeredi <mszeredi@novell.com> 2012-05-15 07:49:50 UTC --- Created an attachment (id=490803) --> (http://bugzilla.novell.com/attachment.cgi?id=490803) example fuse filesystem Can you please try compiling the attached fuse filesystem: gcc -Wall fusexmp.c `pkg-config fuse --cflags --libs` -o fusexmp Does it compile? Does it work? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c7 --- Comment #7 from Dr. Werner Fink <werner@suse.com> 2012-05-15 08:33:36 UTC --- This simple example works but if fusexmp.c uses some things more like threading and locking it does not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c8 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|rguenther@suse.com | --- Comment #8 from Richard Guenther <rguenther@suse.com> 2012-05-15 08:59:25 UTC --- It's simply a fuse .pc config problem. Applications that link against libraries that require threads need to be linked with -pthread. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c9 --- Comment #9 from Miklos Szeredi <mszeredi@novell.com> 2012-05-15 10:51:41 UTC --- (In reply to comment #8)
It's simply a fuse .pc config problem. Applications that link against libraries that require threads need to be linked with -pthread.
Can you please explain why this is so? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |rguenther@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c10 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|rguenther@suse.com | --- Comment #10 from Richard Guenther <rguenther@suse.com> 2012-05-15 12:20:28 UTC --- (In reply to comment #9)
(In reply to comment #8)
It's simply a fuse .pc config problem. Applications that link against libraries that require threads need to be linked with -pthread.
Can you please explain why this is so?
Because glibc contains stub implementations for pthread features which need not to be seen first on dynamic linking time. Linking with -pthread makes sure those symbols come from libpthread. That's especially important when you dynamically open shared objects but it may also break in the face of _init code execution of other libraries you link against. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c11 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |rguenther@suse.com --- Comment #11 from Miklos Szeredi <mszeredi@novell.com> 2012-05-15 15:47:08 UTC --- Okay, so this is a special requirement for the pthread library. Other libraries (-lrt -ldl) are fine in the Libs.private section, right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c12 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|rguenther@suse.com | --- Comment #12 from Richard Guenther <rguenther@suse.com> 2012-05-16 09:00:03 UTC --- (In reply to comment #11)
Okay, so this is a special requirement for the pthread library.
Other libraries (-lrt -ldl) are fine in the Libs.private section, right?
Yes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c13 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Miklos Szeredi <mszeredi@novell.com> 2012-05-16 19:32:39 UTC --- Fixed in git tree and in Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761117 https://bugzilla.novell.com/show_bug.cgi?id=761117#c14 --- Comment #14 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-05-16 22:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (761117) was mentioned in https://build.opensuse.org/request/show/121244 Factory / fuse -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com