Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 697568

Summary: app-office/mdbtools-0.7.1-r2 USE=odbc - ld: /usr/lib/libodbcinst.so: error adding symbols: file in wrong format
Product: Gentoo Linux Reporter: Jocelyn Mayer <l_indien>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 506276    
Attachments: emerge info
build.log
Ebuild patch proposal

Description Jocelyn Mayer 2019-10-12 17:09:07 UTC
app-office/mdbtools-0.7.1-r2 does not link in src/odbc subdirectory because of hardcoded /lib directory name in configure.ac thus trying to link 64 bits binaries against 32 bits shared libraries.
I made a patch that fixes this issue, it may not be the best one but...

Reproducible: Always

Steps to Reproduce:
1. Switch to 17.1 profile (then /usr/lib contains 32 bits libraries)
2. Try to merge app-office/mdbtools-0.7.1-r2 with [odbc] USE flag set
3.
Actual Results:  
link failure in src/odbc subdirectory when attempting to link libmdbodbc.so and libmdbodbcW.so with errors looking like: 
./../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libodbcinst.so: error adding symbols: file in wrong format

Expected Results:  
link against libraries from /usr/lib64 instead of /usr/lib
Comment 1 Jocelyn Mayer 2019-10-12 17:10:42 UTC
Created attachment 592590 [details]
emerge info
Comment 2 Jocelyn Mayer 2019-10-12 17:14:21 UTC
Created attachment 592592 [details]
build.log
Comment 3 Jocelyn Mayer 2019-10-12 17:15:43 UTC
Created attachment 592594 [details, diff]
Ebuild patch proposal

This patch may not be the perfect one but it fixes the problem, at least on my machine(s)