emerging net-misc/dahdi-2.6.2 fails # emerge --info Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.10.4-gentoo x86_64) ================================================================= System uname: Linux-3.10.4-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.2 KiB Mem: 8173596 total, 729184 free KiB Swap: 2184832 total, 2173272 free Timestamp of tree: Mon, 05 Aug 2013 03:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5, 3.2.5-r1 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -msse2 -mssse3 -O2 -pipe -mno-tls-direct-seg-refs" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -msse2 -mssse3 -O2 -pipe -mno-tls-direct-seg-refs" DISTDIR="/usr/distfiles" EMERGE_DEFAULT_OPTS="--backtrack=30" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://de-mirror.org/gentoo/ ftp://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ http://91.121.124.139/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ rsync://de-mirror.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.supp.name/ http://de-mirror.org/gentoo/ http://tux.rainside.sk/gentoo/ ftp://tux.rainside.sk/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.inf.elte.hu/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j1" PKGDIR="/usr/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=50" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/lost+found" PORTAGE_TMPDIR="/tmp/tmpfs_portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cgi clamav cli colord consolekit cracklib crypt cups curl cxx dbus djvu dri dts dvd dvdr eds emboss encode enscript evo exif fam fastcgi ffmpeg firefox flac fontconfig foomaticdb fortran gcj gd gdbm geoip gif gimp gnome gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk gzip hddtemp iconv icu introspection iodbc java javascript jpeg kerberos lame lcms ldap libnotify libsecret lm_sensors mad matroska mbox mmx mng modules mono mp3 mp4 mpeg mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses nls nptl nsplugin odbc ogg opengl openmp oss pam pango pcre pdf perl php png policykit ppds pulseaudio python qt3support qt4 raw rdesktop readline samba scanner sdl session smp socialweb sockets speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion svg syslog tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vim-syntax vnc vorbis wavpack wifi win32codecs wxwidgets x264 xcb xcomposite xinetd xml xmlrpc xsl xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authz_host dir mime cgi cgid" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en el" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="niash epson epson2" USERLAND="GNU" VIDEO_CARDS="intel vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Created attachment 355190 [details] ebuild log for net-misc/dahdi-2.6.2
Comment on attachment 355190 [details] ebuild log for net-misc/dahdi-2.6.2 * Package: net-misc/dahdi-2.6.2 * Repository: gentoo * Maintainer: chainsaw@gentoo.org voip@gentoo.org * USE: amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /usr/src/linux * Found sources for kernel version: * 3.10.5-gentoo * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking dahdi-linux-2.6.2.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fwload-vpmadt032-1.25.0.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-vpmoct032-1.12.0.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-oct6114-064-1.05.01.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-oct6114-128-1.05.01.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-oct6114-256-1.05.01.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-tc400m-MR6.12.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-hx8-2.06.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking dahdi-fw-te820-1.76.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking gentoo-dahdi-patchset-1.1.5.tar.bz2 to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Unpacking jnet-dahdi-drivers-1.0.14.tar.gz to /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Source unpacked in /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work >>> Preparing source in /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2 ... * Applying various patches (bugfixes/updates) ... * 01-udevinfo-fallback-not-primary.diff ... [ ok ] * 02-dialout-group-not-asterisk.diff ... [ ok ] * 03-gcc44-compat-disable-debug.diff ... [ ok ] * 04-no-depmod.diff ... [ ok ] * 05-parallel-make.diff ... [ ok ] * 06-udev-directory.diff ... [ ok ] * 07-grsecurity-no-constify.diff ... [ ok ] * 98-non-digium-hardware-and-oslec.diff ... [ ok ] * 99-oct612x-split.diff ... [ ok ] * Done with patching >>> Source prepared. >>> Configuring source in /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2 ... >>> Source configured. >>> Compiling source in /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2 ... make -j1 V=1 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld KSRC=/usr/src/linux DESTDIR=/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/image/ 'DAHDI_MODULES_EXTRA=cwain.o qozap.o ztgsm.o' all make -C drivers/dahdi/firmware firmware-loaders make[1]: Entering directory `/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/firmware' make[1]: Leaving directory `/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/firmware' make -C /usr/src/linux SUBDIRS=/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi DAHDI_INCLUDE=/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/include DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o" HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m make[1]: Entering directory `/usr/src/linux-3.10.5-gentoo' make -C /usr/src/linux-3.10.5-gentoo \ KBUILD_SRC=/usr/src/linux-3.10.5-gentoo \ KBUILD_EXTMOD="/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi" -f /usr/src/linux-3.10.5-gentoo/Makefile \ modules test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/.tmp_versions ; rm -f /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/.tmp_versions/* make -f /usr/src/linux-3.10.5-gentoo/scripts/Makefile.build obj=/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi x86_64-pc-linux-gnu-gcc -Wp,-MD,/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/.dahdi-base.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.10.5-gentoo/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.10.5-gentoo/include -Iinclude -I/usr/src/linux-3.10.5-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.10.5-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.10.5-gentoo/include/linux/kconfig.h -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=atom -mtune=atom -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/oct612x/include -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/oct612x/octdeviceapi -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/oct612x/octdeviceapi/oct6100api -Wno-undef -DHAVE_HRTIMER_ACCESSORS=1 -DMODULE -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/include -I/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi -DHAVE_WAIT_FOR_COMPLETION_TIMEOUT=1 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dahdi_base)" -D"KBUILD_MODNAME=KBUILD_STR(dahdi)" -c -o /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:91:2: warning: #warning "No CONFIG_BKL is an experimental configuration." [-Wcpp] /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘dahdi_proc_open’: /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:2: error: implicit declaration of function ‘PDE’ [-Werror=implicit-function-declaration] /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:902:53: error: invalid type argument of ‘->’ (have ‘int’) /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_assign_span’: /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration] /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6945:20: warning: assignment makes pointer from integer without a cast [enabled by default] /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6952:19: error: dereferencing pointer to incomplete type /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:6953:19: error: dereferencing pointer to incomplete type /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_unassign_span’: /tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.c:7137:37: error: dereferencing pointer to incomplete type cc1: some warnings being treated as errors make[3]: *** [/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi/dahdi-base.o] Error 1 make[2]: *** [_module_/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2/drivers/dahdi] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/usr/src/linux-3.10.5-gentoo' make: *** [modules] Error 2 * ERROR: net-misc/dahdi-2.6.2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/dahdi-2.6.2'`, * the complete build log and the output of `emerge -pqv '=net-misc/dahdi-2.6.2'`. * The complete build log is located at '/var/portage_logs/net-misc:dahdi-2.6.2:20130805-181033.log'. * For convenience, a symlink to the build log is located at '/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/temp/build.log'. * The ebuild environment file is located at '/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/temp/environment'. * Working directory: '/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2' * S: '/tmp/tmpfs_portage/portage/net-misc/dahdi-2.6.2/work/dahdi-linux-2.6.2'
Can the ebuild maintainer make an ebuild for version 2.7.0, please? I downloaded the latest from http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz and run make all, and it completed without problem.
(In reply to thanasis from comment #3) > Can the ebuild maintainer make an ebuild for version 2.7.0, please? > I downloaded the latest from > http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux- > complete-current.tar.gz and run make all, and it completed without problem. Do not hijack unrelated bug reports for version bumps.
The problem is that DAHDI checks the kernel version, and then assumes that the headers for the running kernel are installed. That is not the case; we do not have a linux-headers 3.10 ebuild yet for me to depend on.
(In reply to Tony Vroon from comment #5) > The problem is that DAHDI checks the kernel version, and then assumes that > the headers for the running kernel are installed. That is not the case; we > do not have a linux-headers 3.10 ebuild yet for me to depend on. I installed sys-kernel/linux-headers-3.10 (by using ACCEPT_KEYWORDS="~amd64"), but net-misc/dahdi-2.6.2 (compile phase) seams to fail at the same point.
Just did world updates on my stable asterisk server and hit this same issue. Kernel 3.10.1-r1 is now stable, but dahdi won't build against it.
I suffer from the same problem: hardened-sources-3.10.1-r1, dahdi-2.6.2. Same error. Any ideas what is causing this issue? Regards, Florian
I have the same problem. dahdi-2.6.2 builds with my last kernel (3.5.7-gentoo), but fails with this exact error on 3.10.7-gentoo. Any ideas how to fix?
You will need to remove /usr/src/linux/include/linux/version.h
This isn't invalid as reported; 2.6.2 really does not work with kernel 3.10.