Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348267 - "Hard" to find ffi.h and targetffi.h even if they are installed.
Summary: "Hard" to find ffi.h and targetffi.h even if they are installed.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 13:44 UTC by Niklas Johansson
Modified: 2010-12-09 16:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Johansson 2010-12-09 13:44:48 UTC
I am confused about libffi. Some programs cannot find the header files (ffi.h and targetffi.h). I have installed dev-libs/libffi and virtual/libffi. I noticed that gcc is compiled with (-libffi).

I am very thin ice here but wouldn't it be nice to have a eselect tool for ffi to "point" out where ffi is located. I mean now since the "package" is virtual.



Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-12-09 15:07:50 UTC
(In reply to comment #0)
> I am confused about libffi. Some programs cannot find the header files (ffi.h
> and targetffi.h). I have installed dev-libs/libffi and virtual/libffi. I
> noticed that gcc is compiled with (-libffi).

You need to use pkg-config. Any package that is using libffi but is not using pkg-config is broken. Example:

$ pkg-config --cflags-only-I libffi
-I/usr/lib64/libffi-3.0.9/include

> I am very thin ice here but wouldn't it be nice to have a eselect tool for ffi
> to "point" out where ffi is located. I mean now since the "package" is virtual.

Unrequired. The virtual is there only because of historical reasons when libffi got unmaintained, and we had to use the copy from gcc. And also if it becomes unmaintained again in future, we won't have to update X number of packages, we just update the virtual to point to gcc's libffi.
Comment 2 Niklas Johansson 2010-12-09 16:20:39 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > I am confused about libffi. Some programs cannot find the header files (ffi.h
> > and targetffi.h). I have installed dev-libs/libffi and virtual/libffi. I
> > noticed that gcc is compiled with (-libffi).
> 
> You need to use pkg-config. Any package that is using libffi but is not using
> pkg-config is broken. Example:
> 
> $ pkg-config --cflags-only-I libffi
> -I/usr/lib64/libffi-3.0.9/include
> 
> > I am very thin ice here but wouldn't it be nice to have a eselect tool for ffi
> > to "point" out where ffi is located. I mean now since the "package" is virtual.
> 
> Unrequired. The virtual is there only because of historical reasons when libffi
> got unmaintained, and we had to use the copy from gcc. And also if it becomes
> unmaintained again in future, we won't have to update X number of packages, we
> just update the virtual to point to gcc's libffi.
> 

Thank you for your help, explanation and time. Have a great day.