Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372819 - net-misc/dahdi-2.4.1 fails to compile against linux 2.6.39-r1
Summary: net-misc/dahdi-2.4.1 fails to compile against linux 2.6.39-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 12:57 UTC by Philipp Kügle
Modified: 2011-07-06 11:19 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,5.41 KB, text/plain)
2011-06-24 12:58 UTC, Philipp Kügle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kügle 2011-06-24 12:57:36 UTC
s004 ~ # emerge -pqv =net-misc/dahdi-2.4.1
[ebuild   R   ] net-misc/dahdi-2.4.1  USE="-flash"

[...]
CC [M]  /var/tmp/portage/net-misc/dahdi-2.4.1/work/dahdi-linux-2.4.1/drivers/dahdi/dahdi_transcode.o
/var/tmp/portage/net-misc/dahdi-2.4.1/work/dahdi-linux-2.4.1/drivers/dahdi/dahdi_transcode.c:49: error: 'SPIN_LOCK_UNLOCKED' undeclared here (not in a function)
make[2]: *** [/var/tmp/portage/net-misc/dahdi-2.4.1/work/dahdi-linux-2.4.1/drivers/dahdi/dahdi_transcode.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-misc/dahdi-2.4.1/work/dahdi-linux-2.4.1/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.39-gentoo-r1'
make: *** [modules] Error 2
emake failed
 * ERROR: net-misc/dahdi-2.4.1 failed (compile phase):
 *   Compilation failed

Reproducible: Always

Steps to Reproduce:
1. emerge dahdi
2.
3.



s004 ~ # emerge --info
Portage 2.1.9.42 (default/linux/x86/10.0/server, gcc-4.3.4, libc-0-r0, 2.6.38-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 24 Jun 2011 01:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.38
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/spool/fax/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.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/splix_overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi alsa apache2 berkdb bri bzip2 capi cli cracklib crypt ctype cups cxx dahdi dri exif extensions ffmpeg fortran ftp gd gdbm gif gnutls gpm gtk hash headless iconv imagemagick imap java javascript jbig jpeg jpeg2k ldap lm_sensors logrotate maildir mmx modules mudflap mysql ncurses nls nptl nptlonly nsplugin openmp overlays pam pcre perl php png pppd pri python raw readline samba sasl session slp snmp sockets spamassassin spell sse sse2 ssh ssl svg svga swat swt sysfs tcl tcpd threads tiff tk truetype unicode x86 xml xml2 xorg zaptel 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Philipp Kügle 2011-06-24 12:58:44 UTC
Created attachment 277999 [details]
build.log
Comment 2 Agostino Sarubbo gentoo-dev 2011-06-24 15:14:06 UTC
in your emerge --info there is .38
Comment 3 Philipp Kügle 2011-06-24 15:38:46 UTC
(In reply to comment #2)
> in your emerge --info there is .38

This is the running kernel.

Kernel Symlink:
s004 ~ # ls -la /usr/src/linux
lrwxrwxrwx 1 root root 22 Jun 24 17:37 /usr/src/linux -> linux-2.6.39-gentoo-r1

Also in build.log:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.39-gentoo-r1/build
 * Found sources for kernel version:
 *     2.6.39-gentoo-r1
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2011-07-06 11:19:03 UTC
+*dahdi-2.4.1-r1 (06 Jul 2011)
+
+  06 Jul 2011; Tony Vroon <chainsaw@gentoo.org> +dahdi-2.4.1-r1.ebuild:
+  Patch from Stefan Knoblich fixes compilation against 2.6.39 kernels; closes
+  bug #372819 by Philipp Kugle. As requested by Diego "Flameeyes" Petteno, udev
+  rules are now installed in /lib as they are not intended for user
+  modification/customisation. CONFIG_MODULES is now also checked as the eclass
+  does not do it for us.