Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349148 - sys-libs/gdbm-1.8.3-r04.1 failed to build: PREFIX/usr/lib/libgdbm.dylib not found
Summary: sys-libs/gdbm-1.8.3-r04.1 failed to build: PREFIX/usr/lib/libgdbm.dylib not f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 00:17 UTC by Naohiro Aota
Modified: 2011-08-25 19:29 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2010-12-20 00:17:54 UTC
sys-libs/gbdm-1.8.3-r04.1 failed to build with the following error


/Users/naota/Gentoo/bin/bash ./libtool /Users/naota/Gentoo/usr/bin/install -c -c libgdbm_compat.la \
        /Users/naota/Gentoo/var/tmp/portage/sys-libs/gdbm-1.8.3-r04.1/image//Users/naota/Gentoo/usr/lib/libgdbm_compat.la
libtool: install: warning: relinking `libgdbm_compat.la'
cd /Users/naota/Gentoo/var/tmp/portage/sys-libs/gdbm-1.8.3-r04.1/work/gdbm-1.8.3; /bin/sh ./libtool --mode=relink i686-apple-darwin10-gcc -Wl,-dead_strip_dylibs -o libgdbm_compat.la -rpath /Users/naota/
Gentoo/usr/lib -version-info 3 0 0 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 lib
gdbm.la -inst-prefix-dir /Users/naota/Gentoo/var/tmp/portage/sys-libs/gdbm-1.8.3-r04.1/image/
i686-apple-darwin10-gcc -dynamiclib -flat_namespace -undefined suppress -o .libs/libgdbm_compat.3.0.0.dylib  dbminit.lo delete.lo fetch.lo store.lo seq.lo close.lo dbmopen.lo dbmdelete.lo dbmfetch.lo db
mstore.lo dbmseq.lo dbmclose.lo dbmdirfno.lo dbmpagfno.lo dbmrdonly.lo  /Users/naota/Gentoo/usr/lib/libgdbm.dylib -lc -dead_strip_dylibs -install_name  /Users/naota/Gentoo/usr/lib/libgdbm_compat.3.dylib
 -compatibility_version 4 -current_version 4.0
i686-apple-darwin10-gcc: /Users/naota/Gentoo/usr/lib/libgdbm.dylib: No such file or directory
libtool: install: error: relink `libgdbm_compat.la' with the above command before installing it
make: *** [install-compat] エラー 1
emake failed

seems bug #223865 problem again?
 

Reproducible: Always
Comment 1 Mike Lewis 2010-12-22 04:05:04 UTC
Looks like it builds OK (on Darwin) if you comment out the two following lines:


	#epatch "${FILESDIR}"/${P}-compat-linking.patch #165263, #223865
	#epatch "${FILESDIR}"/${P}-build.patch #209730
Comment 2 thomasg 2011-01-03 04:48:19 UTC
I can confirm this for a crossdev setup with armv7a-hardfloat-linux-gnueabi.
Will provide logs if needed, but it's the same error messages, except .so instead of .dynlib of course.

Mikes workaround also fixes it for me.
Comment 3 JTRiley 2011-03-28 18:28:37 UTC
(In reply to comment #2)
> I can confirm this for a crossdev setup with armv7a-hardfloat-linux-gnueabi.
> Will provide logs if needed, but it's the same error messages, except .so
> instead of .dynlib of course.
> 
> Mikes workaround also fixes it for me.

Same exact issue for me on Mac OSX 10.5. I can confirm that Mike's workaround also fixes the build for me...

~jtriley
Comment 4 Michael Weber (RETIRED) gentoo-dev 2011-07-14 22:32:12 UTC
Any progress on that? Had to fix this on a new installed prefix system. Not so impressive
Comment 5 Fabian Groffen gentoo-dev 2011-07-17 20:07:27 UTC
sorry, haven't had the time to reproduce this yet
Comment 6 Fabian Groffen gentoo-dev 2011-08-08 20:29:08 UTC
reproduced on Lion, not yet clear to me what's going on, though
Comment 7 Askar Bektassov 2011-08-10 21:41:08 UTC
Same issue on Lion, Mike's workaround works here.
Comment 8 Askar Bektassov 2011-08-10 23:07:18 UTC
(In reply to comment #1)
> Looks like it builds OK (on Darwin) if you comment out the two following lines:
> 
> 
>     #epatch "${FILESDIR}"/${P}-compat-linking.patch #165263, #223865
>     #epatch "${FILESDIR}"/${P}-build.patch #209730

Probably bit offtopic, but can somebody explain me why leaving the second epatch uncommented halts the unpack process? It seems to me that the first epatch does not affect those Makefile.in rows patched by the second epatch.
Comment 9 Fabian Groffen gentoo-dev 2011-08-25 19:29:18 UTC
Ok, I think I squashed this thing, finally.

Sorry for the long waits.  It seemed libtool wasn't really doing what it should.  I just inserted an eautoreconf to get a new(er) libtool in (from the prefix), and that made things just work correctly.

(In reply to comment #2)
> I can confirm this for a crossdev setup with armv7a-hardfloat-linux-gnueabi.
> Will provide logs if needed, but it's the same error messages, except .so
> instead of .dynlib of course.
> 
> Mikes workaround also fixes it for me.

Please file a bug against base-system for this.  Perhaps the same fix works for you, but I've only added the fix to the prefix tree.  This includes the patch I needed to get the makefile working with newer libtool.