Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489780 - sys-cluster/util-vserver with dev-libs/dietlibc and sys-devel/gcc-4.7* - /usr/diet/lib-i386/libc.a(assert_fail.o): In function `__assert_fail': (.text+0x185): undefined reference to `stpcpy'
Summary: sys-cluster/util-vserver with dev-libs/dietlibc and sys-devel/gcc-4.7* - /usr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 14:23 UTC by BRULE Herman
Modified: 2014-07-29 05:28 UTC (History)
4 users (show)

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


Attachments
emerge --info (info.txt,4.35 KB, text/plain)
2013-10-29 14:23 UTC, BRULE Herman
Details
ebuild to compile dietlib from git (dietlibc-9999.ebuild,1.48 KB, text/plain)
2014-04-08 20:57 UTC, Ilya Semenov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2013-10-29 14:23:49 UTC
Created attachment 362232 [details]
emerge --info

util-vserver fail to compil under gentoo x86, see the attached file for full sys info

src/secure-mount.o: In function `mountSingle':
secure-mount.c:(.text+0x7ee): warning: warning: your code still has assertions enabled!
/usr/diet/lib-i386/libc.a(assert_fail.o): In function `__assert_fail':
(.text+0x185): undefined reference to `stpcpy'
collect2: error: ld returned 1 exit status
make[2]: *** [src/secure-mount] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-cluster/util-vserver-0.30.216_pre3038/work/util-vserver-0.30.216-pre3038'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/util-vserver-0.30.216_pre3038/work/util-vserver-0.30.216-pre3038'
make: *** [all] Error 2
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-30 15:55:46 UTC
Please attach the entire build log to this bug report.
Comment 2 Mirko Langisch 2013-11-14 18:49:09 UTC
this is fixed by latest commit in dietlib-cvs
so we need a new snapshot of dietlibc, maybe

(if i remember correctly it used to work, if dietlibc was compiled
with <=sys-devel/gcc-4.6... so some kind of toolchain breakage maybe)
Comment 3 Mirko Langisch 2013-11-14 18:50:46 UTC
latest version of util-vserver is 0.30.216-pre3054, btw, please version-bump
Comment 4 BRULE Herman 2013-11-18 01:58:45 UTC
I confirm, it's due here to dietlibc and gcc 4.7
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-16 14:35:48 UTC
It shouldn't depend on dev-libs/dietlibc at all, by the way.
Comment 6 Mirko Langisch 2014-01-17 19:34:26 UTC
> It shouldn't depend on dev-libs/dietlibc at all, by the way. 

Why? I agree, we should be able to build against uclibc and musl
as well, but linking against glibc exposes some additional security flaws.

We just need an up2date snapshot of dietlibc, because this
issue is fixed in cvs.
Comment 7 Ivan Iraci 2014-04-03 14:32:47 UTC
Same problem here, also with util-vserver-0.30.216_pre3060.
Comment 8 Ilya Semenov 2014-04-08 20:57:33 UTC
Created attachment 374556 [details]
ebuild to compile dietlib from git

Use this ebuild to install the latest Git revision of dietlibc, which fixes the problem with util-vserver. It uses unofficial Github mirror of the CVS repository (which is currently down).
Comment 9 Ivan Iraci 2014-04-09 09:02:03 UTC
(In reply to Ilya Semenov from comment #8)

> Use this ebuild to install the latest Git revision of dietlibc, which fixes
> the problem with util-vserver. It uses unofficial Github mirror of the CVS
> repository (which is currently down).

util-vserver compiles fine with your dietlibc ebuild.

Maybe it should be pulled into the portage tree.
Comment 10 Heiko Steindl 2014-06-16 12:17:02 UTC
Maybe this patch could fix this problem? (I've not tested it)

http://svn.exactcode.de/t2/trunk/package/base/dietlibc/stpcpy.patch
Comment 11 Patrick Lauer gentoo-dev 2014-07-29 05:28:52 UTC
This one is the same as the other bug, should be fixed with util-vserver-0.30.216_pre3038-r1