| Summary: | =dev-libs/dietlibc-0.33_pre20090721 fails to build dnsd | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | barthek <gejzer> |
| Component: | New packages | Assignee: | Gentoo VPS Team (OBSOLETE) <vserver-devs+disabled> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | solar |
| Priority: | High | ||
| Version: | 2005.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Small fix. | ||
|
Description
barthek
2005-11-08 08:12:19 UTC
Probably hardened gcc is source of this trouble. Try to select vanilla gcc. (In reply to comment #0) > emerging dietlibc 0.29 fails with: > > bin-i386/diet gcc -pipe -march=pentium2 -O3 -fno-stack-protector -D__dietlibc__ > -fno-stack-protector-all -fno-stack-protector -o bin-i386/dnsd contrib/dnsd.c > /home/portagetmp/portage/dietlibc-0.29/temp/ccafwXnA.o: In function `handle': > dnsd.c:(.text+0x262): undefined reference to `sendto' > dnsd.c:(.text+0x2bf): undefined reference to `socket' > /home/portagetmp/portage/dietlibc-0.29/temp/ccafwXnA.o: In function `recv6': > dnsd.c:(.text+0x5ed): undefined reference to `recvmsg' > /home/portagetmp/portage/dietlibc-0.29/temp/ccafwXnA.o: In function `main': > dnsd.c:(.text+0x78d): undefined reference to `socket' > dnsd.c:(.text+0x7b0): undefined reference to `socket' > dnsd.c:(.text+0x812): undefined reference to `bind' > dnsd.c:(.text+0x8a6): undefined reference to `setsockopt' > dnsd.c:(.text+0x8ce): undefined reference to `setsockopt' > dnsd.c:(.text+0x928): undefined reference to `setsockopt' > dnsd.c:(.text+0x961): undefined reference to `setsockopt' > dnsd.c:(.text+0x996): undefined reference to `setsockopt' > /home/portagetmp/portage/dietlibc-0.29/temp/ccafwXnA.o:dnsd.c:(.text+0x9b8): > more undefined references to `setsockopt' follow > /home/portagetmp/portage/dietlibc-0.29/temp/ccafwXnA.o: In function `main': > dnsd.c:(.text+0xa93): undefined reference to `bind' > dnsd.c:(.text+0xb43): undefined reference to `recvmsg' > dnsd.c:(.text+0xc57): undefined reference to `recvmsg' > collect2: ld returned 1 exit status > make: *** [bin-i386/dnsd] Error 1 Created attachment 73709 [details]
Small fix.
dietlibc ebuild is missing -nopie flag, should be fixed.
Ebuild with small fix is in the attachment.
indeed, with nopie flag it compiles cleanly. thanks! :) does this work with dietlibc-0.29-r1? so, this should finally be fixed in 0.30_pre20060501 (currently masked), please reopen if it still persists.. *** Bug 134854 has been marked as a duplicate of this bug. *** Confirmed 0.30_pre20060501 compiles. just a quick note that this has hopefully been fixed instead of work-arounded.. this bug existed only for i386 due to socketcalls being only defined when PIC is disabled... i removed the check and it seems to work (at least compile tested) please test 0.30-r2, thanks works like a charm for me :) thanks Reopening. (In reply to comment #9) > works like a charm for me :) thanks > Good. Closing as FIXED then. *** Bug 281141 has been marked as a duplicate of this bug. *** The issue is reintroduced with 0.33_... can you please test if -nopie fixes the issue? yup, no pie worked for me this time nopie added to 0.33_pre*, thanks. |