[asterisk-users] Error compiling Dahdi: invalid use of undefined type struct module
David Cunningham
dcunningham at voisonics.com
Sun Jan 30 20:45:30 CST 2011
All,
I'm installing Asterisk with Dahdi on a server with a custom kernel compile.
I've got the kernel source in /lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build
which points to /usr/src/linux-headers-2.6.34.6 and I think that's fine, but
am getting all these "struct module" errors.
Can anyone advise? Thanks!
# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: entrant dans le répertoire «
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »
make[1]: quittant le répertoire «
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/firmware »
make -C /lib/modules/2.6.34.6-xxxx-grs-ipv6-64/build
SUBDIRS=/usr/src/dahdi-linux-2.4.0/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.4.0/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.34.6 »
CC [M] /usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_register_tone_zone’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1440: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘start_tone’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1514: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_chan_reg’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1638: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_ppp_xmit’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1910: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:1913: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_chan_unreg’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2013: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_rbs_sethook’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2425: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2429: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2433: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2477: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_cas_setbits’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2489: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_timer_release’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2732: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_read’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2943: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_write’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:2974: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘ioctl_load_zone’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3041: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3081: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3109: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3137: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_mf_tone’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3237: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_release’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3460: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_alarm_notify’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3532: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3544: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3549: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:3554: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_common_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4055: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4057: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4059: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4061: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4063: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4065: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4067: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4069: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4071: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4074: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4076: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4079: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4082: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_ctl_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4283: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4409: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4627: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘ioctl_dahdi_dial’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:4686: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_chanandpseudo_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5132: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5134: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5141: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5143: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5145: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5148: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘ioctl_echocancel’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5325: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5340: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘set_echocan_fax_mode’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5372: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5374: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5376: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5384: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5389: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5394: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5396: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5399: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5407: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5412: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_chan_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5722: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_prechan_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5817: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_ioctl’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5889: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_register’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5945: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5951: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5966: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:5976: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6011: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6018: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_unregister’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6049: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6058: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6062: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:6092: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘process_echocan_events’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:7092: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:7102: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘__putbuf_chunk’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:7594: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:7668: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:7810: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_poll’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8082: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘coretimer_func’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8448: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_receive’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8559: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_init’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8712: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8722: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8723: error: invalid
use of undefined type ‘struct module’
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c: In function
‘dahdi_cleanup’:
/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.c:8752: error: invalid
use of undefined type ‘struct module’
make[2]: *** [/usr/src/dahdi-linux-2.4.0/drivers/dahdi/dahdi-base.o] Erreur
1
make[1]: *** [_module_/usr/src/dahdi-linux-2.4.0/drivers/dahdi] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.34.6 »
make: *** [modules] Erreur 2
--
David Cunningham, Voisonics
http://voisonics.com/
US toll-free: +1 888 842 2720
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110131/8b51727c/attachment.htm>
More information about the asterisk-users
mailing list