Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 162036
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Matti Bickel <mabi@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christoph Kappel <unexist@dorfelite.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 162036 depends on: Show dependency tree
Bug 162036 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-01-14 13:05 0000
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 From Christoph Kappel 2007-01-14 14:29:27 0000 -------
Actually the DSO name has the same problem. Maybe the lua-wrapper can change
the .pc file too?

------- Comment #2 From Matti Bickel 2007-01-14 22:53:23 0000 -------
ouch, the pathes were supposed to be pointing to the right locations.
same for the DSO. I'll fix this asap.

------- Comment #3 From Matti Bickel 2007-01-14 23:14:36 0000 -------
In CVS.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug