[Bug 657789] New: libffi-devel misses libffi.pc
https://bugzilla.novell.com/show_bug.cgi?id=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c0 Summary: libffi-devel misses libffi.pc Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: All OS/Version: All Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: d137@abv.bg QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 Summary says it all. The package libff-devel misses libffic.pc required for compiling wayland and some other stuff I guess. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pth@novell.com |rguenther@novell.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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c1 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenther@novell.com> 2010-12-07 09:56:43 UTC --- There is no libffi.pc to distribute. What do you think it would contain anyway? It would basically be empty. -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c2 damian ivanov <d137@abv.bg> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #2 from damian ivanov <d137@abv.bg> 2010-12-07 17:59:18 UTC --- The file needed by pkgconfig. Like prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include Name: libffi Description: libffi Version: 4.0.1 Libs: -L${libdir} -lffi Cflags: -I${includedir} Google it "libffi.pc" . It is included in other distro's libffi-devel package. -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c3 --- Comment #3 from Richard Guenther <rguenther@novell.com> 2010-12-08 10:12:58 UTC --- The headers are in /usr/include, the lib is in /usr/lib{,64} which are all standard locations and thus do not require any -L or -I flags. I repeat, there is no .pc file I can distribute and I don't see why one should be necessary. We in fact do not have a package config file requirement for all development packages (and pkgconfig is broken anyway). -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c4 Michael Meeks <mmeeks@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmeeks@novell.com --- Comment #4 from Michael Meeks <mmeeks@novell.com> 2010-12-10 08:06:37 UTC --- pkgconfig is broken anyway ? Seriously - using it rips out distribution specific dependencies from our spec. files by providing an up-stream defined namespace, and is incredibly useful. Other packages higher up the stack will depend on this .pc file. Richard, please can we include that patch ? (/me begs etc. :-) Damien - it is a good question though: why can we not get this up-stream ? we don't like patching our packages - it's a pain to maintain :-) -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c5 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #5 from Richard Guenther <rguenther@novell.com> 2010-12-10 11:15:00 UTC --- Well, pkgconfig is broken anyway because it hardcodes library paths and doesn't deal with multilibs. Thus, for libffi[-devel]-32bit, how are you supposed to use it? Doing gcc test.c `pkg-config --libs libffi` -m32 doesn't work. Nor does it with any other library. And I can't see how it _can_ work (at least with specifying lib paths like all existing pkg-config files do). Still, I have prepared a very simple .pc file for you, it'll be available from the libffi package in devel:gcc, so please test if that works for you.
cat /usr/lib64/pkgconfig/libffi.pc Name: libffi Version: 3.0.9 Libs: -lffi
that should in theory also work for multilibs (libffi is in the standard search path). I have trouble with a test build right now, so the commit to devel:gcc will take some time. -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c6 --- Comment #6 from damian ivanov <d137@abv.bg> 2010-12-11 13:53:54 UTC --- Well, I think we are not talking about the same package... I mean http://sourceware.org/libffi/ I talked to the libffi-discuss maling list: Damian Ivanov <damianatorrpm@gmail.com> writes: > Hi there, > > I have a problem compiling wayland, the NG display server on openSUSE > 11.4. The build process fails with the missing libffi message, still > libffi-devel and libffi are installed, but there is no libffi.pc (for > pkgconfig) file included. > I've filed a bug report for that at > https://bugzilla.novell.com/show_bug.cgi?id=657789 . Should the distro > include/generate the .pc file or could you include it? libffi.pc comes with libffi and will get installed with make install. It should be part of their libffi-devel package. The program includes a libffi.pc.in file and should get installed with make install. I've downloaded also the libffi-devel from other distro's. They contain the .pc file without patching e.g from fedora: src rpm: http://mirror.telepoint.bg/fedora/fedora/linux//development/rawhide/source/SRPMS/libffi-3.0.9-1.fc13.src.rpm i586: http://mirror.telepoint.bg/fedora/fedora/linux//development/rawhide/i386/os/Packages/libffi-devel-3.0.9-1.fc13.i686.rpm and http://mirror.telepoint.bg/fedora/fedora/linux//development/rawhide/i386/os/Packages/libffi-3.0.9-1.fc13.i686.rpm >From the build service in: 1) server:monitoring 2) devel:languages:ruby:1.9 I found libffi and libffi-devel packages, that contain libffi and the devel package. It contains libffi.pc.in . -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c7 Jan Engelhardt <jengelh@medozas.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jengelh@medozas.de --- Comment #7 from Jan Engelhardt <jengelh@medozas.de> 2010-12-11 16:36:26 UTC ---
Thus, for libffi[-devel]-32bit, how are you supposed to use it? Doing gcc test.c `pkg-config --libs libffi` -m32 does not work
pkg-config is configured and built for exactly one host triple. On x86_64-suse-linux-gnu, /usr/bin/pkg-config is configured to look into /usr/lib64/pkgconfig/, where .pc files for 64-bit compliation (and only that) are located. If you want to crosscompile to 32-bit, you will need a pkg-config compiled for i586-suse-linux-gnu which then looks in /usr/lib/pkgconfig, where 32-bit .pc files are located. -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c8 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #8 from Richard Guenther <rguenther@novell.com> 2011-01-13 12:21:48 UTC --- created request id 58057 -- 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=657789 https://bugzilla.novell.com/show_bug.cgi?id=657789#c9 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bkorb@gnu.org --- Comment #9 from Richard Guenther <rguenther@novell.com> 2011-03-01 12:54:44 UTC --- *** Bug 675721 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=675721 -- 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