Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81967 - ltrace 0.3.36 doesn't build, due to multilib header issues
Summary: ltrace 0.3.36 doesn't build, due to multilib header issues
Status: RESOLVED DUPLICATE of bug 87560
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-14 01:55 UTC by Blu3
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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


Attachments
Fixes first issue (ltrace.patch,406 bytes, patch)
2005-02-22 15:30 UTC, Benjamin Schindler (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blu3 2005-02-14 01:55:32 UTC
make -C sysdeps/linux-gnu
make[1]: Entering directory `/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/sysdeps/linux-gnu'
cat x86_64/arch.h > sysdep.h
cp x86_64/signalent.h signalent.h
cp x86_64/syscallent.h syscallent.h
x86_64-pc-linux-gnu-gcc -Wall -march=opteron -O2 -pipe -fomit-frame-pointer -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36 -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/sysdeps/linux-gnu -I- -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/sysdeps/linux-gnu/x86_64  -c -o trace.o trace.c
In file included from /usr/include/gentoo-multilib/amd64/features.h:314,
                 from /usr/include/features.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:28,
                 from /usr/include/stdio.h:7,
                 from trace.c:1:
/usr/include/sys/cdefs.h:7:48: ../gentoo-multilib/amd64/sys/cdefs.h: No such file or directory
In file included from /usr/include/gentoo-multilib/amd64/features.h:337,
                 from /usr/include/features.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:28,
                 from /usr/include/stdio.h:7,
                 from trace.c:1:
/usr/include/gnu/stubs.h:7:48: ../gentoo-multilib/amd64/gnu/stubs.h: No such file or directory
In file included from /usr/include/gentoo-multilib/amd64/stdio.h:34,
                 from /usr/include/stdio.h:7,
                 from trace.c:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/stddef.h:213: error: syntax error before "typedef"
In file included from /usr/include/gentoo-multilib/amd64/stdio.h:36,
                 from /usr/include/stdio.h:7,
                 from trace.c:1:
/usr/include/bits/types.h:7:49: ../gentoo-multilib/amd64/bits/types.h: No such file or directory
[..]

Scott tmp # emerge info
Portage 2.0.51-r15 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10 x86_64)
=================================================================
System uname: 2.6.10 x86_64 AMD Opteron(tm) Processor 148
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 03:20:41)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.10
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 GAPING_SECURITY_HOLE X X509 a52 aac aalib acpi acpi4linux aim alsa aotuv apache2 arts artswrappersuid artworkextra atm audiofile avantgo avi bluetooth bonobo bzip2 bzlib cairo caps cdda cddb cdf cdio cdparanoia cdr chipcard chroot cle266 codecs crypt css cups curl curlwrappers dba dbx devfs26 dga dio distcache divx4linux djbfft dnd dts dv dvb dvd dvdr dvdread dxr3 edl emoticon emul-linux encode erandom escreen ethereal exif extensions faac faad fam fame fax ffmpeg fftw flac flash flexresp fmod foomaticdb fpx freetts freetype ftp ftruncate gd gdbm geoip gif gimp gimpprint glade glgd glitz glut gmail gmp gnokii gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile hal hbci hdf hdf5 high-ints icq ide idea idled ieee1394 imagemagick imap imlib imlib2 ipv6 irda irmc j2ee jabber jack jack-tmpfs java javacomm javamail javascript jbig jp2 jpeg jpeg2k junit kadu-modules kadu-voice kcal kde kdepim koffice-plugin lcms libgd libgda libsamplerate libwww lirc live lm_sensors ltsp lzo lzw lzw-tiff mad mbox mbrola mcal md5sum memlimit mhash mikmod mime mimencode ming mixer mjpeg mmap mng monkey motif mozcalendarmozdevelop mozilla moznoirc mozp3p mozsvg mp3 mpeg mpeg2 mpeg4 mpi mplayer mpm-leader mpm-metux mpm-peruser mpm-prefork mpm-threadpool mpm-worker msdav msn multicall mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses netcdf network nls no-old-linux nopri nozaptel nptl nptlonly ntlm nvidia nviz oav odbc offensive ofx ogg oggvorbis openal opengl operanom2 oscar oss pam parse-clocks pcap pcntl pcre pda pdflib perl pg-hier pg-vacuumdelay php pic plotutils png pnp portaudio posix postgres ppds pthreads python quotes readline real remote rtc samba scanner sdl serial session shared sharedmem slang slp smime sms sndfile snmp snortsam soap sockets socks5 speex spell spl ssl stats stream svg sysvipc t1lib tcpd tga theora threads thumbnail tidy tiff timidity tokenizer transcode transparent-proxy truetype truetype-fonts type1 type1-fonts underscores usb userlocales uudeview v4l v4l2 vcd vidix vorbis wddx wifi wmf xface xgetdefault xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xv xvid xvmc yahoo yaz yv12 zlib zvbi"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

Scott tmp # gcc-config -l
[1] x86_64-pc-linux-gnu-3.3.3
[2] x86_64-pc-linux-gnu-3.4.0
[3] x86_64-pc-linux-gnu-3.4.1
[4] x86_64-pc-linux-gnu-3.4.2
[5] x86_64-pc-linux-gnu-3.4.3 *
[6] x86_64-pc-linux-gnu-3.4.3-hardened
[7] x86_64-pc-linux-gnu-3.4.3-hardenednopie
[8] x86_64-pc-linux-gnu-3.4.3-hardenednossp
Comment 1 Roland Bär 2005-02-15 08:38:14 UTC
You could try
export CPATH=/usr/include/gentoo-multilib/amd64
emerge ltrace

Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-02-15 08:50:57 UTC
amd64 guys, and idea on this?
Comment 3 Benjamin Schindler (RETIRED) gentoo-dev 2005-02-22 15:30:03 UTC
Created attachment 51907 [details, diff]
Fixes first issue

This fixes the first compilation issue.
unfortunatelly, there are other erros further on - it won't compile.
The fix was to remove -I-, which would ignore #include "x.h", but not #include
<x.h>, which breaks with this setup
Comment 4 Benjamin Schindler (RETIRED) gentoo-dev 2005-02-22 15:30:53 UTC
Now it stops here: 
x86_64-pc-linux-gnu-gcc -Wall -O2 -pipe -march=k8 -fomit-frame-pointer -ftracer -fweb -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36 -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/sysdeps/linux-gnu -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -I/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/sysdeps/linux-gnu/x86_64  -c -o plt.o plt.c
In file included from /usr/include/libelf.h:23,
                 from /usr/include/gelf.h:20,
                 from plt.c:1:
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:12: error: parse error before "Elf"
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:14: error: parse error before '*' token
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:17: error: parse error before "plt_addr"
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:18: error: parse error before '*' token
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:20: error: parse error before '*' token
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:22: error: parse error before '}' token
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:29: error: parse error before "arch_plt_sym_val"
/var/tmp/portage/ltrace-0.3.36/work/ltrace-0.3.36/elf.h:29: error: parse error before "GElf_Rela"
In file included from /usr/include/gelf.h:20,
                 from plt.c:1:
/usr/include/libelf.h:178: error: parse error before '*' token
/usr/include/libelf.h:180: error: parse error before '*' token
/usr/include/libelf.h:183: error: parse error before '*' token
/usr/include/libelf.h:185: error: parse error before '*' token
/usr/include/libelf.h:188: error: parse error before '*' token
/usr/include/libelf.h:190: error: parse error before '*' token
/usr/include/libelf.h:193: error: parse error before '*' token
/usr/include/libelf.h:195: error: parse error before '*' token
/usr/include/libelf.h:225: error: parse error before '*' token
/usr/include/libelf.h:227: error: parse error before '*' token
etc etc
Comment 5 huginson 2005-04-01 06:38:02 UTC
See also bug #87560.
Comment 6 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-12 02:52:29 UTC

*** This bug has been marked as a duplicate of 87560 ***