Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87278 - glibc-2.3.4.20041102-r1 errors in header files concerning multilib
Summary: glibc-2.3.4.20041102-r1 errors in header files concerning multilib
Status: RESOLVED DUPLICATE of bug 87560
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-30 07:20 UTC by Gary Dezern
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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 Gary Dezern 2005-03-30 07:20:45 UTC
Example of the problem:
/usr/include/sys/cdefs.h includes ../gentoo-multilib/amd64/sys/cdefs.h which often results in compilation errors (No such file or directory) as the relative path won't be found from any of the standard include paths.

This seems to occur with every header in /usr/include/sys, /usr/include/gnu, etc which tries to include from a relative path using "..".


Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~amd64" emerge -v =net-fs/shfs-0.35-r1 
(while this ebuild demonstrates the problem, its certainly not isolated to this ebuild)


Actual Results:  
Pages of errors resulting from the above described problem.  Here's some of
stderr after attemting the above emerge:
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 shfsumount.c:3:
/usr/include/sys/cdefs.h:7:48: ../gentoo-multilib/amd64/sys/cdefs.h: No such fil
e 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 shfsumount.c:3:
/usr/include/gnu/stubs.h:7:48: ../gentoo-multilib/amd64/gnu/stubs.h: No such fil
e or directory
In file included from /usr/include/gentoo-multilib/amd64/stdio.h:34,
                 from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/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 shfsumount.c:3:
/usr/include/bits/types.h:7:49: ../gentoo-multilib/amd64/bits/types.h: No such f
ile or directory
In file included from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/usr/include/gentoo-multilib/amd64/stdio.h:46: error: syntax error before "typed
ef"
/usr/include/gentoo-multilib/amd64/stdio.h:51: error: parse error before "__USIN
G_NAMESPACE_STD"
/usr/include/gentoo-multilib/amd64/stdio.h: In function `__USING_NAMESPACE_STD':
/usr/include/gentoo-multilib/amd64/stdio.h:62: error: storage class specified fo
r parameter `__FILE'
In file included from /usr/include/gentoo-multilib/amd64/_G_config.h:14,
                 from /usr/include/_G_config.h:7,
                 from /usr/include/gentoo-multilib/amd64/libio.h:32,
                 from /usr/include/libio.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:72,
                 from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/stddef.h:325: error: storage clas
s specified for parameter `wchar_t'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/stddef.h:354: error: storage clas
s specified for parameter `wint_t'
In file included from /usr/include/gentoo-multilib/amd64/wchar.h:50,
                 from /usr/include/wchar.h:7,
                 from /usr/include/gentoo-multilib/amd64/_G_config.h:24,
                 from /usr/include/_G_config.h:7,
                 from /usr/include/gentoo-multilib/amd64/libio.h:32,
                 from /usr/include/libio.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:72,
                 from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/usr/include/bits/wchar.h:7:49: ../gentoo-multilib/amd64/bits/wchar.h: No such f
ile or directory
In file included from /usr/include/wchar.h:7,
                 from /usr/include/gentoo-multilib/amd64/_G_config.h:24,
                 from /usr/include/_G_config.h:7,
                 from /usr/include/gentoo-multilib/amd64/libio.h:32,
                 from /usr/include/libio.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:72,
                 from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/usr/include/gentoo-multilib/amd64/wchar.h:81: error: parse error before "wint_t
"
/usr/include/gentoo-multilib/amd64/wchar.h:81: error: old-style parameter declar
ations in prototyped function definition
/usr/include/gentoo-multilib/amd64/stdio.h:51: error: parameter name omitted
In file included from /usr/include/_G_config.h:7,
                 from /usr/include/gentoo-multilib/amd64/libio.h:32,
                 from /usr/include/libio.h:7,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:72,
                 from /usr/include/stdio.h:7,
                 from shfsumount.c:3:
/usr/include/gentoo-multilib/amd64/_G_config.h:28: error: `__off_t' undeclared (
first use in this function)
/usr/include/gentoo-multilib/amd64/_G_config.h:28: error: (Each undeclared ident
ifier is reported only once
/usr/include/gentoo-multilib/amd64/_G_config.h:28: error: for each function it a
ppears in.)
/usr/include/gentoo-multilib/amd64/_G_config.h:29: error: `__mbstate_t' undeclar
ed (first use in this function)
/usr/include/gentoo-multilib/amd64/_G_config.h: At top level:
/usr/include/gentoo-multilib/amd64/_G_config.h:33: error: parse error before "__
off64_t"
In file included from /usr/include/gconv.h:7,
                 from /usr/include/gentoo-multilib/amd64/_G_config.h:44,
                 from /usr/include/_G_config.h:7,
                 from /usr/include/gentoo-multilib/amd64/libio.h:32,

.. and so on....

Expected Results:  
emerged properly...

Note: I suspect that, using the cdefs.h example, the amd64 file that should be
included should be included is "gentoo-multilib/amd64/sys/cdefs.h" without the
preceeding "../".  This should work as "/usr/include" is a standard include path
(and /usr/include/sys, /usr/include/gnu, etc are not.)


amd64 2005.0:

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-ck3s x86_64)
=================================================================
System uname: 2.6.11-ck3s x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 23 2005, 21:17:26)]
ccache version 2.3 [enabled]
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-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -fomit-frame-pointer -fweb -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -fweb -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox userpriv"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
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 X Xaw3d aac acpi apache2 athena bash-completion berkdb bitmap-fonts
ccache cracklib crypt doc emacs exif fam gd gdbm gif gpm gtk gtk2 imagemagick
imap innodb ithreads java jpeg maildir motif mp3 mpeg mpeg4 mysql mysqli ncurses
nls nptl nvidia ogg oggvorbis opengl pam passfile perl php png readline samba
server session spell ssl threads tiff truetype truetype-fonts type1 type1-fonts
usb xml xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-24 15:47:00 UTC

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