Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365613 - baselayout-prefix-1.12.14 fails to compile on bsd
Summary: baselayout-prefix-1.12.14 fails to compile on bsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 FreeBSD
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 19:11 UTC by Fabian Groffen
Modified: 2011-05-02 14:45 UTC (History)
1 user (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 Fabian Groffen gentoo-dev 2011-05-01 19:11:05 UTC
gcc -I../gnulib -I../gnulib/gllib -DLIBDIR=\"lib\" -c -o rs-misc.o core/misc.c
gcc -L/usr/local/lib -L../gnulib/gllib -L/usr/local/lib -L../gnulib/gllib -o runscript runscript.o rs-misc.o  -lgnu -ldl
/usr/bin/ld: cannot find -ldl
make: *** [runscript] Error 1
make: Leaving directory `/usr/home/monet/gentoo/var/tmp/portage/sys-apps/baselayout-prefix-1.12.14/work/baselayout-prefix-1.12.14.1705/src'
 * ERROR: sys-apps/baselayout-prefix-1.12.14 failed (compile phase):
 *   (no error message)

(is this the same failure as on OpenBSD?  Maxim?)
Comment 1 Maxim Koltsov (RETIRED) gentoo-dev 2011-05-01 19:15:40 UTC
I confirm this on OpenBSD, solution is to drop '-ldl' from gcc line, because dlopen() and friends are builtin into dynamic loader on *BSD. Workaround solutions (sys-libs/libdl from our overlay) cannot be considered as permanent.
Comment 2 Fabian Groffen gentoo-dev 2011-05-01 19:21:24 UTC
Real solution is to make the conditional functional (already done).

On OpenBSD there is no problem with missing libkvm.so?  Is there a /usr/lib/libkvm.so on OpenBSD?
Comment 3 Maxim Koltsov (RETIRED) gentoo-dev 2011-05-01 19:23:41 UTC
Yes it is, static and shared variants. But i've never met any issue about libkvm, what is it for?
Comment 4 Fabian Groffen gentoo-dev 2011-05-01 19:26:39 UTC
It's for getting information about processes and stuff.  I committed the fixes in the sources.  Hopefully new rev will fix issues for *BSD bootstraps.
Comment 5 Maxim Koltsov (RETIRED) gentoo-dev 2011-05-01 19:29:40 UTC
Thanks, Fabian. By the way there's another issue with baselayout on OpenBSD, about some structures from libc afair. I'll file new bug when try emerging baselayout again.