[Asterisk-Users] zaphfc Compile Error

Petter Ween petterween at hotmail.com
Tue May 18 14:09:16 MST 2004


Hi

Running slackware 9.1 with compiled kernel patched to 2.6.6 running ok.

Having problems compiling zaphfc.c

First thing was the can't find "irq_vectors.h",
but "solved" by changing the #include "irq_vectors.h" to #include 
"mach-default/irq_vectors.h" in /usr/src/linux/include/asm/ directory.
But I still have errors with "structure has no member named...."

This is what I get :

bash-2.05b# cd /usr/src/bri-stuff.0.0.2/zaphfc
bash-2.05b# make clean all
rm -f zaphfc.o *.ko *.mod.c *.mod.o .*o.cmd *~
cc -c zaphfc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer 
-O2 -Wall -I/usr/src/linux/include -I../zaptel -Wall   
-DCONFIG_ZAPATA_BRI_DCHANS
zaphfc.c: In function `hfc_dtrans':
zaphfc.c:308: structure has no member named `bytes2transmit'
zaphfc.c:331: structure has no member named `bytes2transmit'
zaphfc.c:362: structure has no member named `eoftx'
zaphfc.c:366: structure has no member named `eoftx'
zaphfc.c: In function `hfc_drec':
zaphfc.c:377: structure has no member named `bytes2receive'
zaphfc.c:378: structure has no member named `eofrx'
zaphfc.c:420: structure has no member named `eofrx'
zaphfc.c:461: structure has no member named `eofrx'
zaphfc.c:475: structure has no member named `bytes2receive'
zaphfc.c:481: structure has no member named `bytes2receive'
zaphfc.c: In function `hfc_interrupt':
zaphfc.c:616: structure has no member named `bytes2transmit'
zaphfc.c:630: structure has no member named `bytes2receive'
zaphfc.c:639: structure has no member named `bytes2receive'
zaphfc.c: In function `zthfc_startup':
zaphfc.c:711: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
zaphfc.c:711: (Each undeclared identifier is reported only once
zaphfc.c:711: for each function it appears in.)
make: *** [zaphfc.o] Error 1

--snip----------------------------------
gcc (GCC) 3.2.3
GNU Make 3.80
GNU ld version 2.14.90.0.6 20030820
  Supported emulations:
   elf_i386
   i386linux
   elf_x86_64
-----------------------------------------

(The compile of zaptel.c seems ok. with no errors during compile)


Any hint/directions is highly appreciated

Regards Petter

_________________________________________________________________
MSN Messenger http://www.msn.no/messenger Den korteste veien mellom deg og 
dine venner




More information about the asterisk-users mailing list