Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59425 - KV_DIR does not follow multiple symlinks properly
Summary: KV_DIR does not follow multiple symlinks properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 10:51 UTC by Ludootje
Modified: 2004-12-01 23:46 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 Ludootje 2004-08-04 10:51:35 UTC
I'm using linux-2.6.5-mm6. Output of uname -a:

gax ~ # uname -a
Linux gax 2.6.5-mm6 #1 Sun Apr 18 20:24:44 BST 2004 i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

My kernel sources are placed in /usr/src/lnx-kernel/linux-<version of kernel>
An exerpt of ls -1 /usr/src/lnx-kernel/ :
linux-2.6.5
linux-2.6.5-aa4
linux-2.6.5-mm1
linux-2.6.5-mm6
As you can see, the -mm6 is there.

In /usr/src, I've got some symlinks to those kernels:
gax ~ # ls -lh /usr/src/linux*
lrwxr-xr-x  1 root root 24 Aug  4 19:20 /usr/src/linux -> /usr/src/linux-2.6.5-mm6
lrwxr-xr-x  1 root root 31 Aug  4 18:38 /usr/src/linux-2.6.5 -> /usr/src/lnx-kernel/linux-2.6.5
lrwxr-xr-x  1 root root 35 Aug  4 19:20 /usr/src/linux-2.6.5-mm6 -> /usr/src/lnx-kernel/linux-2.6.5-mm6

This is my emerge --info:
gax ~ # emerge --info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-mm6)
=================================================================
System uname: 2.6.5-mm6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi bonobo crypt cups curl dvd encode esd evo faad fam ffmpeg flash foomaticdb freetype gif gnome gpm gtk gtk2 gtkhtml guile imagemagick imlib j-noaim j-noyahoo java javascript jpeg kde lcd libg++ lua mad mbox mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg msn ncurses nls nojoystick nomac noreiserfs offensive oggvorbis operanom2 oss pam pdflib perl png ppds python qt quicktime readline samba screen slang spell sqlite ssl svga tcltk tiff truetype unicode usb vim-with-x wsconvert wxwindows x86 xml2 xv zlib"

Here's what I get when I try to emerge alsa-driver-1.0.5a:

gax ~ # emerge alsa-driver
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/alsa-driver-1.0.5a to /
>>> md5 src_uri ;-) alsa-driver-1.0.5a.tar.bz2
>>> Unpacking source...
>>> Unpacking alsa-driver-1.0.5a.tar.bz2 to /var/tmp/portage/alsa-driver-1.0.5a/work
 * Applying alsa-driver-1.0.5-devfix.patch...                                                                         [ ok ]
 * Applying alsa-driver-1.0.5a-cs46xx-passthrough.patch...                                                            [ ok ]
 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 * Building for Linux 2.6.5-mm6 found in /usr/src/linux
 * A 2.5 or 2.6 kernel was detected.  We are copying the kernel source tree from
 * //usr/src/linux-2.6.5-mm6 to /var/tmp/portage/alsa-driver-1.0.5a/temp/linux
 * because the alsa-driver build process overwrites files in the 2.6.x kernel tree.
>>> Source unpacked.
x86
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for a BSD-compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a
checking cross compile...
checking for directory with kernel source... /var/tmp/portage/alsa-driver-1.0.5a/temp/linux
checking for kernel version... 2.6.5-mm6
checking for GCC version... Kernel compiler:  Used compiler: gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)

*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.

*** Please make sure that the same compiler version was used for building kernel.

checking for built-in ALSA... "no"
checking for existing ALSA module... "no"
checking for Red Hat kernel... "auto"
checking for Red Hat kernel... "no"
checking to modify of kernel linux/kmod.h... "no"
Removing a dummy linux/kmod.h.
checking for kernel linux/compiler.h... "yes"
Removing a dummy linux/compiler.h.
checking for kernel linux/pm.h... "yes"
checking for kernel linux/spinlock.h... "yes"
checking for kernel linux/irq.h... "yes"
Removing a dummy linux/irq.h.

[ lots more checking and removal of dummies, see full log ]

checking for kernel linux/syscalls.h... "yes"
Removing a dummy linux/syscalls.h.
checking for kernel module symbol versions... "no"
checking for PCI support in kernel... "no"
checking for Experimental drivers in kernel... "no"
checking for SGI/MIPS (HAL2) architecture... "no"
checking for directory to store kernel modules... /lib/modules/2.6.5-mm6/kernel/sound
checking for verbose printk... on
checking for debug level... none
checking for ISA support in kernel... "no"
checking for processor type... "unknown"
checking for SMP... "no"
checking for Video device support in kernel... "no"
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... yes
checking for Kernel ISA-PnP support... "no"
checking for Kernel ISA-PnP module support... "no"
checking for strlcpy... "no"
checking for snprintf... "no"
checking for scnprintf... "no"
checking for vmalloc_to_page... "no"
checking for old kmod... "yes"
checking for PDE... "no"
checking for pci_set_consistent_dma_mask... "no"
checking for tty->count is the atomic type... "no"
Removing local linux/isapnp.h.
Removing local linux/pnp.h.
checking for driver version... 1.0.5a
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for RTC callback support in kernel... "no"
checking for USB support... "no"
checking for USB module support... "no"
checking for kernel PCMCIA
checking for PCMCIA support... "no"
checking for PCMCIA module support... "no"
checking for PC9800 support in kernel... "no"
checking for which soundcards to compile driver for... emu10k1
configure: creating ./config.status
config.status: creating version
config.status: creating Makefile.conf
config.status: creating snddevices
config.status: creating utils/alsa-driver.spec
config.status: creating utils/buildrpm
config.status: creating toplevel.config
config.status: creating utils/alsasound
config.status: creating utils/alsasound.posix
config.status: creating include/config.h
config.status: creating include/config1.h
config.status: creating include/version.h
config.status: include/version.h is unchanged
config.status: creating include/autoconf-extra.h
config.status: include/autoconf-extra.h is unchanged
if [ ! -d include/sound -a ! -L include/sound ]; then \
  ln -sf ../alsa-kernel/include include/sound ; \
fi
cp -auvf include/version.h include/sound/version.h
`include/version.h' -> `include/sound/version.h'
make dep
make[1]: Entering directory `/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make[2]: Entering directory `/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/acore'
copying file alsa-kernel/core/info.c
patching file info.c
Hunk #6 succeeded at 486 (offset -8 lines).

[ more hunks and patching, see full log ]

Hunk #6 succeeded at 922 (offset 4 lines).
oss
make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/acore/oss'
copying file alsa-kernel/core/oss/mixer_oss.c
patching file mixer_oss.c
Hunk #1 succeeded at 381 (offset 5 lines).
copying file alsa-kernel/core/oss/pcm_oss.c
patching file pcm_oss.c
DUMMY
make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/acore/oss'
seq
make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/acore/seq'
copying file alsa-kernel/core/seq/seq.c
patching file seq.c

[ a *lot* of warnings, errors and 'isn't known' stuff, see full log ]

include/linux/sched.h:471: error: storage size of `thread' isn't known
include/linux/sched.h:483: error: storage size of `pending' isn't known
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage size of `mtime' isn't known
include/linux/stat.h:70: error: storage size of `ctime' isn't known
include/linux/pci.h:471: error: storage size of `dev' isn't known
include/linux/fs.h:268: error: storage size of `ia_atime' isn't known
include/linux/fs.h:269: error: storage size of `ia_mtime' isn't known
include/linux/fs.h:270: error: storage size of `ia_ctime' isn't known
include/linux/quota.h:226: error: storage size of `dq_dqb' isn't known
include/linux/fs.h:347: error: storage size of `bd_sem' isn't known
include/linux/fs.h:420: error: storage size of `i_atime' isn't known
include/linux/fs.h:421: error: storage size of `i_mtime' isn't known
include/linux/fs.h:422: error: storage size of `i_ctime' isn't known
include/linux/fs.h:429: error: storage size of `i_sem' isn't known
include/linux/fs.h:430: error: storage size of `i_alloc_sem' isn't known
include/linux/fs.h:436: error: storage size of `i_data' isn't known
include/linux/fs.h:562: error: storage size of `f_owner' isn't known
include/linux/fs.h:736: error: storage size of `s_umount' isn't known
include/linux/fs.h:737: error: storage size of `s_lock' isn't known
include/linux/fs.h:756: error: storage size of `kobj' isn't known
include/linux/fs.h:763: error: storage size of `s_vfs_rename_sem' isn't known
include/linux/proc_fs.h:212: warning: `create_proc_read_entry' declared `static' but never defined
/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/acore/memalloc.c:69: warning: `DECLARE_MUTEX' declared `static' but never defined
make[3]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../acore/memalloc.o] Error 1
make[2]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../acore] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild] Error 2
make[1]: Leaving directory `/usr/src/lnx-kernel/linux-2.6.5-mm6'
make: *** [compile] Error 2

!!! ERROR: media-sound/alsa-driver-1.0.5a failed.
!!! Function src_compile, Line 92, Exitcode 2
!!! Parallel Make Failed


Anyone an idea? In the meantime I guess I could just keep on using the alsa driver I've got from the kernel, or upgrade the kernel or whatever... This isn't really a problem as I've currently got sound, but on the other hand it does block upgrades from packages like kde etc, because those want to install alsa first, and it's a bug which should be fixed anyway I guess (unless it's me being stupid, in which case I apologise for wasting your time).

Thanks!

--
P.S.:
Great, apparently I can post only +/-65000 chars, so I'm cutting down the log.
Full log (516K) is available at http://rootshell.be/~ludootje/alsa.log
Thank you for your time.

Reproducible: Always
Steps to Reproduce:
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-04 12:52:58 UTC
Makefile:434: .config: No such file or directory

Looks like you didn't compile your kernel yet...  it's not finding include files in asm/ because your kernel isn't configured... goto /usr/src/linux, do a 'make menuconfig', install the kernel, then emerge alsa-driver.
Comment 2 Ludootje 2004-08-05 12:40:07 UTC
I'm sorry, it's possible I did a 'make mrproper' after installation in order to save space :o
uh I guess it's my fault then, very sorry. Haven't fixed it yet, but what you're saying sounds perfectly normal - I vaguely remember doing that.
Thanks!
Comment 3 Ludootje 2004-08-07 07:23:35 UTC
Your solution fixed the error I was getting, but now it says it can't open a file...

Here are the last lines:

--------
*** Warning: "snd_seq_device_new" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1.ko] has no CRC!
*** Warning: "snd_emux_new" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1-synth.ko] has no CRC!
*** Warning: "snd_emux_register" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1-synth.ko] has no CRC!
*** Warning: "snd_seq_device_unregister_driver" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1-synth.ko] has no CRC!
*** Warning: "snd_emux_free" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1-synth.ko] has no CRC!
*** Warning: "snd_seq_device_register_driver" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/emu10k1/snd-emu10k1-synth.ko] has no CRC!
*** Warning: "snd_verbose_printk" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/ac97/snd-ac97-codec.ko] has no CRC!
ACCESS DENIED  open_wr:   /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
/bin/sh: line 1: ./.__modpost.cmd: Permission denied
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/lnx-kernel/linux-2.6.5-mm6'
make: *** [compile] Error 2

!!! ERROR: media-sound/alsa-driver-1.0.5a failed.
!!! Function src_compile, Line 92, Exitcode 2
!!! Parallel Make Failed

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_alsa-driver-1.0.5a-21628.log"

open_wr:   /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
--------------------------------------------------------------------------------

--------


The log file it mentions:
<root@gax /usr/src/lnx-kernel/linux-2.6.5-mm6> # cat /tmp/sandbox-media-sound_-_alsa-driver-1.0.5a-21628.log
open_wr:   /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd


The permissions on the file + the previous dir:
<root@gax /usr/src/lnx-kernel/linux-2.6.5-mm6> # ls -lh /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
-rw-rw-rw-  1 root root 581 Aug  7 13:46 /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
<root@gax /usr/src/lnx-kernel/linux-2.6.5-mm6> # ls -lh /usr/src/lnx-kernel/ | grep linux-2.6.5-mm6
drwxrwxrwx  19 ludo users 4.0K Aug  7 13:45 linux-2.6.5-mm6

(btw if someone has a better way to see the permissions for a directory (i.e. without using 'grep'), feel free to tell - I've always used this way, and it seems kinda weird to me that there's no way to do with 'ls' alone)


The contents of the file:
<root@gax /usr/src/lnx-kernel/linux-2.6.5-mm6> # cat /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
cmd___modpost := scripts/modpost -o /usr/src/lnx-kernel/linux-2.6.5-mm6/Module.symvers vmlinux drivers/net/3c59x.o drivers/net/8139too.o crypto/aes.o crypto/blowfish.o fs/fat/fat.o crypto/md5.o fs/msdos/msdos.o fs/ntfs/ntfs.o sound/pci/ac97/snd-ac97-codec.o sound/pci/emu10k1/snd-emu10k1.o sound/core/snd-hwdep.o sound/core/oss/snd-mixer-oss.o sound/core/snd-page-alloc.o sound/core/oss/snd-pcm-oss.o sound/core/snd-pcm.o sound/core/snd-rawmidi.o sound/core/snd-timer.o sound/synth/snd-util-mem.o sound/core/snd.o sound/soundcore.o drivers/usb/storage/usb-storage.o fs/vfat/vfat.o


Thanks,
Ludootje
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-17 15:32:05 UTC
Is /usr/src/linux a symlink to the tree?  It should copy the tree over, but it looks like it's trying to use the tree in /usr/src/linux...
Comment 5 Ludootje 2004-08-19 08:07:33 UTC
Yes, it's a symlink:

<ludo@gax ~> $ ls -l /usr/src/linux*
lrwxr-xr-x  1 root root 24 Aug  4 19:20 /usr/src/linux -> /usr/src/linux-2.6.5-mm6
lrwxr-xr-x  1 root root 31 Aug  4 18:38 /usr/src/linux-2.6.5 -> /usr/src/lnx-kernel/linux-2.6.5
lrwxr-xr-x  1 root root 35 Aug  4 19:20 /usr/src/linux-2.6.5-mm6 -> /usr/src/lnx-kernel/linux-2.6.5-mm6

All the kernels are in /usr/src/lnx-kernel/linux-<version>
Is this bad? Should I copy the tree to /usr/src/linux/?
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-19 10:20:59 UTC
what you have is fine... the current "solution" for compiling alsa-driver was meant only to be temporary while a new eclass was made, but it's been in use for about 3 months now...  I'll hack something together to correct this...

in the mean time, just have /usr/src/linux -> /usr/src/lnx-kernel/linux-2.6.5-mm6 when you emerge
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-23 14:34:05 UTC
KV_DIR is supposed to point to the actual directory as opposed to the symlink, but it doesn't look like it follows multiple symlinks, so I'm reassigning this to the kernel team since they maintain that eclass... the following code is what the ebuild does (and it works when /usr/src/linux points to the exact directory...

it would be nice if the new module eclass would be finished soon =(

        if kernel-mod_is_2_6_kernel || kernel-mod_is_2_5_kernel; then
                FULL_KERNEL_PATH="${ROOT}/usr/src/${KV_DIR}"

                if ! [ -d "${FULL_KERNEL_PATH}" ]; then
                        eerror "An error seems to have occurred.  We looked in $
                        die "ALSA driver configuration failure."
                fi

                einfo "A 2.5 or 2.6 kernel was detected.  We are copying the ke$
                einfo "${FULL_KERNEL_PATH} to ${T}/linux"
                einfo "because the alsa-driver build process overwrites files i$

                # Copy everything over to our tmp dir...
                cp -a ${FULL_KERNEL_PATH} ${T}/linux
        fi
Comment 8 Ludootje 2004-08-24 04:40:50 UTC
Still not working. The symlinks are set as suggested, though:

gax ~ # ls -l /usr/src/linux*
lrwxr-xr-x  1 root root 36 Aug 19 20:10 /usr/src/linux -> /usr/src/lnx-kernel/linux-2.6.5-mm6/
lrwxr-xr-x  1 root root 31 Aug  4 18:38 /usr/src/linux-2.6.5 -> /usr/src/lnx-kernel/linux-2.6.5
lrwxr-xr-x  1 root root 35 Aug  4 19:20 /usr/src/linux-2.6.5-mm6 -> /usr/src/lnx-kernel/linux-2.6.5-mm6



The error:

*** Warning: "snd_verbose_printk" [/var/tmp/portage/alsa-driver-1.0.5a/work/alsa-driver-1.0.5a/kbuild/../pci/ac97/snd-ac97-codec.ko] has no CRC!
ACCESS DENIED  open_wr:   /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
/bin/sh: line 1: ./.__modpost.cmd: Permission denied
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/lnx-kernel/linux-2.6.5-mm6'
make: *** [compile] Error 2

!!! ERROR: media-sound/alsa-driver-1.0.5a failed.
!!! Function src_compile, Line 92, Exitcode 2
!!! Parallel Make Failed

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_alsa-driver-1.0.5a-11029.log"

open_wr:   /usr/src/lnx-kernel/linux-2.6.5-mm6/.__modpost.cmd
--------------------------------------------------------------------------------


Full log is at http://rootshell.be/~ludootje/alsa.log (41K).



gax ~ # emerge --info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.5-mm6)
=================================================================
System uname: 2.6.5-mm6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl alsa apm arts avi bonobo crypt cups curl dvd encode esd evo faad fam ffmpeg flash foomaticdb freetype gif gnome gpm gtk gtk2 gtkhtml guile imagemagick imlib j-noaim j-noyahoo java javascript jpeg kde lcd libg++ lua mad mbox mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg msn ncurses nls nojoystick nomac noreiserfs offensive oggvorbis operanom2 oss pam pdflib perl png ppds python qt quicktime readline samba screen slang slp spell sqlite sse ssl svga tcltk tiff truetype unicode usb vim-with-x wsconvert wxwindows x86 xml2 xv zlib"

Thanks a lot for all your help.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2004-10-22 17:06:35 UTC
Please use linux 2.6.6 or newer, as it features a non-broken build system. That will solve the sandbox errors, however I guess this bug should stay open if symlinks arent being handled correctly.
Comment 10 John Mylchreest (RETIRED) gentoo-dev 2004-12-01 23:46:11 UTC
the new eclass is here :)