Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92727 - sys-cluster/util-vserver-0.30.205-r1 compilation fails - "/usr/include/asm/spinlock.h"
Summary: sys-cluster/util-vserver-0.30.205-r1 compilation fails - "/usr/include/asm/s...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-15 11:59 UTC by Michael Zeidler
Modified: 2005-07-31 02:37 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 Michael Zeidler 2005-05-15 11:59:17 UTC
after re-compiling dietlibc as mentioned here (http://bugs.gentoo.org/show_bug.cgi?id=90189). Anyhow The compilation process doesnt succeeded.

Reproducible: Always
Steps to Reproduce:
1.emerge sys-cluster/util-vserver

Actual Results:  
In file included from /usr/include/linux/spinlock.h:56,
                 from kernel/dlimit.h:5,
                 from linuxvirtual.h:29,
                 from lib/getversion-internal.hc:27,
                 from lib/checkversion.c:25:
/usr/include/asm/spinlock.h: In function `read_lock':
/usr/include/asm/spinlock.h:188: error: `asm' undeclared (first use in this
function)
/usr/include/asm/spinlock.h:188: error: (Each undeclared identifier is reported
only once
/usr/include/asm/spinlock.h:188: error: for each function it appears in.)
/usr/include/asm/spinlock.h:188: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: In function `write_lock':
/usr/include/asm/spinlock.h:197: error: `asm' undeclared (first use in this
function)
/usr/include/asm/spinlock.h:197: error: syntax error before "volatile"
In file included from lib/checkversion.c:25:
lib/getversion-internal.hc: At top level:
lib/getversion-internal.hc:31: warning: invalid storage class for function
`vc_get_version_internal'
make[2]: *** [lib/lib_libvserver_la-checkversion.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I ./lib -I ./ensc_wrappers
-D_GNU_SOURCE -D_REENTRANT -DNDEBUG -mcpu=athlon-xp -O3 -pipe
-fomit-frame-pointer -std=c99 -Wall -pedantic -W -MT
lib/lib_libvserver_la-syscall.lo -MD -MP -MF
lib/.deps/lib_libvserver_la-syscall.Tpo -c lib/syscall.c  -fPIC -DPIC -o
lib/.libs/lib_libvserver_la-syscall.o
In file included from /usr/include/linux/spinlock.h:56,
                 from kernel/dlimit.h:5,
                 from linuxvirtual.h:29,
                 from lib/syscall.c:28:
/usr/include/asm/spinlock.h: In function `read_lock':
/usr/include/asm/spinlock.h:188: error: `asm' undeclared (first use in this
function)
/usr/include/asm/spinlock.h:188: error: (Each undeclared identifier is reported
only once
/usr/include/asm/spinlock.h:188: error: for each function it appears in.)
/usr/include/asm/spinlock.h:188: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: In function `write_lock':
/usr/include/asm/spinlock.h:197: error: `asm' undeclared (first use in this
function)
/usr/include/asm/spinlock.h:197: error: syntax error before "volatile"
In file included from lib/syscall.c:33:
lib/vserver-internal.h: At top level:
lib/vserver-internal.h:38: warning: invalid storage class for function `vc_noop0'
lib/vserver-internal.h:238: warning: invalid storage class for function `vserver'
In file included from lib/syscall-compat.hc:24,
                 from lib/syscall.c:36:
lib/safechroot-internal.hc:44: warning: invalid storage class for function
`vc_tell_unsafe_chroot'
In file included from lib/syscall.c:36:
lib/syscall-compat.hc:31: warning: invalid storage class for function
`vc_new_s_context_compat'
lib/syscall-compat.hc:41: warning: invalid storage class for function
`vc_set_ipv4root_compat'
make[2]: *** [lib/lib_libvserver_la-syscall.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/util-vserver-0.30.205-r1/work/util-vserver-0.30.205'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/util-vserver-0.30.205-r1/work/util-vserver-0.30.205'
make: *** [all] Error 2

Expected Results:  
Successful compilation of sys-cluster/util-vserver-0.30.205-r1

# equery b /usr/include/linux/spinlock.h
[ Searching for file(s) /usr/include/linux/spinlock.h in *... ]
sys-kernel/linux-headers-2.4.22-r1 (/usr/include/linux/spinlock.h)

-------------------------------------------------------------------------

# emerge info
Portage 2.0.51.21-r1 (default-linux/x86/2005.0/2.4, gcc-3.3.4, glibc-2.3.5-r0,
2.6.11.6-grsec-vs1.9.5 i686)
=================================================================
System uname: 2.6.11.6-grsec-vs1.9.5 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.11
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache digest distlocks fixpackages sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://gentoo.mirrors.pair.com ftp://gentoo.mirrors.pair.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlays/local
/usr/local/portage/overlays/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X X509 Xaw3d aac aalib acl acpi acpi4linux aim alsa
apache2 async audiofile avi bash-completion bdf berkdb bindist bitmap-fonts
calendar cap caps cddb cdparanoia cdr cdrom chroot codecs crypt css cups curl
curlwrappers dar32 dba devmap dga dio divx4linux drac dts dv dvd dvdr eds emboss
encode esd evms2 evo exif faac faad fam fbcon fbdev ffmpeg flac flatfile fltk
fluidsynth fmod foomaticdb foreign-package foreign-sysvinit fortran freetype ftp
gb gcj gd gif gimp gimpprint gpm graphviz gs gtk gtk2 icq idea ieee1394
imagemagick imap imlib imlib2 inifile innodb insecure-drivers ipv6 ipv6arpa
jabber javascript jbig jp2 jpeg lcms ldap libg++ libsamplerate libwww live
lm_sensors lufsusermount lzo lzw lzw-tiff mad maildir mbox mdb mikmod mime mmap
mmx mng motif mozcalendar mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer
msn mysql ncurses network nls no-htdocs ntlm odbc ogg oggvorbis opengl pam pcre
pdflib perl php png pnp posix pthreads python qt quicktime readline real rtc
ruby samba sasl sdl shared sharedmem slang slp sockets socks5 sox speedo spell
sse ssl svg svga sysvipc szip tcpd tga tidy tiff transcode truetype
truetype-fonts type1 type1-fonts usb v4l2 vcd vorbis winbind wmf xanim xfs xine
xinerama xml2 xmlrpc xmms xosd xpm xsl xv xvid zlib video_cards_3dfx
video_cards_gamma video_cards_i810 video_cards_i830 video_cards_matrox
video_cards_rage128 video_cards_radeon video_cards_sis userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Christian Heim (RETIRED) gentoo-dev 2005-05-24 00:19:50 UTC
(In reply to comment #0)
> after re-compiling dietlibc as mentioned here
(http://bugs.gentoo.org/show_bug.cgi?id=90189). Anyhow The compilation process
doesnt succeeded.
> 
> 
> # equery b /usr/include/linux/spinlock.h
> [ Searching for file(s) /usr/include/linux/spinlock.h in *... ]
> sys-kernel/linux-headers-2.4.22-r1 (/usr/include/linux/spinlock.h)
> 
> -------------------------------------------------------------------------
> 
> # emerge info
> Portage 2.0.51.21-r1 (default-linux/x86/2005.0/2.4, gcc-3.3.4, glibc-2.3.5-r0,
> 2.6.11.6-grsec-vs1.9.5 i686)
> =================================================================
> System uname: 2.6.11.6-grsec-vs1.9.5 i686 AMD Athlon(tm) XP 2800+
> Gentoo Base System version 1.6.11
> dev-lang/python:     2.3.5
> sys-apps/sandbox:    1.2.8
> sys-devel/autoconf:  2.13, 2.59-r6
> sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
> sys-devel/binutils:  2.15.92.0.2-r8
> sys-devel/libtool:   1.5.16
> virtual/os-headers:  2.4.22-r1
> ACCEPT_KEYWORDS="x86 ~x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer"
> CHOST="i686-pc-linux-gnu"

Well this is a bit fuzzy ... Why are you using a 2.4 profile but a 2.6 series
kernel ?! You should test if the switch to >linux-headers-2.5 solves your issue
problem.
Comment 2 Michael Imhof (RETIRED) gentoo-dev 2005-05-30 12:29:39 UTC
reassign
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2005-07-31 02:37:55 UTC
please use recent headers and reopen if it still fails