Bug 436760

Summary: Lua pkg-config file has /usr/lib as libdir on x86_64, should be /usr/lib64
Product: [Fedora] Fedora Reporter: Tim Niemueller <tim>
Component: luaAssignee: Hans de Goede <hdegoede>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-10 11:06:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***