Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303949 - dev-lang/toluapp-1.0.93 compile error--"scons failed"
Summary: dev-lang/toluapp-1.0.93 compile error--"scons failed"
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 02:04 UTC by Arthur.M
Modified: 2010-03-19 09:38 UTC (History)
2 users (show)

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


Attachments
toluapp-1.0.93.ebuild (toluapp-1.0.93.ebuild,1.23 KB, text/plain)
2010-03-15 18:41 UTC, Daniel Pielmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur.M 2010-02-08 02:04:07 UTC
Trying to install dev-lang/luatopp-1.0.93, which is a dep for
app-admin/conky-1.7.2-r2, but it fails to compile. The current stable,
luatopp-1.0.92 compiles error, too.

I've changed CCFLAGS to the least, not work.

Reproducible: Always





Build log:
 * CPV:  dev-lang/toluapp-1.0.93
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking tolua++-1.0.93.tar.bz2 to /dev/shm/portage/dev-lang/toluapp-1.0.93/work
>>> Source unpacked in /dev/shm/portage/dev-lang/toluapp-1.0.93/work
>>> Preparing source in /dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93 ...
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93 ...
>>> Source configured.
>>> Compiling source in /dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93 ...
scons: Reading SConscript files ...

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
i686-pc-linux-gnu-gcc -o src/bin/tolua.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/bin/tolua.c
i686-pc-linux-gnu-gcc -o src/bin/toluabind_default.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/bin/toluabind_default.c
i686-pc-linux-gnu-gcc -o src/lib/tolua_event.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/lib/tolua_event.c
i686-pc-linux-gnu-gcc -o src/lib/tolua_is.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/lib/tolua_is.c
i686-pc-linux-gnu-gcc -o src/lib/tolua_map.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/lib/tolua_map.c
src/lib/tolua_map.c: In function 'tolua_usertype':
src/lib/tolua_map.c:398: warning: passing argument 2 of 'tolua_newmetatable' discards qualifiers from pointer target type
src/lib/tolua_map.c: In function 'tolua_dobuffer':
src/lib/tolua_map.c:699: warning: value computed is not used
i686-pc-linux-gnu-gcc -o src/lib/tolua_push.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/lib/tolua_push.c
i686-pc-linux-gnu-gcc -o src/lib/tolua_to.o -c -O2 -march=i686 -pipe -ansi -Wall -Iinclude src/lib/tolua_to.c
ar rc lib/libtolua++_static.a src/lib/tolua_event.o src/lib/tolua_is.o src/lib/tolua_map.o src/lib/tolua_push.o src/lib/tolua_to.o
BusyBox v1.15.3 (2010-02-01 21:01:53 CST) multi-call binary

Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES

Extract or list FILES from an ar archive

Options:
        -o      Preserve original dates
        -p      Extract to stdout
        -t      List
        -x      Extract
        -v      Verbose

scons: *** [lib/libtolua++_static.a] Error 1
scons: building terminated because of errors.
 * ERROR: dev-lang/toluapp-1.0.93 failed:
 *   scons failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 864:  Called die
 * The specific snippet of code:
 *       scons CC="$(tc-getCC)" CCFLAGS="${CFLAGS} -ansi -Wall" CXX="$(tc-getCXX)" LINK="$(tc-getCC)" LINKFLAGS="${LDFLAGS}" shared=1 || die "scons failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/toluapp-1.0.93',
 * the complete build log and the output of 'emerge -pqv =dev-lang/toluapp-1.0.93'.
 * The complete build log is located at '/dev/shm/portage/dev-lang/toluapp-1.0.93/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-lang/toluapp-1.0.93/temp/environment'.
 * S: '/dev/shm/portage/dev-lang/toluapp-1.0.93/work/tolua++-1.0.93'


Emerge info

Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.32-tuxonice-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-tuxonice-r1-i686-Intel-R-_Pentium-R-_Dual_CPU_T2370_@_1.73GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 08 Feb 2010 01:30:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.2, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.4_p6, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoaddcvs autoconfig ccache cvs distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.twaren.net/Linux/Gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN,en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/x.overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv imlib jpeg ldap libnotify mad midi mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses newspr nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd thunar tiff truetype unicode usb vim-syntax vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN,en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arthur.M 2010-02-08 02:09:07 UTC

I've found a webpage:
http://bbs.archlinux.org/viewtopic.php?id=84392

It seems there is something wrong with CCFLAGS ~ -fPIC  ??
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2010-02-08 07:29:07 UTC
Sorry, this package is in need of a maintainer so your chances to get it fixed are unfortunately fairly low.
Comment 3 Arthur.M 2010-02-08 09:06:13 UTC
(In reply to comment #2)
> Sorry, this package is in need of a maintainer so your chances to get it fixed
> are unfortunately fairly low.
> 

Will it soon be maintained? Or is there any way to not install it but allow me to use the conky with lua-cairo?
Comment 4 Daniel Pielmeier gentoo-dev 2010-03-06 21:25:56 UTC
It seems ar from busybox is called here instead of the one from binutils. Did you by any chance build busybox with the make-symlinks use flag?

Can you provide the output of one of the following commands:
"equery b ar" part of app-portage/gentoolkit
"qfile ar" part of app-portage/portage-utils
Comment 5 Arthur.M 2010-03-07 15:26:42 UTC
(In reply to comment #4)
> It seems ar from busybox is called here instead of the one from binutils. Did
> you by any chance build busybox with the make-symlinks use flag?
> 
> Can you provide the output of one of the following commands:
> "equery b ar" part of app-portage/gentoolkit
> "qfile ar" part of app-portage/portage-utils
> 

I emerge the busybox by "static" and the kernel "symlink". Does it matter?

the output of  "equery b ar"

 * Searching for ar ... 
media-gfx/gimp-2.6.8 (/usr/share/locale/ar)
app-text/stardict-3.0.1-r2 (/usr/share/locale/ar)
sys-devel/binutils-2.18-r3 (/usr/i686-pc-linux-gnu/binutils-bin/2.18/ar)
net-ftp/filezilla-3.3.0.1 (/usr/share/locale/ar)
app-text/iso-codes-3.11.1 (/usr/share/locale/ar)
media-gfx/picasa-3.0.0.57.4402.0_beta (/opt/google/picasa/3.0/bin/xdg-user-dirs-0.8/share/locale/ar)


Comment 6 Daniel Pielmeier gentoo-dev 2010-03-07 16:03:22 UTC
(In reply to comment #5)
> 
> I emerge the busybox by "static" and the kernel "symlink". Does it matter?

But you don't have make-symlinks for busybox enabled?

> the output of  "equery b ar"
> 
>  * Searching for ar ... 
> media-gfx/gimp-2.6.8 (/usr/share/locale/ar)
> app-text/stardict-3.0.1-r2 (/usr/share/locale/ar)
> sys-devel/binutils-2.18-r3 (/usr/i686-pc-linux-gnu/binutils-bin/2.18/ar)
> net-ftp/filezilla-3.3.0.1 (/usr/share/locale/ar)
> app-text/iso-codes-3.11.1 (/usr/share/locale/ar)
> media-gfx/picasa-3.0.0.57.4402.0_beta
> (/opt/google/picasa/3.0/bin/xdg-user-dirs-0.8/share/locale/ar)
> 

Okay what gives you ls -l /usr/bin/ar?

Are you on stable or unstable?
In your emerge --info I see
sys-devel/binutils:  2.19.1-r1
but your equery output gives
> sys-devel/binutils-2.18-r3 (/usr/i686-pc-linux-gnu/binutils-bin/2.18/ar)
Comment 7 Arthur.M 2010-03-08 06:05:00 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > 
> > I emerge the busybox by "static" and the kernel "symlink". Does it matter?
> 
> But you don't have make-symlinks for busybox enabled?
> 
> > the output of  "equery b ar"
> > 
> >  * Searching for ar ... 
> > media-gfx/gimp-2.6.8 (/usr/share/locale/ar)
> > app-text/stardict-3.0.1-r2 (/usr/share/locale/ar)
> > sys-devel/binutils-2.18-r3 (/usr/i686-pc-linux-gnu/binutils-bin/2.18/ar)
> > net-ftp/filezilla-3.3.0.1 (/usr/share/locale/ar)
> > app-text/iso-codes-3.11.1 (/usr/share/locale/ar)
> > media-gfx/picasa-3.0.0.57.4402.0_beta
> > (/opt/google/picasa/3.0/bin/xdg-user-dirs-0.8/share/locale/ar)
> > 
> 
> Okay what gives you ls -l /usr/bin/ar?
> 
> Are you on stable or unstable?
> In your emerge --info I see
> sys-devel/binutils:  2.19.1-r1
> but your equery output gives
> > sys-devel/binutils-2.18-r3 (/usr/i686-pc-linux-gnu/binutils-bin/2.18/ar)
> 

I've recently change my system package to x86, so now:
emerge --info |grep binutils
sys-devel/binutils:  2.18-r3

the output you required:
ls -l /usr/bin/ar
lrwxrwxrwx 1 root root 20 2010-02-09 00:08 /usr/bin/ar -> i686-pc-linux-gnu-ar*

ls -l /usr/bin/i686-pc-linux-gnu-ar

 ls -l /usr/i686-pc-linux-gnu/bin/ar*
lrwxrwxrwx 1 root root 43 2010-02-09 00:08 /usr/i686-pc-linux-gnu/bin/ar -> /usr/i686-pc-linux-gnu/binutils-bin/2.18/ar*
Comment 8 Daniel Pielmeier gentoo-dev 2010-03-14 21:54:31 UTC
Okay maybe there is something wrong with your environment. Can you please give me the output of:

for x in $(find  /{usr/,}{s,}bin -type l); do f=$(readlink -f $x) ; [[ $f == /bin/busybox ]] && echo "$x -> $f" ; [[ $f == /bin/bb ]] && echo $f ; done
Comment 9 solar (RETIRED) gentoo-dev 2010-03-15 00:25:57 UTC
the ebuild/emake should also perhaps do
+ AR="$(tc-getAR)" \
so that the full CHOST-ar gets called.
Comment 10 Daniel Pielmeier gentoo-dev 2010-03-15 18:41:47 UTC
Created attachment 223765 [details]
toluapp-1.0.93.ebuild

Please try if the following attached ebuild builds successfully.

I have added the two following lines, although when I build with this ebuild the compile output does not print the full CHOST either.

+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
Comment 11 Arthur.M 2010-03-15 23:54:39 UTC
(In reply to comment #8)
> Okay maybe there is something wrong with your environment. Can you please give
> me the output of:
> 
> for x in $(find  /{usr/,}{s,}bin -type l); do f=$(readlink -f $x) ; [[ $f ==
> /bin/busybox ]] && echo "$x -> $f" ; [[ $f == /bin/bb ]] && echo $f ; done
> 
/sbin/man -> /bin/busybox
/sbin/lpd -> /bin/busybox
/sbin/dnsd -> /bin/busybox
/sbin/ftpd -> /bin/busybox
/sbin/ifup -> /bin/busybox
/sbin/mdev -> /bin/busybox
/sbin/rdev -> /bin/busybox
/sbin/zcip -> /bin/busybox
/sbin/ifenslave -> /bin/busybox
/sbin/raidautorun -> /bin/busybox
/sbin/acpid -> /bin/busybox
/sbin/brctl -> /bin/busybox
/sbin/crond -> /bin/busybox
/sbin/fbset -> /bin/busybox
/sbin/getty -> /bin/busybox
/sbin/setconsole -> /bin/busybox
/sbin/httpd -> /bin/busybox
/sbin/klogd -> /bin/busybox
/sbin/lsmod -> /bin/busybox
/sbin/rdate -> /bin/busybox
/sbin/dhcprelay -> /bin/busybox
/sbin/freeramdisk -> /bin/busybox
/sbin/setfont -> /bin/busybox
/sbin/logread -> /bin/busybox
/sbin/makedevs -> /bin/busybox
/sbin/telnetd -> /bin/busybox
/sbin/mkdosfs -> /bin/busybox
/sbin/setlogcons -> /bin/busybox
/sbin/chroot -> /bin/busybox
/sbin/mkfs.vfat -> /bin/busybox
/sbin/devfsd -> /bin/busybox
/sbin/devmem -> /bin/busybox
/sbin/chpasswd -> /bin/busybox
/sbin/syslogd -> /bin/busybox
/sbin/ifdown -> /bin/busybox
/sbin/watchdog -> /bin/busybox
/sbin/flash_lock -> /bin/busybox
/sbin/adjtimex -> /bin/busybox
/sbin/vconfig -> /bin/busybox
/sbin/sendmail -> /bin/busybox
/sbin/loadfont -> /bin/busybox
/sbin/loadkmap -> /bin/busybox
/sbin/svlogd -> /bin/busybox
/sbin/readprofile -> /bin/busybox
/sbin/udhcpc -> /bin/busybox
/sbin/udhcpd -> /bin/busybox
/sbin/tunctl -> /bin/busybox
/sbin/flash_unlock -> /bin/busybox
/sbin/popmaildir -> /bin/busybox
/sbin/flash_eraseall -> /bin/busybox
/bin/[ -> /bin/busybox
/bin/[[ -> /bin/busybox
/bin/bb -> /bin/busybox
/bin/ar -> /bin/busybox
/bin/hd -> /bin/busybox
/bin/id -> /bin/busybox
/bin/ip -> /bin/busybox
/bin/nc -> /bin/busybox
/bin/mt -> /bin/busybox
/bin/rx -> /bin/busybox
/bin/sv -> /bin/busybox
/bin/vi -> /bin/busybox
/bin/ash -> /bin/busybox
/bin/cal -> /bin/busybox
/bin/cmp -> /bin/busybox
/bin/lpq -> /bin/busybox
/bin/lpr -> /bin/busybox
/bin/tac -> /bin/busybox
/bin/tee -> /bin/busybox
/bin/sum -> /bin/busybox
/bin/top -> /bin/busybox
/bin/who -> /bin/busybox
/bin/bbsh -> /bin/busybox
/bin/beep -> /bin/busybox
/bin/catv -> /bin/busybox
/bin/chat -> /bin/busybox
/bin/chrt -> /bin/busybox
/bin/chvt -> /bin/busybox
/bin/comm -> /bin/busybox
/bin/diff -> /bin/busybox
/bin/find -> /bin/busybox
/bin/free -> /bin/busybox
/bin/ipcs -> /bin/busybox
/bin/last -> /bin/busybox
/bin/less -> /bin/busybox
/bin/mesg -> /bin/busybox
/bin/lzop -> /bin/busybox
/bin/nice -> /bin/busybox
/bin/deallocvt -> /bin/busybox
/bin/test -> /bin/busybox
/bin/tftp -> /bin/busybox
/bin/stat -> /bin/busybox
/bin/time -> /bin/busybox
/bin/uniq -> /bin/busybox
/bin/wget -> /bin/busybox
/bin/deluser -> /bin/busybox
/bin/dos2unix -> /bin/busybox
/bin/dumpleases -> /bin/busybox
/bin/unexpand -> /bin/busybox
/bin/cryptpw -> /bin/busybox
/bin/killall -> /bin/busybox
/bin/unix2dos -> /bin/busybox
/bin/envuidgid -> /bin/busybox
/bin/chpst -> /bin/busybox
/bin/clear -> /bin/busybox
/bin/cksum -> /bin/busybox
/bin/eject -> /bin/busybox
/bin/fsync -> /bin/busybox
/bin/ipcrm -> /bin/busybox
/bin/nohup -> /bin/busybox
/bin/patch -> /bin/busybox
/bin/pgrep -> /bin/busybox
/bin/ping6 -> /bin/busybox
/bin/pkill -> /bin/busybox
/bin/pscan -> /bin/busybox
/bin/reset -> /bin/busybox
/bin/runsv -> /bin/busybox
/bin/split -> /bin/busybox
/bin/tftpd -> /bin/busybox
/bin/unzip -> /bin/busybox
/bin/vlock -> /bin/busybox
/bin/watch -> /bin/busybox
/bin/which -> /bin/busybox
/bin/xargs -> /bin/busybox
/bin/dpkg-deb -> /bin/busybox
/bin/ether-wake -> /bin/busybox
/bin/pipe_progress -> /bin/busybox
/bin/kbd_mode -> /bin/busybox
/bin/setarch -> /bin/busybox
/bin/sha1sum -> /bin/busybox
/bin/linux32 -> /bin/busybox
/bin/linux64 -> /bin/busybox
/bin/rtcwake -> /bin/busybox
/bin/showkey -> /bin/busybox
/bin/traceroute -> /bin/busybox
/bin/iptunnel -> /bin/busybox
/bin/cttyhack -> /bin/busybox
/bin/fdflush -> /bin/busybox
/bin/killall5 -> /bin/busybox
/bin/makemime -> /bin/busybox
/bin/runsvdir -> /bin/busybox
/bin/softlimit -> /bin/busybox
/bin/arping -> /bin/busybox
/bin/timeout -> /bin/busybox
/bin/microcom -> /bin/busybox
/bin/strings -> /bin/busybox
/bin/chattr -> /bin/busybox
/bin/envdir -> /bin/busybox
/bin/lzmacat -> /bin/busybox
/bin/expand -> /bin/busybox
/bin/lzopcat -> /bin/busybox
/bin/getopt -> /bin/busybox
/bin/setuidgid -> /bin/busybox
/bin/hostid -> /bin/busybox
/bin/busybox.static -> /bin/busybox
/bin/ipaddr -> /bin/busybox
/bin/ionice -> /bin/busybox
/bin/iplink -> /bin/busybox
/bin/iprule -> /bin/busybox
/bin/addgroup -> /bin/busybox
/bin/length -> /bin/busybox
/bin/md5sum -> /bin/busybox
/bin/fdformat -> /bin/busybox
/bin/logger -> /bin/busybox
/bin/lsattr -> /bin/busybox
/bin/sha256sum -> /bin/busybox
/bin/delgroup -> /bin/busybox
/bin/adduser -> /bin/busybox
/bin/nmeter -> /bin/busybox
/bin/ttysize -> /bin/busybox
/bin/openvt -> /bin/busybox
/bin/nslookup -> /bin/busybox
/bin/sha512sum -> /bin/busybox
/bin/scriptreplay -> /bin/busybox
/bin/printf -> /bin/busybox
/bin/renice -> /bin/busybox
/bin/resize -> /bin/busybox
/bin/hexdump -> /bin/busybox
/bin/script -> /bin/busybox
/bin/setsid -> /bin/busybox
/bin/tcpsvd -> /bin/busybox
/bin/telnet -> /bin/busybox
/bin/unlzma -> /bin/busybox
/bin/unlzop -> /bin/busybox
/bin/uptime -> /bin/busybox
/bin/usleep -> /bin/busybox
/bin/whoami -> /bin/busybox
/bin/printenv -> /bin/busybox
/bin/ifplugd -> /bin/busybox
/bin/volname -> /bin/busybox
/bin/reformime -> /bin/busybox
/bin/bbconfig -> /bin/busybox
/bin/mkpasswd -> /bin/busybox
/bin/install -> /bin/busybox
/bin/realpath -> /bin/busybox
/bin/iproute -> /bin/busybox
/bin/readahead -> /bin/busybox
/bin/dumpkmap -> /bin/busybox
/bin/setkeycodes -> /bin/busybox
Comment 12 Daniel Pielmeier gentoo-dev 2010-03-16 00:07:04 UTC
Okay there is definitely something wrong. This is what I get.

/sbin/mdev
/bin/busybox.static
/bin/bb

You must have the make-symlinks USE flag enabled for busybox or at least it was enabled at a time when busybox got installed.

Please post the output of "emerge -pv busybox".
Comment 13 Arthur.M 2010-03-16 00:10:08 UTC
(In reply to comment #12)
> Okay there is definitely something wrong. This is what I get.
> 
> /sbin/mdev
> /bin/busybox.static
> /bin/bb
> 
> You must have the make-symlinks USE flag enabled for busybox or at least it was
> enabled at a time when busybox got installed.
> 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/busybox-1.15.3  USE="static -debug -make-symlinks -pam -savedconfig (-selinux)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
> Please post the output of "emerge -pv busybox".
> 

Comment 14 Daniel Pielmeier gentoo-dev 2010-03-16 00:14:18 UTC
(In reply to comment #13)
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R   ] sys-apps/busybox-1.15.3  USE="static -debug -make-symlinks -pam
> -savedconfig (-selinux)" 0 kB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> > Please post the output of "emerge -pv busybox".

Okay and you are definitely sure you have never enabled the make-symlinks USE flag?
Comment 15 Arthur.M 2010-03-16 00:18:18 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > 
> > These are the packages that would be merged, in order:
> > 
> > Calculating dependencies... done!
> > [ebuild   R   ] sys-apps/busybox-1.15.3  USE="static -debug -make-symlinks -pam
> > -savedconfig (-selinux)" 0 kB
> > 
> > Total: 1 package (1 reinstall), Size of downloads: 0 kB
> > > Please post the output of "emerge -pv busybox".
> 
> Okay and you are definitely sure you have never enabled the make-symlinks USE
> flag?
> 

Sorry I cannot remember. But I'm sure that if I did, that's a long time ago and the busybox has been re-emerged after that. The USE "symlinks" is used only buy the kernel sources on my laptop.
Comment 16 Daniel Pielmeier gentoo-dev 2010-03-16 17:02:02 UTC
Almost all of these files linking to busybox belong to other packages. They got overwritten when emerging busybox with the make-symlinks use flag. You need to re-emerge them. The following command should take care of it.

for x in $(find  /{usr/,}{s,}bin -type l); do f=$(readlink -f $x) ; [[ $f == /bin/busybox ]] && echo $x ; [[ $f == /bin/bb ]] && echo $f ; done | xargs emerge

To check which packages will be reinstalled use emerge -pv first. Hopefully this helps.
Comment 17 Arthur.M 2010-03-17 04:48:02 UTC
(In reply to comment #16)
> Almost all of these files linking to busybox belong to other packages. They got
> overwritten when emerging busybox with the make-symlinks use flag. You need to
> re-emerge them. The following command should take care of it.
> 
> for x in $(find  /{usr/,}{s,}bin -type l); do f=$(readlink -f $x) ; [[ $f ==
> /bin/busybox ]] && echo $x ; [[ $f == /bin/bb ]] && echo $f ; done | xargs
> emerge
> 
> To check which packages will be reinstalled use emerge -pv first. Hopefully
> this helps.
> 

The command you gave only re-emerge busybox itself. And the problem still exists.
Comment 18 Daniel Pielmeier gentoo-dev 2010-03-17 18:58:19 UTC
Okay, first I want to state that this is neither a gentoo nor a toluapp or busysbox bug. You have messed up your system by enabling the make-symlinks use flag for busybox.

I don't know much about busybox and the make symlinks flag and thought the symlinks will overwrite existing files which is not the case. But most of the symlinks/files in /bin and /sbin you have posted in comment #11 should have corresponding files in /usr/bin and /usr/sbin. So there is /bin/ar and /usr/bin/ar. In the $PATH variable /bin is before /usr/bin. This is why ar which symlinks to busybox is used by toluapp instead of /usr/bin/ar.

It should be save to delete all these symlinks created by the make-symlinks use flag but not /bin/bb /bin/busybox.static and /sbin/mdev. The files/symlinks which you could safely delete are the ones in /usr/share/busybox/busybox-links.tar as this is the archive which is extracted when the make-symlnks use flag is enabled. So another safety measure is to check if the file you delete is in the archive. To be sure everything is okay you can re-emerge busybox afterwards and the symlinks should not re-appear. This comes completely without warranty. Good luck.
Comment 19 Arthur.M 2010-03-19 09:38:53 UTC
(In reply to comment #18)
> Okay, first I want to state that this is neither a gentoo nor a toluapp or
> busysbox bug. You have messed up your system by enabling the make-symlinks use
> flag for busybox.
> 
> I don't know much about busybox and the make symlinks flag and thought the
> symlinks will overwrite existing files which is not the case. But most of the
> symlinks/files in /bin and /sbin you have posted in comment #11 should have
> corresponding files in /usr/bin and /usr/sbin. So there is /bin/ar and
> /usr/bin/ar. In the $PATH variable /bin is before /usr/bin. This is why ar
> which symlinks to busybox is used by toluapp instead of /usr/bin/ar.
> 
> It should be save to delete all these symlinks created by the make-symlinks use
> flag but not /bin/bb /bin/busybox.static and /sbin/mdev. The files/symlinks
> which you could safely delete are the ones in
> /usr/share/busybox/busybox-links.tar as this is the archive which is extracted
> when the make-symlnks use flag is enabled. So another safety measure is to
> check if the file you delete is in the archive. To be sure everything is okay
> you can re-emerge busybox afterwards and the symlinks should not re-appear.
> This comes completely without warranty. Good luck.
> 

I've deleted /bin/ar and everything goes fine.
Thank you.