FreeBSD Port: zaptel-1.4.11.2

Peter Sprokkelenburg peter.sprokkelenburg at auricnet.ca
Fri Dec 4 18:20:55 UTC 2009


Setting up a Asterisk box on Freebsd 7.2 i386

 

Need to install the wct4xxp driver for our TE212P card.

 

Extracted the sources from the ports tarball to do a manual config of the
make file.

 

When doing a make it stops in the wct4xxp directory with this :

 

 

awk -f @/tools/makeobjops.awk @/kern/device_if.m -h

awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h

awk -f @/tools/makeobjops.awk @/isa/isa_if.m -h

awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h

cc -O2 -fno-strict-aliasing -pipe -Wall -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc  -I/root/zaptel-ports/zaptel-bsd-1.4.11.2/wct4xxp/../zaptel -I.
-I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000 -fno-common  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c base.c

base.c: In function '__t4_pci_in':

base.c:433: warning: implicit declaration of function 'udelay'

base.c:433: warning: nested extern declaration of 'udelay'

base.c: In function '__t4_pci_out':

base.c:441: warning: assignment makes integer from pointer without a cast

base.c: In function 't4_gpio_setdir':

base.c:485: warning: unused variable 'flags'

base.c: In function 't4_gpio_set':

base.c:493: warning: unused variable 'flags'

base.c: In function 't4_pci_out':

base.c:501: warning: unused variable 'flags'

base.c: In function 't4_pci_in':

base.c:525: warning: unused variable 'flags'

base.c: In function 't4_framer_in':

base.c:549: warning: unused variable 'flags'

base.c: In function 't4_framer_out':

base.c:580: warning: unused variable 'flags'

base.c: In function 'hdlc_start':

base.c:955: warning: unused variable 'flags'

base.c: In function 't4_hdlc_hard_xmit':

base.c:1259: warning: unused variable 'flags'

base.c: In function 't4_rbsbits':

base.c:1338: warning: unused variable 'flags'

base.c:1429:11: error: macro "msleep" requires 5 arguments, but only 1 given

base.c: In function 't4_shutdown':

base.c:1429: error: 'msleep' undeclared (first use in this function)

base.c:1429: error: (Each undeclared identifier is reported only once

base.c:1429: error: for each function it appears in.)

base.c:1390: warning: unused variable 'flags'

base.c: In function 't4_chanconfig':

base.c:1482: warning: unused variable 'flags'

base.c: In function 'init_spans':

base.c:1573: error: 'struct t4' has no member named 'vpm'

base.c:1574: error: 'struct t4' has no member named 'vpm450m'

base.c:1634: error: 'struct t4' has no member named 'wc_dma'

base.c:1635: error: 'struct t4' has no member named 'wc_dma'

base.c:1644: error: 'struct t4' has no member named 'wc_dma'

base.c:1645: error: 'struct t4' has no member named 'wc_dma'

base.c: In function '__t4_findsync':

base.c:1781: warning: unused variable 'flags'

base.c: In function 't4_startup':

base.c:2024: warning: unused variable 'flags'

base.c: In function 't4_receiveprep':

base.c:2159: error: 'struct t4' has no member named 'wc_dma'

base.c:2164: error: 'struct t4' has no member named 'wc_dma'

base.c: In function '__receive_span':

base.c:2254: warning: implicit declaration of function 'prefetch'

base.c:2254: warning: nested extern declaration of 'prefetch'

base.c: In function 't4_transmitprep':

base.c:2317: error: 'struct t4' has no member named 'wc_dma'

base.c:2319: error: 'struct t4' has no member named 'wc_dma'

base.c: In function 't4_check_alarms':

base.c:2438: warning: unused variable 'flags'

base.c: In function 't4_framer_interrupt':

base.c:2651: warning: unused variable 'flags'

base.c: At top level:

base.c:2795: warning: no previous prototype for 't4_interrupt'

base.c: In function 't4_interrupt':

base.c:2797: warning: unused variable 'flags'

base.c: In function 't4_isr_bh':

base.c:2899: warning: unused variable 'wc'

base.c: At top level:

base.c:2917: warning: no previous prototype for 't4_interrupt_gen2'

base.c: In function 't4_interrupt_gen2':

base.c:3018: error: 'struct t4' has no member named 'vpm'

base.c:3018: error: 'vpmdtmfsupport' undeclared (first use in this function)

base.c:3019: error: 'struct t4' has no member named 'vpm450m'

base.c:3041: warning: implicit declaration of function 'tasklet_schedule'

base.c:3041: warning: nested extern declaration of 'tasklet_schedule'

base.c:3041: error: 'struct t4' has no member named 't4_tlet'

base.c: In function 't4_reset_dma':

base.c:3065: error: 'struct t4' has no member named 'wc_dma'

base.c:3066: error: 'struct t4' has no member named 'wc_dma'

base.c: In function 't4_tsi_assign':

base.c:3396: warning: unused variable 'flags'

base.c: In function 't4_tsi_unassign':

base.c:3417: warning: unused variable 'flags'

base.c: In function 't4_hardware_init_1':

base.c:3452: error: 'struct t4' has no member named 'wc_dma'

base.c:3453: error: 'struct t4' has no member named 'wc_dma'

base.c: In function 't4_launch':

base.c:3538: warning: implicit declaration of function 'tasklet_init'

base.c:3538: warning: nested extern declaration of 'tasklet_init'

base.c:3538: error: 'struct t4' has no member named 't4_tlet'

base.c:3500: warning: unused variable 'flags'

base.c: At top level:

base.c:3542: warning: 'struct pci_device_id' declared inside parameter list

base.c:3542: warning: its scope is only this definition or declaration,
which is probably not what you want

base.c: In function 't4_init_one':

base.c:3562: error: dereferencing pointer to incomplete type

base.c:3575: warning: implicit declaration of function 'pci_resource_start'

base.c:3575: warning: nested extern declaration of 'pci_resource_start'

base.c:3576: warning: implicit declaration of function 'pci_resource_len'

base.c:3576: warning: nested extern declaration of 'pci_resource_len'

base.c:3577: warning: implicit declaration of function 'ioremap'

base.c:3577: warning: nested extern declaration of 'ioremap'

base.c:3577: warning: assignment makes pointer from integer without a cast

base.c:3584: warning: implicit declaration of function 'pci_request_regions'

base.c:3584: warning: nested extern declaration of 'pci_request_regions'

base.c:3592: warning: implicit declaration of function 'zt_dma_allocate'

base.c:3592: warning: nested extern declaration of 'zt_dma_allocate'

base.c:3592: error: 'struct t4' has no member named 'wc_dma'

base.c:3593: error: 'struct t4' has no member named 'wc_dma'

base.c:3599: error: 'struct t4' has no member named 'wc_dma'

base.c:3599: error: 'struct t4' has no member named 'wc_dma'

base.c:3602: error: 'struct t4' has no member named 'wc_dma'

base.c:3602: error: 'struct t4' has no member named 'wc_dma'

base.c:3605: error: 'struct t4' has no member named 'wc_dma'

base.c:3606: error: 'struct t4' has no member named 'wc_dma'

base.c:3674: warning: implicit declaration of function 'zt_setup_irq'

base.c:3674: warning: nested extern declaration of 'zt_setup_irq'

base.c:3674: error: 'struct t4' has no member named 'wc_irq'

base.c:3674: error: expected statement before ')' token

base.c:3736:11: error: macro "msleep" requires 5 arguments, but only 1 given

base.c: In function 't4_hardware_stop':

base.c:3736: error: 'msleep' undeclared (first use in this function)

base.c: In function 't4_remove_one':

base.c:3763: error: 'struct t4' has no member named 'vpm450m'

base.c:3764: warning: implicit declaration of function 'release_vpm450m'

base.c:3764: warning: nested extern declaration of 'release_vpm450m'

base.c:3764: error: 'struct t4' has no member named 'vpm450m'

base.c:3765: error: 'struct t4' has no member named 'vpm450m'

base.c:3784: warning: implicit declaration of function 'zt_teardown_irq'

base.c:3784: warning: nested extern declaration of 'zt_teardown_irq'

base.c:3784: error: 'struct t4' has no member named 'wc_irq'

base.c:3787: warning: implicit declaration of function 'iounmap'

base.c:3787: warning: nested extern declaration of 'iounmap'

base.c:3787: warning: cast discards qualifiers from pointer target type

base.c:3789: warning: implicit declaration of function
'pci_zt_unmap_iospace'

base.c:3789: warning: nested extern declaration of 'pci_zt_unmap_iospace'

base.c:3789: error: 'struct t4' has no member named 'wc_io'

base.c:3792: warning: implicit declaration of function 'zt_dma_destroy'

base.c:3792: warning: nested extern declaration of 'zt_dma_destroy'

base.c:3792: error: 'struct t4' has no member named 'wc_dma'

base.c:3798: error: expected expression before '}' token

base.c: At top level:

base.c:3803: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'__devinitdata'

base.c:3861: warning: data definition has no type or storage class

base.c:3861: warning: type defaults to 'int' in declaration of
'HWDRIVER_MODULE_HANDLER'

base.c:3861: warning: parameter names (without types) in function
declaration

base.c:3862: warning: data definition has no type or storage class

base.c:3862: warning: type defaults to 'int' in declaration of
'HWDRIVER_METHODS'

base.c:3862: warning: parameter names (without types) in function
declaration

base.c:3863: warning: data definition has no type or storage class

base.c:3863: warning: type defaults to 'int' in declaration of
'DEFINE_HWDRIVER'

base.c:3863: warning: parameter names (without types) in function
declaration

*** Error code 1

 

Stop in /root/zaptel-ports/zaptel-bsd-1.4.11.2/wct4xxp.

 

Thoughts?

 

Peter Sprokkelenburg

Network Administrator
Auric Networks Canada, Inc.
570 Orwell Street, Unit 1
Mississauga, Ontario
L5A 3V7

Phone : 905.361.7621
Cell : 647.212.8742
Fax : 905.274.3912
Email :  <mailto:peter at auricnet.ca> peter at auricnet.ca

 <http://www.auricnet.ca/> http://www.auricnet.ca

 



More information about the freebsd-ports mailing list