Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323781 - net-misc/zaptel-1.2.27-r1 fails to compile with sys-kernel/gentoo-sources-2.6.32-r7
Summary: net-misc/zaptel-1.2.27-r1 fails to compile with sys-kernel/gentoo-sources-2.6...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Rajiv Aaron Manglani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-13 14:48 UTC by Klas Meder Boqvist
Modified: 2011-03-27 14:32 UTC (History)
5 users (show)

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


Attachments
Build log of failed emerge (build.log,10.82 KB, text/plain)
2010-07-22 17:43 UTC, Richard Gray
Details
Environment file for failed emerge (environment,148.64 KB, text/plain)
2010-07-22 17:47 UTC, Richard Gray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klas Meder Boqvist 2010-06-13 14:48:03 UTC
net-misc/zaptel-1.2.27-r1 fails to compile 
when i run sys-kernel/gentoo-sources-2.6.32-r7 in an x86 system

no problem on a 2.6.31-gentoo-r10 amd64

Reproducible: Always

Steps to Reproduce:
1. run sys-kernel/gentoo-sources-2.6.32-r7
2. emerge zaptel
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.32-gentoo-r7'
  CC [M]  /var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.o
/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.32-gentoo-r7'
make: *** [modules] Error 2

Expected Results:  
installation

building works if I insert "#include <linux/sched.h>" in zaptel.h
Comment 1 Klas Meder Boqvist 2010-06-13 14:54:48 UTC
I added:
sed -i -e "s:#include <linux/types.h>:&\n#include <linux/sched.h>:" "${S}"/zaptel.h
to src_unpack() and then it works as expected
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-06-14 21:50:24 UTC
Please attach the complete build.log and environment files mentioned at the end of the failed emerge.
A `emerge --info` would be nice, too.
Comment 3 Richard Gray 2010-07-22 17:37:53 UTC
I have exactly the same problem under sys-kernel/gentoo-sources-2.6.34-r1

newton2 ~ # emerge --info                                          
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13
Timestamp of tree: Thu, 22 Jul 2010 16:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.5.4-r3, 2.6.4-r1, 3.1.2-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acl apache2 apm automount avi berkdb bitmap-fonts bzip2 cdparanoia cli cracklib crypt cxx dbase divx4linux doc dri dvd dvdr dvdread encode f77 ffmpeg flac foomaticdb ftp fuse gif gpm gsl iconv imagemagick imlib ipv6 jack jadetex jpeg kde lame lcms libg++ libwww lzo mad mbox mikmod milter mmx mng modules mp3 mpeg mudflap ncurses nls nptl nptlonly offensive ogg oggvorbis opengl openmp pam pcre pdflib perl png pppd python readline reflection samba sdl session slang sox speex spl sse ssl svga swat sysfs tcpd threads tiff truetype unicode usb vim-syntax vorbis wavpack win32codecs winbind x86 x86a52 xml xml2 xorg xv xvid 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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="en_GB en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

I'll add the build.log files et al as attachments in a moment.
Comment 4 Richard Gray 2010-07-22 17:43:55 UTC
Created attachment 239845 [details]
Build log of failed emerge

This was created under sys-kernel/gentoo-sources-2.6.34-r1
Comment 5 Richard Gray 2010-07-22 17:47:02 UTC
Created attachment 239847 [details]
Environment file for failed emerge

Failed emerge under sys-kernel/gentoo-sources-2.6.34-r1
Comment 6 Thomas Fuzeau 2010-08-23 12:37:10 UTC
I have the same problem :
"grep: /usr/src/linux/include/linux/autoconf.h: Aucun fichier ou dossier de ce type" (file doesn't found)

# emerge zaptel --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.33.5-xxxx-grs-ipv4-64 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.33.5-xxxx-grs-ipv4-64-x86_64-Intel-R-_Celeron-R-_CPU_220_@_1.20GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 23 Aug 2010 12:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /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/terminfo"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles ftp://mirror.ovh.net/gentoo-distfiles"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Richard Gray 2010-10-12 04:54:45 UTC
(In reply to comment #1)
> I added:
> sed -i -e "s:#include <linux/types.h>:&\n#include <linux/sched.h>:"
> "${S}"/zaptel.h
> to src_unpack() and then it works as expected
>

Is there any possibility you could flesh-out this explanation a bit? I'm not sufficiently familiar with the internals of portage & ebuilds to be able to experiment with this fix myself. I only ask because my experimental asterisk system has been out of action for months now because of this problem.
Comment 8 Klas Meder Boqvist 2010-10-12 06:44:29 UTC
(In reply to comment #7)
> (In reply to comment #1)
> > I added:
> > sed -i -e "s:#include <linux/types.h>:&\n#include <linux/sched.h>:"
> > "${S}"/zaptel.h
> > to src_unpack() and then it works as expected
> >
> 
> Is there any possibility you could flesh-out this explanation a bit? I'm not
> sufficiently familiar with the internals of portage & ebuilds to be able to
> experiment with this fix myself. I only ask because my experimental asterisk
> system has been out of action for months now because of this problem.
> 

It means that after unpacking the source it will add the row "#include <linux/sched.h>" after the row "#include <linux/types.h>" in zaptel.h

But if you want it build it with portage you need to add the sed-row to the function src_unpack() in the ebuild-file
(in an overlay)
Comment 9 Massimo Balestra 2011-01-08 16:56:54 UTC
Hi,
I have the same problem, I did what Klas suggested and it went a little ahead but the compilation still fails.

Now the error is:
make[1]: Entering directory `/usr/src/linux-2.6.37-gentoo'
  CC [M]  /var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.o
/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:2: 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_ioctl’:
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:4477:27: error: ‘struct file_operations’ has no member named ‘ioctl’
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c: At top level:
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:6690:2: error: unknown field ‘ioctl’ specified in initializer
/var/tmp/portage/net-misc/zaptel-1.2.27-r1/work/zaptel-1.2.27/zaptel-base.c:6690:2: warning: initialization from incompatible pointer type
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.37-gentoo'
make: *** [modules] Error 2



This is the emerge --info
Portage 2.1.9.30 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.12.1-r3, 2.6.37-gentoo i686)
=================================================================
System uname: Linux-2.6.37-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 08 Jan 2011 15:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-O2 -march=i686 -pipe "
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"
GENTOO_MIRRORS="http://gentoo.wetzlmayr.com/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.osuosl.org/ ftp://mirror.its.uidaho.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.cs.uni.edu/ ftp://mirror.datapipe.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US it eo"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 apm audiofile bash-completion berkdb branding bzip2 cairo cdr cli clutter consolekit cracklib crypt css cups cxx dbus device-mapper doc dri dts dv dvd dvdr eds emboss enca encode evo exif extras fam ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glx gnome gnutls gpm gstreamer gtk guile gzip iconv ieee1394 ipod ipv6 ithreads jadetex jpeg kde kdrive lcms libnotify libwww mad mikmod mmx mng modules mp3 mp4 mpeg mplayer msn mudflap mysql ncurses networking nls nptl nptlonly ogg opengl openmp oss pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 quicktime rar readline sasl scanner sdl semantic-desktop session sip snmp sockets spell sql sqlite ssl startup-notification svg sysfs tcpd threads tiff tk tls truetype udev unicode unrar unzip usb v4l v4l2 vnc vorbis wav weather webkit wifi win32codecs x264 x86 xcb xine xml xorg xscreensaver xulrunner xv xvid yahoo yv12 zip zlib" ALSA_CARDS="intel8x0" 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" 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" LINGUAS="en_US it eo" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


I am using the latest kernel version 
uname -a
Linux maxlin 2.6.37-gentoo #1 SMP Thu Jan 6 10:34:11 PST 2011 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux


Any suggestion on how to finish the compilation?

Thanks

Comment 10 Simon Matthews 2011-02-23 04:51:14 UTC
Isn't the solution to use DAHDI? 
http://blogs.digium.com/2008/05/19/zaptel-project-being-renamed-to-dahdi/
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-03-27 14:32:38 UTC
Gone from the tree