Bug 436760 - Lua pkg-config file has /usr/lib as libdir on x86_64, should be /usr/lib64
Summary: Lua pkg-config file has /usr/lib as libdir on x86_64, should be /usr/lib64
Keywords:
Status: CLOSED DUPLICATE of bug 399101
Alias: None
Product: Fedora
Classification: Fedora
Component: lua
Version: 8
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-10 10:54 UTC by Tim Niemueller
Modified: 2008-03-10 11:06 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-03-10 11:06:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Niemueller 2008-03-10 10:54:12 UTC
Description of problem:
The pkg-config file contains an invalid library path on x86_64 systems. The line
in /usr/lib64/pkgconfig/lua.pc reads:
libdir=${exec_prefix}/lib

while in fact it should read:
libdir=${exec_prefix}/lib64

This causes warnings like
/usr/bin/ld: skipping incompatible /usr/lib/liblua.so when searching for -llua
when linking against the Lua runtime lib while using "pkg-config --libs lua".

Version-Release number of selected component (if applicable):
lua-5.1.2-1.fc8
lua-devel-5.1.2-1.fc8

How reproducible:
Always

Steps to Reproduce:
1. Create trivialmain.c with:
int main(int argc, char **argv) { return 0; }
2. Compile and link against Lua with:
gcc -o trivialmain `pkg-config --libs lua` trivialmain.c
  
Actual results:
Warnings produced since ld now search /usr/lib for *any* library.

Expected results:
No warnings, /usr/lib should not be searched on x86_64 systems.

Comment 1 Hans de Goede 2008-03-10 11:06:57 UTC
Already reported and fixed, but in rawhide only as its low impact.


*** This bug has been marked as a duplicate of 399101 ***


Note You need to log in before you can comment on or make changes to this bug.