Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162036 - dev-lang/lua-5.1.1-r1: Misleading include path of the headers/libs
Summary: dev-lang/lua-5.1.1-r1: Misleading include path of the headers/libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-14 13:05 UTC by Christoph Kappel
Modified: 2007-01-14 23:14 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 Christoph Kappel 2007-01-14 13:05:12 UTC
There were dozen of name changes from lua, lua50, lua51, lua-51 to finally (?) lua-5.1. But how to find the right headers? I usually used pkg-config to get the right path, but it's meanwhile a kind of bruteforce to find the correct name /and/ to stay portable.

At the moment pkg-config returns this:
# pkg-config lua-5.1 --cflags 
-I/usr/local/include  
# pkg-config lua-5.1 --libs
-L/usr/local/lib -llua -lm  

Both path are misleading. /usrlocal/lib is normally empty and the headers currently are in /usr/include/lua-5.1. Bet within the next update everything changes again - like it always does.


Reproducible: Always

Steps to Reproduce:
Try to link something against lua:
gcc -o foo foo.c `pkg-config lua-5.1 --cflags --libs`

Actual Results:  
lua.h, lauxlib.h and lualib.h cannot be found.

Expected Results:  
The .pc file should contain the correct paths.
Comment 1 Christoph Kappel 2007-01-14 14:29:27 UTC
Actually the DSO name has the same problem. Maybe the lua-wrapper can change the .pc file too?
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2007-01-14 22:53:23 UTC
ouch, the pathes were supposed to be pointing to the right locations.
same for the DSO. I'll fix this asap.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2007-01-14 23:14:36 UTC
In CVS.