Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321597 - net-misc/zaptel fails to build with sys-kernel/gentoo-sources-2.6.34
Summary: net-misc/zaptel fails to build with sys-kernel/gentoo-sources-2.6.34
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Rajiv Aaron Manglani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 20:06 UTC by Chris Slycord
Modified: 2011-03-27 18:42 UTC (History)
3 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 Chris Slycord 2010-05-26 20:06:00 UTC
net-misc/zaptel (both the latest tree version 1.2.27-r1 and latest version the voip overlay 1.4.11-r1) fail to build the kernel modules.



Reproducible: Always

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

Actual Results:  
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27 HOTPLUG_FIRMWARE=yes modules
make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo'
  CC [M]  /var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.o
In file included from /var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:38:
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zconfig.h:13:28: error: linux/autoconf.h: No such file or directory
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function '__qevent':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:707: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:707: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:707: error: for each function it appears in.)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'schluffen':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:732: error: dereferencing pointer to incomplete type
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:732: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:733: error: implicit declaration of function 'signal_pending'
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:733: error: implicit declaration of function 'schedule'
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:734: error: dereferencing pointer to incomplete type
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:734: error: 'TASK_RUNNING' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'zt_rbs_sethook':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:1918: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~'
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'zt_timer_ioctl':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:2812: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'zt_chanandpseudo_ioctl':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:3625: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function '__zt_getbuf_chunk':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:5100: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function '__rbs_otimer_expire':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:5272: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function '__zt_putbuf_chunk':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:6146: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'process_timers':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:6240: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: In function 'zt_transmit':
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:6507: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
make[2]: *** [/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo'
make: *** [modules] Error 2
 * ERROR: net-misc/zaptel-1.2.27-r1 failed:
 *   (no error message)

Expected Results:  
Build properly
Comment 1 Chris Slycord 2010-05-26 20:06:37 UTC
# emerge --info
Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-gentoo i686)
=================================================================
System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 26 May 2010 05:30:20 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe -fomit-frame-pointer"
DISTDIR="/home/ftp/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=3"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
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="/var/lib/layman/voip /var/lib/layman/jokey /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa bash-completion berkdb bs2b bzip2 cdda cddb cjk cli cracklib crypt cups cxx dbus dri dts dvd dvdr ffmpeg fftw flac fortran gdbm gpm iconv id3tag ipv6 jpeg jpeg2k kdehiddenvisibility lzo mmx mng modules mp3 mudflap ncurses nls nptl nptlonly nsplugin ogg openexr opengl openmp pcre perl png pppd python qt3support quicktime readline reflection session spl sse sse2 ssl ssse3 svg sysfs syslog tcpd theora tiff truetype unicode usb vorbis wmf x264 x86 xorg xvid xvmc 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia none" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-06-08 00:46:43 UTC
The solution ( patch ) is pretty easy here

autoconf.h header since 2.6.33 moved from linux/ to generated/ folder. 

So you could easily patch it if you like
Comment 3 gentoowok 2010-10-06 07:50:03 UTC
How I got this compiled with gentoo-sources-2.6.35-r9
1) editted zaptel-1.2.27-r1.ebuild:
    changed RTC to RTC_CLASS on line 144
2) ran ebuild zaptel-1.2.27-r1.ebuild digest
3) ran ebuild zaptel-1.2.27-r1.ebuild unpack
4) cd /var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27
5) changed "linux/autoconf.h" to "generated/autoconf.h" in zconfig.h
6) changed "linux/autoconf.h" to "generated/autoconf.h" in wct4xxp/vpm450m.c
7) added "#include <linux/sched.h>" to top of zaptel-base.c
8) added "#include <linux/sched.h>" to top of wctdm.c
9) added "#include <linux/sched.h>" to top of pciradio.c
10) added "#include <linux/sched.h>" to top of wctdm24xxp/base.c
11) added "#include <linux/sched.h>" to top of wcte12xp/base.c
12) ran ebuild /usr/portage/net-misc/zaptel/zaptel-1.2.27-r1.ebuild compile
13) ran ebuild /usr/portage/net-misc/zaptel/zaptel-1.2.27-r1.ebuild install
14) ran ebuild /usr/portage/net-misc/zaptel/zaptel-1.2.27-r1.ebuild qmerge

Hope this helps someone out.

There's  probably a much better way to add the sched.h kernel header to the above files, if anyone could point it out, feel free. It would also be nice if someone could create a patch from the above and a new ebuild.

A lot of people are still running asterisk-1.2* series with zaptel in a production environment, and need to run it with latest stable kernel.
Comment 4 kfm 2010-10-06 14:07:42 UTC
> A lot of people are still running asterisk-1.2* series with zaptel in a
> production environment, and need to run it with latest stable kernel.

I'd suggest running =vanilla-sources-2.6.32* as it is a long-term stable release. While I do not speak for the herd, the focus does not appear to be on asterisk-1.2 maintenance and, unless I'm very much mistaken, it's no longer maintained upstream either.
Comment 5 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2011-03-27 18:42:13 UTC
net-misc/zaptel was removed from the portage tree on 2011-02-27. please upgrade to net-misc/dahdi.