Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127219 - sys-libs/glibc-2.4-r1: elf/link.h: No such file or directory
Summary: sys-libs/glibc-2.4-r1: elf/link.h: No such file or directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 12:12 UTC by Martin Mokrejš
Modified: 2006-03-23 08:25 UTC (History)
0 users

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 Martin Mokrejš 2006-03-22 12:12:33 UTC
i686-pc-linux-gnu-gcc forward.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=pentium4 -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2  -fPIC -fexceptions   -I../include -I/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/nptl -I/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../ports/sysdeps/unix/sysv/linux -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../ports/sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv/i386 -I../ports/sysdeps/unix/sysv -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../ports/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../ports -I../nptl  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED     -o /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/nptl/forward.os -MD -MP -MF /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/nptl/forward.os.dt -MT /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/nptl/forward.os
In file included from ../include/dlfcn.h:3,
                 from forward.c:20:
../include/link.h:33:22: elf/link.h: No such file or directory
In file included from ../include/dlfcn.h:3,
                 from forward.c:20:
../include/link.h:39: error: syntax error before "uintptr_t"
../include/link.h:39: warning: function declaration isn't a prototype
In file included from ../include/link.h:43,
                 from ../include/dlfcn.h:3,
                 from forward.c:20:
../sysdeps/i386/bits/linkmap.h:3: error: syntax error before "Elf32_Addr"
../sysdeps/i386/bits/linkmap.h:3: warning: no semicolon at end of struct or union
../sysdeps/i386/bits/linkmap.h:4: warning: type defaults to `int' in declaration of `gotplt'
../sysdeps/i386/bits/linkmap.h:4: warning: data definition has no type or storage class
In file included from ../include/dlfcn.h:3,
                 from forward.c:20:
../include/link.h:90: error: syntax error before "ElfW"
../include/link.h:90: warning: no semicolon at end of struct or union
../include/link.h:92: error: syntax error before '*' token
../include/link.h:92: warning: type defaults to `int' in declaration of `l_ld'
../include/link.h:92: warning: data definition has no type or storage class
../include/link.h:122: error: syntax error before '*' token
../include/link.h:122: error: `DT_NUM' undeclared here (not in a function)
../include/link.h:122: error: `DT_THISPROCNUM' undeclared here (not in a function)
../include/link.h:123: error: `DT_VERSIONTAGNUM' undeclared here (not in a function)
../include/link.h:123: error: `DT_EXTRANUM' undeclared here (not in a function)
../include/link.h:123: error: `DT_VALNUM' undeclared here (not in a function)
../include/link.h:123: error: `DT_ADDRNUM' undeclared here (not in a function)
../include/link.h:123: warning: type defaults to `int' in declaration of `l_info'
../include/link.h:123: warning: data definition has no type or storage class
../include/link.h:124: error: syntax error before '*' token
../include/link.h:124: warning: type defaults to `int' in declaration of `l_phdr'
../include/link.h:124: warning: data definition has no type or storage class
../include/link.h:125: error: syntax error before "l_entry"
../include/link.h:125: warning: type defaults to `int' in declaration of `l_entry'
../include/link.h:125: warning: data definition has no type or storage class
../include/link.h:126: error: syntax error before "l_phnum"
../include/link.h:126: warning: type defaults to `int' in declaration of `l_phnum'
../include/link.h:126: warning: data definition has no type or storage class
../include/link.h:127: error: syntax error before "l_ldnum"
../include/link.h:127: warning: type defaults to `int' in declaration of `l_ldnum'
../include/link.h:127: warning: data definition has no type or storage class
../include/link.h:143: error: syntax error before "l_nbuckets"
../include/link.h:143: warning: type defaults to `int' in declaration of `l_nbuckets'
../include/link.h:143: warning: data definition has no type or storage class
../include/link.h:144: error: syntax error before '*' token
../include/link.h:144: warning: type defaults to `int' in declaration of `l_buckets'
../include/link.h:144: warning: type defaults to `int' in declaration of `l_chain'
../include/link.h:144: warning: data definition has no type or storage class
../include/link.h:152: error: syntax error before ':' token
../include/link.h:153: error: syntax error before ':' token
../include/link.h:154: error: syntax error before ':' token
../include/link.h:155: error: syntax error before ':' token
../include/link.h:156: error: syntax error before ':' token
../include/link.h:157: error: syntax error before ':' token
../include/link.h:159: error: syntax error before ':' token
../include/link.h:161: error: syntax error before ':' token
../include/link.h:163: error: syntax error before ':' token
../include/link.h:166: error: syntax error before ':' token
../include/link.h:167: error: syntax error before ':' token
../include/link.h:168: error: syntax error before ':' token
../include/link.h:170: error: syntax error before ':' token
../include/link.h:183: error: syntax error before "ElfW"
../include/link.h:183: warning: no semicolon at end of struct or union
../include/link.h:188: error: syntax error before '}' token
../include/link.h:188: warning: type defaults to `int' in declaration of `l_reloc_result'
../include/link.h:188: warning: data definition has no type or storage class
../include/link.h:191: error: syntax error before '*' token
../include/link.h:191: warning: type defaults to `int' in declaration of `l_versyms'
../include/link.h:191: warning: data definition has no type or storage class
../include/link.h:198: error: syntax error before "l_map_start"
../include/link.h:198: warning: type defaults to `int' in declaration of `l_map_start'
../include/link.h:198: warning: type defaults to `int' in declaration of `l_map_end'
../include/link.h:198: warning: data definition has no type or storage class
../include/link.h:200: error: syntax error before "l_text_end"
../include/link.h:200: warning: type defaults to `int' in declaration of `l_text_end'
../include/link.h:200: warning: data definition has no type or storage class
../include/link.h:231: error: syntax error before "l_feature_1"
../include/link.h:231: warning: type defaults to `int' in declaration of `l_feature_1'
../include/link.h:231: warning: data definition has no type or storage class
../include/link.h:232: error: syntax error before "l_flags_1"
../include/link.h:232: warning: type defaults to `int' in declaration of `l_flags_1'
../include/link.h:232: warning: data definition has no type or storage class
../include/link.h:233: error: syntax error before "l_flags"
../include/link.h:233: warning: type defaults to `int' in declaration of `l_flags'
../include/link.h:233: warning: data definition has no type or storage class
../include/link.h:242: warning: type defaults to `int' in declaration of `ElfW'
../include/link.h:242: warning: parameter names (without types) in function declaration
../include/link.h:242: error: field `ElfW' declared as a function
../include/link.h:242: warning: no semicolon at end of struct or union
../include/link.h:242: error: syntax error before '*' token
../include/link.h:245: error: syntax error before '*' token
../include/link.h:245: warning: type defaults to `int' in declaration of `ret'
../include/link.h:245: warning: data definition has no type or storage class
../include/link.h:246: error: syntax error before '}' token
../include/link.h:246: warning: type defaults to `int' in declaration of `l_lookup_cache'
../include/link.h:246: warning: data definition has no type or storage class
../include/link.h:272: error: syntax error before "l_relro_addr"
../include/link.h:272: warning: type defaults to `int' in declaration of `l_relro_addr'
../include/link.h:272: warning: data definition has no type or storage class
../include/link.h:282: error: syntax error before '}' token
../include/link.h:290:3: #error "__ELF_NATIVE_CLASS must be defined"
../include/link.h:294: warning: "struct dl_phdr_info" declared inside parameter list
../include/link.h:294: warning: its scope is only this definition or declaration, which is probably not what you want
../include/link.h:123: error: storage size of `l_info' isn't known
../include/link.h:238: error: storage size of `l_mach' isn't known
make[2]: *** [/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/nptl/forward.os] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r1 failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile
  glibc-2.4-r1.ebuild, line 1260:   Called toolchain-glibc_src_compile

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Portage 2.1_pre6-r5 (default-linux/x86/2005.0, gcc-3.4.5-hardened, glibc-2.3.6-r3, 2.6.16-rc5 i686)
=================================================================
System uname: 2.6.16-rc5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [disabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/spool/PBS"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aac aalib acpi alsa apache2 apm arts ati avi berkdb bitmap-fonts bonobo caca cdparanoia cdr cpudetection crypt cscope ctype cups curl dba dga directfb divx divx5 divx5linux doc dri dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc iconv ifc imagemagick imlib imlib2 inifile innodb ipv6 ithreads java jpeg kerberos lcms leim libcaca libg++ libwww live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext motif mozilla mp3 mpeg mule mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils plugin png ppds pthread pthreads python qt qtx quicktime readline rtc samba scanner scp sdl server session slp spell sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32 win32codecs winvidix wmf xanim xml xml2 xmms xosd xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 SpanKY gentoo-dev 2006-03-22 12:52:17 UTC
does this file exist:
/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/elf/link.h
Comment 2 Martin Mokrejš 2006-03-22 14:24:20 UTC
No, the whole subdirectory is missing.

# ls -la /var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/
total 760
drwxr-xr-x 21 root root   4096 Mar 22 21:26 .
drwx------  5 root root     79 Mar 22 20:52 ..
-rw-r--r--  1 root root   5399 Mar  8  2004 CANCEL-FCT-WAIVE
-rw-r--r--  1 root root  26536 Aug 27  2002 COPYING.LIB
-rw-r--r--  1 root root 641682 Apr 20  2004 ChangeLog.14
-rw-r--r--  1 root root    574 Nov 21 16:43 Makefile.in
-rw-r--r--  1 root root   5085 Mar  6 11:59 README.template
-rwxr-xr-x  1 root root   9054 Mar 22 20:52 a.out
drwxr-xr-x  2 root root   4096 Mar  6 12:18 assert
drwxr-xr-x  2 root root     51 Mar 22 20:52 autom4te.cache
drwxr-xr-x  2 root root   4096 Mar  6 12:18 bits
drwxrwxr-x  2 root root    136 Mar 22 20:51 c_stubs
drwxr-xr-x  2 root root   4096 Mar  6 12:18 catgets
-rw-r--r--  1 root root    382 Mar  8  2004 extra-modules.mk
drwxr-xr-x  3 root root   4096 Mar  6 12:18 gmon
drwxr-xr-x  2 root root     54 Mar  6 12:18 gnulib
drwxr-xr-x  2 root root   4096 Mar 22 20:52 iconv
drwxr-xr-x 11 root root   4096 Mar 22 20:52 include
drwxr-xr-x  2 root root   4096 Mar 22 20:52 intl
drwxr-xr-x  2 root root   4096 Mar  6 12:18 libidn
drwxr-xr-x  3 root root   4096 Mar  6 12:18 mach
drwxr-xr-x  6 root root   4096 Mar  6 12:18 nis
drwxr-xr-x  2 root root   4096 Mar  6 12:18 nptl_db
drwxr-xr-x  4 root root   4096 Mar  6 12:11 ports
drwxr-xr-x  2 root root   4096 Mar  6 12:18 pwd
drwxr-xr-x  4 root root   4096 Mar  6 12:18 sunrpc
drwxr-xr-x 16 root root   4096 Mar 22 21:26 sysdeps
drwxr-xr-x  3 root root   4096 Mar  6 12:18 time
#
Comment 3 SpanKY gentoo-dev 2006-03-22 15:50:21 UTC
uhh, why ?  does re-emerging glibc work ?  if you do just `ebuild glibc-2.4-r1.ebuild clean unpack`, do you have an elf dir ?
Comment 4 Martin Mokrejš 2006-03-23 02:37:25 UTC
OK, the directory does exist when unpacked. I cleaned up /var/tmp/portage/ and repeated:

/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ranlib /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -r -o /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.map.o '-Wl,-(' /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.mapT
/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(init-first.os):(.data+0x0): multiple definition of `__libc_multiple_libcs'
/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os:(.bss+0x80): first defined here
/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(_itoa.os): In function `_itoa':
_itoa.c:(.text+0x120): multiple definition of `_itoa'
/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os:: first defined here
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `_itoa' changed from 182 in /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/dl-allobjs.os to 528 in /var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/libc_pic.a(_itoa.os)
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.4-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/librtld.map] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r1 failed.
Call stack:
  ebuild.sh, line 1565:   Called dyn_compile
  ebuild.sh, line 974:   Called src_compile
  glibc-2.4-r1.ebuild, line 1260:   Called toolchain-glibc_src_compile

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              47G   41G  6.4G  87% /
udev                  506M  240K  505M   1% /dev
none                  506M     0  506M   0% /dev/shm
#
# gcc-config -l
 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.5
 [7] i686-pc-linux-gnu-3.4.5-hardened *
 [8] i686-pc-linux-gnu-3.4.5-hardenednopie
 [9] i686-pc-linux-gnu-3.4.5-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.5-hardenednossp
#
Comment 5 SpanKY gentoo-dev 2006-03-23 06:21:12 UTC
that's a diff issue ... a hardened gcc profile will fail to build glibc-2.4 at this time
Comment 6 Martin Mokrejš 2006-03-23 08:25:05 UTC
You were right, hardened issue. I forgot I had it set for testing of some other bug. Thanks.