Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83331 - sox-12.17.7 does not compile
Summary: sox-12.17.7 does not compile
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 117137 117712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-25 13:20 UTC by Ulf-Steinar S. Zielke-Immendorff
Modified: 2006-01-04 11:49 UTC (History)
4 users (show)

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


Attachments
gcc config.log: /var/tmp/portage/sox-12.17.7/work/sox-12.17.7/config.log (config.log,96.31 KB, application/octet-stream)
2005-02-25 13:24 UTC, Ulf-Steinar S. Zielke-Immendorff
Details
emerge output (nohup.out.sox-12.17.7,6.53 KB, application/octet-stream)
2005-02-25 13:27 UTC, Ulf-Steinar S. Zielke-Immendorff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf-Steinar S. Zielke-Immendorff 2005-02-25 13:20:32 UTC
I'm trying to emerge sox as follows:
>>>
felicia ~ # emerge -pv sox

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-sound/sox-12.17.7 [12.17.6-r1] +alsa -debug +encode +mad +oggvorbis 0 kB

Total size of downloads: 0 kB
<<<

and then, without '-pv', it returns the following error:

>>>
felicia ~ # emerge sox
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/sox-12.17.7 to /
(.. left out ..)
config.status: creating src/stconfig.h
checking for stdint-types....... "(putting them into src/ststdint.h)"
checking for uintptr_t... no
checking for uintptr_t... no
checking for uintptr_t... no
checking for uintptr_t... no
checking for uint32_t... no
checking for uint32_t... no
checking for uint32_t... no
checking for uint32_t... no
checking for u_int32_t... no
checking for u_int32_t... no
checking for u_int32_t... no
checking for u_int32_t... no
checking size of char... configure: error: cannot determine a size for char

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/sox-12.17.7/work/sox-12.17.7/config.log

!!! ERROR: media-sound/sox-12.17.7 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
<<<


Reproducible: Always
Steps to Reproduce:
1. emerge -pv sox
2. emerge sox
3.

Actual Results:  
Please see attachment.

Expected Results:  
Compile without any errors.

felicia ~ # emerge info
Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r7 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 08:35:54)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.9.4, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -fomit-frame-pointer -pipe -O3"
CHOST="x86_64-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/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -fomit-frame-pointer -pipe -O3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.du.se/pub/os/gentoo http://mirror.datapipe.net/gentoo
http://adelie.polymtl.ca/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 X acl acpi alsa apache2 apm arts audiofile avi berkdb bindist
bitmap-fonts bonobo bzlib caps cdr crypt ctype cups curl dba dbx dga dio
div4linux doc dvd dvdr encode esd evo exif f77 fam fastcgi flac font-server
foomaticdb fortran ftp gd gdbm gif gmp gnutls gpm hardened hardenedphp iconv
imap imlib ipv6 jp2 jpeg kde ldap libwww lzw lzw-tiff mad mbox memlimit mikmod
motif mp3 mpeg multilib ncurses nls oav oggvorbis opengl oss pam pcntl pcre
pdflib perl php png posix postgres python qt readline samba sasl sdl session
shared slang slp sndfile sockets spl ssl sysvipc tcpd tiff tokenizer truetype
truetype-fonts type1-fonts unicode usb userlocales xml2 xmms xpm xrandr xv xvid
zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Ulf-Steinar S. Zielke-Immendorff 2005-02-25 13:24:10 UTC
Created attachment 52150 [details]
gcc config.log: /var/tmp/portage/sox-12.17.7/work/sox-12.17.7/config.log
Comment 2 Ulf-Steinar S. Zielke-Immendorff 2005-02-25 13:27:25 UTC
Created attachment 52151 [details]
emerge output
Comment 3 RB 2005-05-13 19:18:54 UTC
Same here; can't install k3b
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-28 08:52:17 UTC
that was a seperate issue with the amd64 toolchain, iirc it was related to
USE="multilib" and gcc or glibc. is this still an issue?
Comment 5 duebel 2005-05-31 16:26:54 UTC
I had the same problem on a x86 machine.

After looking to config.log I realized that the portage user was not allowed to
read and access the kernel's modules directory /lib/modules/version. After
changing the rights of this directory from 750 to 755 the building of sox
succeeded. :-)

These wrong rights were probably intoduced when I changed the umask in
/etc/profile to 'umask 027'. To prevent this sort of ebuild failures 'make
modules_install' in the kernel builing process should not honor the umask but
set the modules directory's right to 755. 
Comment 6 Sebastian Schlüter 2005-06-01 05:25:17 UTC
(In reply to comment #5)
> I had the same problem on a x86 machine.
> 
> After looking to config.log I realized that the portage user was not allowed to
> read and access the kernel's modules directory /lib/modules/version. After
> changing the rights of this directory from 750 to 755 the building of sox
> succeeded. :-)

Thanks, this solved the problem for me, too. So I guess the ebuild is fine.
Comment 7 Stian Skjelstad 2005-06-29 18:56:46 UTC
close the bug if this isn't a problem anymore
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-15 04:08:06 UTC
Reopen if it's still an issue. 
 
Comment 9 Wolfram Schlich (RETIRED) gentoo-dev 2005-12-31 02:27:36 UTC
*** Bug 117137 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-01-04 02:50:33 UTC
*** Bug 117712 has been marked as a duplicate of this bug. ***
Comment 11 MickKi 2006-01-04 11:49:06 UTC
(In reply to comment #5)
 
> These wrong rights were probably intoduced when I changed the umask in
> /etc/profile to 'umask 027'. To prevent this sort of ebuild failures 'make
> modules_install' in the kernel builing process should not honor the umask but
> set the modules directory's right to 755. 

Well, my umask in /etc/profile is the default 022, but the aforementioned directory is set as 700:
===================
 # ls -la /lib/modules/2.6.14-gentoo-r5
total 45
drwx------  3 root root  488 Jan  4 18:50 .
drwxr-xr-x  4 root root  112 Jan  3 21:50 ..
lrwxrwxrwx  1 root root   31 Jan  3 21:50 build -> /usr/src/linux-2.6.14-gentoo-r5
drwx------  6 root root  144 Jan  3 21:50 kernel
-rw-r--r--  1 root root  141 Jan  4 18:50 modules.alias
-rw-r--r--  1 root root   69 Jan  4 18:50 modules.ccwmap
-rw-r--r--  1 root root 1304 Jan  4 18:50 modules.dep
===================

I can't remember deliberately changing it to 0700.  Another box of mine (newer build), which compiled sox without trouble had indeed 0755 access rights.  A few questions please, to help resolve my confusion:

What determines the particular directory's default access rights - what should these be?
How/why were these changed from the default, if indeed they were changed?
How come that all other zillion emerges always complete without problems and sox is the one to now throw a wobbly?
Since it has emerged successfully, do I return the access rights of that directory to the previous setting, or leave it as 0755?
-- 
Regards,
Mick