[asterisk-users] Error when compiling Zaptel in Sabayon (essentially Gentoo)

Christopher Hoff Christopher.Hoff at SEILLC.com
Thu Aug 14 09:52:47 CDT 2008


I'm just wondering if anyone has seen this/fixed this before.

I'm trying to compile Zaptel 1.4.11 in Sabayon Linux.  It keeps failing out when I attempt to "make" after running configure.  It looks like it might be a problem with the kernel sources, but they are there and the symlink is pointing to the correct directory.  Does anyone have any suggestions for correcting this?  I've pasted the output of "make" below.

Thanks!
Chris

localhost zaptel-1.4.11 # make
make[1]: Entering directory `/usr/src/zaptel-1.4.11/menuselect'
make[2]: Entering directory `/usr/src/zaptel-1.4.11/menuselect'
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1      -c -o menuselect.o menuselect.c
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1      -c -o strcompat.o strcompat.c
gcc -g -c -D_GNU_SOURCE -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1      -c -o menuselect_curses.o menuselect_curses.c
make[3]: Entering directory `/usr/src/zaptel-1.4.11/menuselect/mxml'
if test -f config.status; then \
                ./config.status --recheck; \
                ./config.status; \
        else \
                ./configure; \
        fi
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for cp... /bin/cp
checking for ln... /bin/ln
checking for mkdir... /bin/mkdir
checking for nroff... /usr/bin/nroff
checking for rm... /bin/rm
checking for strdup... yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mxml.list
config.status: creating mxml.pc
config.status: creating config.h
touch config.h
gcc -O -Wall -O -Wall    -c mxml-attr.c
gcc -O -Wall -O -Wall    -c mxml-entity.c
gcc -O -Wall -O -Wall    -c mxml-file.c
gcc -O -Wall -O -Wall    -c mxml-index.c
gcc -O -Wall -O -Wall    -c mxml-node.c
gcc -O -Wall -O -Wall    -c mxml-search.c
gcc -O -Wall -O -Wall    -c mxml-set.c
gcc -O -Wall -O -Wall    -c mxml-private.c
gcc -O -Wall -O -Wall    -c mxml-string.c
/bin/rm -f libmxml.a
/usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o
a - mxml-attr.o
a - mxml-entity.o
a - mxml-file.o
a - mxml-index.o
a - mxml-node.o
a - mxml-search.o
a - mxml-set.o
a - mxml-private.o
a - mxml-string.o
ranlib libmxml.a
make[3]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses
make[2]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect'
make[1]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect'
make[1]: Entering directory `/usr/src/zaptel-1.4.11'
make -C /lib/modules/2.6.26-sabayon/build ARCH=i386 SUBDIRS=/usr/src/zaptel-1.4.11/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o tor2.o torisa.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o wcusb.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o ztdynamic.o zttranscode.o wct4xxp/ wctc4xxp/ xpp/ wctdm24xxp/ wcte12xp/" modules
make[2]: Entering directory `/usr/src/linux-2.6.26-sabayon'
gcc -o /usr/src/zaptel-1.4.11/kernel/makefw /usr/src/zaptel-1.4.11/kernel/makefw.c
/usr/src/zaptel-1.4.11/kernel/makefw /usr/src/zaptel-1.4.11/kernel/pciradio.rbt radfw > /usr/src/zaptel-1.4.11/kernel/radfw.h
Loaded 42096 bytes from file
  CC [M]  /usr/src/zaptel-1.4.11/kernel/pciradio.o
/usr/src/zaptel-1.4.11/kernel/pciradio.c: In function âpciradio_remove_oneâ:
/usr/src/zaptel-1.4.11/kernel/pciradio.c:1866: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/pciradio.c: In function âpciradio_init_oneâ:
/usr/src/zaptel-1.4.11/kernel/pciradio.c:1787: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/pciradio.c:1811: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/pciradio.c:1823: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/pciradio.c:1832: warning: passing argument 1 of â__constant_c_and_count_memsetâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/makefw /usr/src/zaptel-1.4.11/kernel/tormenta2.rbt tor2fw > /usr/src/zaptel-1.4.11/kernel/tor2fw.h
Loaded 69900 bytes from file
  CC [M]  /usr/src/zaptel-1.4.11/kernel/tor2.o
  CC [M]  /usr/src/zaptel-1.4.11/kernel/torisa.o
  CC [M]  /usr/src/zaptel-1.4.11/kernel/wcfxo.o
/usr/src/zaptel-1.4.11/kernel/wcfxo.c: In function âwcfxo_remove_oneâ:
/usr/src/zaptel-1.4.11/kernel/wcfxo.c:1026: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wcfxo.c: In function âwcfxo_init_oneâ:
/usr/src/zaptel-1.4.11/kernel/wcfxo.c:978: warning: passing argument 1 of â__constant_c_and_count_memsetâ discards qualifiers from pointer target type
  CC [M]  /usr/src/zaptel-1.4.11/kernel/wct1xxp.o
/usr/src/zaptel-1.4.11/kernel/wct1xxp.c: In function ât1xxp_remove_oneâ:
/usr/src/zaptel-1.4.11/kernel/wct1xxp.c:1378: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wct1xxp.c: In function ât1xxp_init_oneâ:
/usr/src/zaptel-1.4.11/kernel/wct1xxp.c:1315: warning: passing argument 1 of â__constant_c_and_count_memsetâ discards qualifiers from pointer target type
  CC [M]  /usr/src/zaptel-1.4.11/kernel/wctdm.o
/usr/src/zaptel-1.4.11/kernel/wctdm.c: In function âwctdm_remove_oneâ:
/usr/src/zaptel-1.4.11/kernel/wctdm.c:2407: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wctdm.c: In function âwctdm_init_oneâ:
/usr/src/zaptel-1.4.11/kernel/wctdm.c:2322: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wctdm.c:2337: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wctdm.c:2354: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wctdm.c:2367: warning: passing argument 1 of â__constant_c_and_count_memsetâ discards qualifiers from pointer target type
  CC [M]  /usr/src/zaptel-1.4.11/kernel/wcte11xp.o
/usr/src/zaptel-1.4.11/kernel/wcte11xp.c: In function ât1xxp_remove_oneâ:
/usr/src/zaptel-1.4.11/kernel/wcte11xp.c:1568: warning: passing argument 3 of âpci_free_consistentâ discards qualifiers from pointer target type
/usr/src/zaptel-1.4.11/kernel/wcte11xp.c: In function ât1xxp_init_oneâ:
/usr/src/zaptel-1.4.11/kernel/wcte11xp.c:1511: warning: passing argument 1 of â__constant_c_and_count_memsetâ discards qualifiers from pointer target type
  CC [M]  /usr/src/zaptel-1.4.11/kernel/wcusb.o
  CC [M]  /usr/src/zaptel-1.4.11/kernel/zaptel-base.o
/usr/src/zaptel-1.4.11/kernel/zaptel-base.c: In function âzt_registerâ:
/usr/src/zaptel-1.4.11/kernel/zaptel-base.c:5230: error: implicit declaration of function âclass_device_createâ
/usr/src/zaptel-1.4.11/kernel/zaptel-base.c: In function âzt_unregisterâ:
/usr/src/zaptel-1.4.11/kernel/zaptel-base.c:5285: error: implicit declaration of function âclass_device_destroyâ
make[3]: *** [/usr/src/zaptel-1.4.11/kernel/zaptel-base.o] Error 1
make[2]: *** [_module_/usr/src/zaptel-1.4.11/kernel] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.26-sabayon'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/zaptel-1.4.11'
make: *** [all] Error 2

_______________________________
 
Chris Hoff
Telecommunications Administrator
SEI LLC
Voice  +1 701 298 8865 Ext 2189
Mobile +1 701 361 5976
Fax     +1 701 298 8860
Email christopher.hoff at seillc.com




More information about the asterisk-users mailing list