Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494534 - sys-libs/gdbm-1.8.3-r4 tries to link against native libgdbm.so when crosscompiling
Summary: sys-libs/gdbm-1.8.3-r4 tries to link against native libgdbm.so when crosscomp...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-17 12:50 UTC by Fab
Modified: 2013-12-17 17:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,38.21 KB, text/plain)
2013-12-17 12:51 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2013-12-17 12:50:34 UTC
Hi,

I'm trying to cross-compile an arm system. sys-libs/gdbm-1.8.3-r4 is failing like this :

> armv7a-hardfloat-linux-gnueabi-gcc -shared  dbminit.lo delete.lo fetch.lo store.lo seq.lo close.lo dbmopen.lo dbmdelete.lo dbmfetch.lo dbmstore.lo dbmseq.lo dbmclose.lo dbmdirfno.lo dbmpagfno.lo dbmrdonly.lo  -Wl,--as-needed -L/usr/lib -L/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/gdbm-1.8.3-r4/image//usr/lib -lgdbm  -Wl,-O1 -Wl,-soname -Wl,libgdbm_compat.so.3 -o .libs/libgdbm_compat.so.3.0.0
> /usr/lib/libgdbm.so: file not recognized: File format not recognized
> collect2: error: ld returned 1 exit status
> libtool: install: error: relink `libgdbm_compat.la' with the above command before installing it
> make: *** [install-compat] Error 1
> emake failed

Full build log attached below.

Removing gdbm-1.8.3-compat-linking.patch from the ebuild and tweaking gdbm-1.8.3-build.patch accordingly makes it build.
Please see also https://bugs.gentoo.org/show_bug.cgi?id=165263#c4

Thanks.


Reproducible: Always
Comment 1 Fab 2013-12-17 12:51:19 UTC
Created attachment 365532 [details]
build.log
Comment 2 SpanKY gentoo-dev 2013-12-17 17:00:05 UTC
use gdbm-1.10.  it'll go stable at some point.