| Summary: | static bombs with gcc-3.4.3 / glibc-2.3.4.20041102-r0 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | helman, mark.wadham, rockoo |
| Priority: | High | ||
| Version: | 2004.2 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Alexander Skwar
2004-11-12 03:05:44 UTC
Hmm... app-arch/tar-1.14.90-r1 fails to compile with the exact same error message: names.o(.text+0x130): In function `gid_to_gname': : warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x326): In function `gname_to_gid': : warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x224): In function `uname_to_uid': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x50): In function `uid_to_uname': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setuid.o)(.text+0x38): In function `__setuid': : undefined reference to `__libc_pthread_functions' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setgid.o)(.text+0x38): In function `__setgid': : undefined reference to `__libc_pthread_functions' collect2: ld gab 1 als Ende-Status zur Hmm... app-arch/tar-1.14.90-r1 fails to compile with the exact same error message: names.o(.text+0x130): In function `gid_to_gname': : warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x326): In function `gname_to_gid': : warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x224): In function `uname_to_uid': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking names.o(.text+0x50): In function `uid_to_uname': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setuid.o)(.text+0x38): In function `__setuid': : undefined reference to `__libc_pthread_functions' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setgid.o)(.text+0x38): In function `__setgid': : undefined reference to `__libc_pthread_functions' collect2: ld gab 1 als Ende-Status zurück make[2]: *** [tar] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90/src' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90' make: *** [all] Fehler 2 !!! ERROR: app-arch/tar-1.14.90-r1 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. 17:23:19 askwar@alturo:~ $ epm -qf /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a glibc-2.3.4.20041102 17:23:44 askwar@alturo:~ $ genlop -i glibc * sys-libs/glibc Total builds: 3 Global build time: 6 hours, 7 minutes and 23 seconds. Average merge time: 2 hours, 2 minutes and 27 seconds. Info about currently installed ebuild: * sys-libs/glibc-2.3.4.20041102 Install date: Fri Nov 12 02:04:36 2004 USE="nls pic nptl nptlonly hardened -build -erandom -multilib -debug -userlocales -nomalloccheck" CFLAGS="-march=pentium4 -O3 -pipe -freorder-blocks -O2" Hmm, strange. app-admin/syslog-ng-1.6.5-r1 gives the same error message: /usr/lib/libol.a(io.o)(.text+0x1727): In function `get_inaddr': : warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking afinet.o(.text+0x259): In function `inet_address_setport': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setuid.o)(.text+0x38): In function `__setuid': : undefined reference to `__libc_pthread_functions' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setgid.o)(.text+0x38): In function `__setgid': : undefined reference to `__libc_pthread_functions' collect2: ld gab 1 als Ende-Status zur Hmm, strange. app-admin/syslog-ng-1.6.5-r1 gives the same error message: /usr/lib/libol.a(io.o)(.text+0x1727): In function `get_inaddr': : warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking afinet.o(.text+0x259): In function `inet_address_setport': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setuid.o)(.text+0x38): In function `__setuid': : undefined reference to `__libc_pthread_functions' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a(setgid.o)(.text+0x38): In function `__setgid': : undefined reference to `__libc_pthread_functions' collect2: ld gab 1 als Ende-Status zurück make[3]: *** [syslog-ng] Fehler 1 make[3]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r1/work/syslog-ng-1.6.5/src' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r1/work/syslog-ng-1.6.5/src' make[1]: *** [all] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.5-r1/work/syslog-ng-1.6.5/src' make: *** [all-recursive] Fehler 1 !!! ERROR: app-admin/syslog-ng-1.6.5-r1 failed. Is there some issue with the glibc? 07:38:17 askwar@alturo:~ $ epm -qf /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libc.a glibc-2.3.4.20041102 it's a toolchain bug, not these packages I just realised something: The error messages always said, that something with pthread wasn't present. Then I realised, that I had glibc installed with nptlonly. I now re-emerged glibc WITHOUT nptlonly, which also installed the pthread library. After I did so, I was able to USE=static emerge tar (and all the others, I mentioned). Is there anything I expect gentoo to do better? Dunno. It would be nice, if the packages I mentioned wouldn't even try to compile with static, if nptlonly is set. But, I don't quite know if this is a sensible expectation. *** Bug 92902 has been marked as a duplicate of this bug. *** *** Bug 91971 has been marked as a duplicate of this bug. *** This looks fixed. USE=static tar worked for me on my nptlonly system. |