zaphfc $ make
cc -c zaphfc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -O2 -Wall -I/usr/src/linux/include -Wall
In file included from /usr/src/linux/include/asm/processor.h:18,
from /usr/src/linux/include/asm/thread_info.h:17,
from /usr/src/linux/include/linux/thread_info.h:21,
from /usr/src/linux/include/linux/spinlock.h:12,
from /usr/src/linux/include/linux/capability.h:45,
from /usr/src/linux/include/linux/sched.h:7,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:19,
from /usr/src/linux/include/linux/sched.h:26,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:19,
from /usr/src/linux/include/linux/sched.h:26,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/mpspec.h: At top level:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
In file included from /usr/src/linux/include/asm/smp.h:20,
from /usr/src/linux/include/linux/smp.h:19,
from /usr/src/linux/include/linux/sched.h:26,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/io_apic.h:158: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:158: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:19,
from /usr/src/linux/include/linux/sched.h:26,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:19,
from /usr/src/linux/include/linux/sched.h:26,
from /usr/src/linux/include/linux/module.h:10,
from zaphfc.c:16:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux/include/linux/irq.h:21,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from zaphfc.c:25:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from zaphfc.c:25:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:74,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from zaphfc.c:25:
/usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:32: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:11,
from zaphfc.c:25:
/usr/src/linux/include/linux/irq.h:79: error: `NR_IRQS' undeclared here (not in a function)
zaphfc.c:27:20: zaptel.h: No such file or directory
In file included from zaphfc.c:28:
zaphfc.h:274: error: `ZT_CHUNKSIZE' undeclared here (not in a function)
zaphfc.h:275: error: `ZT_CHUNKSIZE' undeclared here (not in a function)
zaphfc.h:282: error: field `span' has incomplete type
zaphfc.h:283: error: field `chans' has incomplete type
zaphfc.c: In function `hfc_shutdownCard':
zaphfc.c:130: warning: implicit declaration of function `zt_unregister'
zaphfc.c: In function `hfc_btrans':
zaphfc.c:254: error: `ZT_CHUNKSIZE' undeclared (first use in this function)
zaphfc.c:254: error: (Each undeclared identifier is reported only once
zaphfc.c:254: error: for each function it appears in.)
zaphfc.c: In function `hfc_brec':
zaphfc.c:319: error: `ZT_CHUNKSIZE' undeclared (first use in this function)
zaphfc.c:380: warning: implicit declaration of function `zt_ec_chunk'
zaphfc.c: In function `hfc_interrupt':
zaphfc.c:719: error: `ZT_FLAG_RUNNING' undeclared (first use in this function)
zaphfc.c:724: warning: implicit declaration of function `zt_transmit'
zaphfc.c:758: warning: implicit declaration of function `zt_receive'
zaphfc.c: In function `zthfc_open':
zaphfc.c:777: error: dereferencing pointer to incomplete type
zaphfc.c:784: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
zaphfc.c: In function `zthfc_close':
zaphfc.c:792: error: dereferencing pointer to incomplete type
zaphfc.c:800: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
zaphfc.c: In function `zthfc_startup':
zaphfc.c:820: error: dereferencing pointer to incomplete type
zaphfc.c:827: error: dereferencing pointer to incomplete type
zaphfc.c:827: error: `ZT_FLAG_RUNNING' undeclared (first use in this function)
zaphfc.c:830: error: dereferencing pointer to incomplete type
zaphfc.c:830: error: `ZT_FLAG_HDLC' undeclared (first use in this function)
zaphfc.c:831: error: dereferencing pointer to incomplete type
zaphfc.c:831: error: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
zaphfc.c:833: error: dereferencing pointer to incomplete type
zaphfc.c: At top level:
zaphfc.c:861: warning: `struct zt_lineconfig' declared inside parameter list
zaphfc.c:861: warning: its scope is only this definition or declaration, which is probably not what you want
zaphfc.c: In function `zthfc_spanconfig':
zaphfc.c:862: error: dereferencing pointer to incomplete type
zaphfc.c:862: error: dereferencing pointer to incomplete type
zaphfc.c: In function `zthfc_initialize':
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:899: error: `ZT_LAW_ALAW' undeclared (first use in this function)
zaphfc.c:900: error: `ZT_CONFIG_AMI' undeclared (first use in this function)
zaphfc.c:900: error: `ZT_CONFIG_CCS' undeclared (first use in this function)
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
zaphfc.c:909: error: `ZT_SIG_EM' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_CLEAR' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXSLS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXSGS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXSKS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXOLS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXOGS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_FXOKS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_CAS' undeclared (first use in this function)
zaphfc.c:909: error: `ZT_SIG_SF' undeclared (first use in this function)
zaphfc.c:913: warning: implicit declaration of function `zt_register'
zaphfc.c: In function `hfc_findCards':
zaphfc.c:1000: warning: assignment makes pointer from integer without a cast
zaphfc.c:1009: warning: passing arg 2 of `request_irq' from incompatible pointer type
make: *** [zaphfc.o] Error 1