[asterisk-users] Error compiling DAHDI...

Warren Selby
Wed, 26 May 2010 02:48:06 -0000

I was at a client site tonight to install OSLEC on his machine running
asterisk 1.6.0.22 and DAHDI 2.2.1 installed via yum.  I stopped asterisk and
DAHDI, downloaded the latest version of DAHDI 2.2.1
(dahdi-linux-complete-2.2.1.2+2.2.1.1) and made the necessary changes to
compile OSLEC with DAHDI, but I ran into compilation issues that I had never
seen before.  So as a test I deleted my /usr/src/dahdi/ directory,
re-expanded my tarball (so that I had a vanilla DAHDI package), and tried to
compile it again, and I got the same errors.  I have not seen these errors
before, and I'm not sure what would cause them.  Can anyone help shed some
light on this?

The 'make' output:

dahdi]# make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory `/usr/src/dahdi/drivers/dahdi/
firmware'
make[1]: Leaving directory `/usr/src/dahdi/drivers/dahdi/firmware'
make -C /lib/modules/2.6.18-164.11.1.el5/build
SUBDIRS=/usr/src/dahdi/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686'
  CC [M]  /usr/src/dahdi/drivers/dahdi/dahdi-base.o
In file included from include/linux/spinlock.h:8,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/config.h:6:2: warning: #warning Including config.h is
deprecated.
In file included from include/linux/spinlock.h:39,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/asm/spinlock.h:60: error: expected ?)? before ?*? token
include/asm/spinlock.h:71: error: expected ?)? before ?*? token
include/asm/spinlock.h:77: error: expected ?)? before ?*? token
include/asm/spinlock.h:115: error: expected ?)? before ?*? token
include/asm/spinlock.h:162: error: expected ?)? before ?*? token
include/asm/spinlock.h:167: error: expected ?)? before ?*? token
include/asm/spinlock.h:172: error: expected ?)? before ?*? token
include/asm/spinlock.h:182: error: expected ?)? before ?*? token
include/asm/spinlock.h:191: error: expected ?)? before ?*? token
include/asm/spinlock.h:196: error: expected ?)? before ?*? token
In file included from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/spinlock.h:43: error: expected ?)? before ?*? token
include/linux/spinlock.h:44: error: expected ?)? before ?*? token
include/linux/spinlock.h:45: error: expected ?)? before ?*? token
include/linux/spinlock.h:46: error: expected ?)? before ?*? token
include/linux/spinlock.h:47: error: expected ?)? before ?*? token
include/linux/spinlock.h:48: error: expected ?)? before ?*? token
include/linux/spinlock.h:49: error: expected ?)? before ?*? token
include/linux/spinlock.h:50: error: expected ?)? before ?*? token
include/linux/spinlock.h:51: error: expected ?)? before ?*? token
include/linux/spinlock.h:52: error: expected ?)? before ?*? token
include/linux/spinlock.h:53: error: expected ?)? before ?*? token
include/linux/spinlock.h:54: error: expected ?)? before ?*? token
include/linux/spinlock.h:55: error: expected ?)? before ?*? token
include/linux/spinlock.h:56: error: expected ?)? before ?*? token
include/linux/spinlock.h:57: error: expected ?)? before ?*? token
include/linux/spinlock.h:58: error: expected ?)? before ?*? token
include/linux/spinlock.h:59: error: expected ?)? before ?*? token
include/linux/spinlock.h:60: error: expected ?)? before ?*? token
include/linux/spinlock.h:61: error: expected ?)? before ?*? token
include/linux/spinlock.h:62: error: expected ?)? before ?*? token
include/linux/spinlock.h:63: error: expected ?)? before ?*? token
include/linux/spinlock.h:64: error: expected ?)? before ?*? token
include/linux/spinlock.h:65: error: expected ?)? before ?*? token
include/linux/spinlock.h:66: error: expected ?)? before ?*? token
include/linux/spinlock.h:67: error: expected ?)? before ?*? token
include/linux/spinlock.h:68: error: expected ?)? before ?*? token
include/linux/spinlock.h:69: error: expected ?)? before ?*? token
include/linux/spinlock.h:70: error: expected ?)? before ?*? token
include/linux/spinlock.h:477: error: expected declaration specifiers or
?...? before ?spinlock_t?
In file included from include/linux/time.h:7,
                 from include/linux/timex.h:57,
                 from include/linux/sched.h:48,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/seqlock.h:34: error: expected specifier-qualifier-list before
?spinlock_t?
include/linux/seqlock.h: In function ?write_seqlock?:
include/linux/seqlock.h:62: error: implicit declaration of function
?_spin_lock?
include/linux/seqlock.h:62: error: ?seqlock_t? has no member named ?lock?
include/linux/seqlock.h: In function ?write_sequnlock?:
include/linux/seqlock.h:71: error: implicit declaration of function
?_spin_unlock?
include/linux/seqlock.h:71: error: ?seqlock_t? has no member named ?lock?
include/linux/seqlock.h: In function ?write_tryseqlock?:
include/linux/seqlock.h:76: error: implicit declaration of function
?_spin_trylock?
include/linux/seqlock.h:76: error: ?seqlock_t? has no member named ?lock?
In file included from include/asm/semaphore.h:41,
                 from include/linux/sched.h:57,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/wait.h: At top level:
include/linux/wait.h:51: error: expected specifier-qualifier-list before
?spinlock_t?
include/linux/wait.h: In function ?waitqueue_active?:
include/linux/wait.h:108: error: ?wait_queue_head_t? has no member named
?task_list?
include/linux/wait.h: In function ?__add_wait_queue?:
include/linux/wait.h:126: error: ?wait_queue_head_t? has no member named
?task_list?
include/linux/wait.h: In function ?__add_wait_queue_tail?:
include/linux/wait.h:135: error: ?wait_queue_head_t? has no member named
?task_list?
In file included from include/linux/rwsem.h:24,
                 from include/asm/semaphore.h:42,
                 from include/linux/sched.h:57,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/asm/rwsem.h: At top level:
include/asm/rwsem.h:63: error: expected specifier-qualifier-list before
?spinlock_t?
In file included from include/linux/sem.h:4,
                 from include/linux/sched.h:64,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/ipc.h:59: error: expected specifier-qualifier-list before
?spinlock_t?
In file included from include/linux/sched.h:64,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/sem.h:133: error: expected specifier-qualifier-list before
?spinlock_t?
In file included from include/linux/sched.h:67,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/fs_struct.h:9: error: expected specifier-qualifier-list before
?rwlock_t?
In file included from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:71,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/mmzone.h:166: error: expected specifier-qualifier-list before
?spinlock_t?
In file included from include/linux/mutex.h:14,
                 from include/linux/notifier.h:13,
                 from include/linux/memory_hotplug.h:7,
                 from include/linux/mmzone.h:339,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:71,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/spinlock_types.h:91:1: warning: "DEFINE_SPINLOCK"
redefined
In file included from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/spinlock.h:406:1: warning: this is the location of the
previous definition
In file included from include/linux/mutex.h:14,
                 from include/linux/notifier.h:13,
                 from include/linux/memory_hotplug.h:7,
                 from include/linux/mmzone.h:339,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:71,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/spinlock_types.h:92:1: warning: "DEFINE_RWLOCK"
redefined
In file included from include/linux/capability.h:45,
                 from include/linux/sched.h:44,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/spinlock.h:407:1: warning: this is the location of the
previous definition
In file included from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:71,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/mmzone.h: In function ?populated_zone?:
include/linux/mmzone.h:374: error: ?struct zone? has no member named
?present_pages?
include/linux/mmzone.h: In function ?is_highmem?:
include/linux/mmzone.h:395: error: ?struct zone? has no member named
?zone_pgdat?
include/linux/mmzone.h: In function ?is_normal?:
include/linux/mmzone.h:400: error: ?struct zone? has no member named
?zone_pgdat?
include/linux/mmzone.h: In function ?is_dma32?:
include/linux/mmzone.h:405: error: ?struct zone? has no member named
?zone_pgdat?
include/linux/mmzone.h: In function ?is_dma?:
include/linux/mmzone.h:410: error: ?struct zone? has no member named
?zone_pgdat?
In file included from include/linux/slab.h:14,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:71,
                 from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/gfp.h: In function ?alloc_pages_thisnode?:
include/linux/gfp.h:134: error: ?struct zone? has no member named
?zone_pgdat?
include/linux/gfp.h:143: error: ?struct zone? has no member named
?zone_pgdat?
In file included from include/linux/module.h:9,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:
include/linux/sched.h: In function ?dequeue_signal_lock?:
include/linux/sched.h:1326: error: implicit declaration of function
?_spin_lock_irqsave?
include/linux/sched.h:1328: error: implicit declaration of function
?_spin_unlock_irqrestore?
In file included from include/asm/pci.h:32,
                 from include/linux/pci.h:804,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:42:
include/linux/mm.h: In function ?page_to_nid?:
include/linux/mm.h:534: error: ?struct zone? has no member named
?zone_pgdat?
In file included from include/linux/mm.h:568,
                 from include/asm/pci.h:32,
                 from include/linux/pci.h:804,
                 from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:42:
include/linux/vmstat.h: In function ?zone_page_state_add?:
include/linux/vmstat.h:89: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h: In function ?zone_page_state?:
include/linux/vmstat.h:106: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h: In function ?zap_zone_vm_stats?:
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
include/linux/vmstat.h:157: error: ?struct zone? has no member named
?vm_stat?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c: In function
?dahdi_register_echocan_factory?:
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:406: error: implicit declaration
of function ?_write_lock?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:411: error: implicit declaration
of function ?_write_unlock?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c: In function ?find_echocan?:
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1129: error: implicit declaration
of function ?_read_lock?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1134: error: implicit declaration
of function ?_read_unlock?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c: In function ?dahdi_chan_reg?:
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1496: error: implicit declaration
of function ?spin_lock_init?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1506: error: implicit declaration
of function ?_write_lock_irqsave?
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1515: error: implicit declaration
of function ?_write_unlock_irqrestore?
make[2]: *** [/usr/src/dahdi/drivers/dahdi/dahdi-base.o] Error 1
make[1]: *** [_module_/usr/src/dahdi/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686'
make: *** [modules] Error 2


--
Thanks,
--Warren Selby
http://www.selbytech.com
-------------- next part --------------
An HTML attachment was scrubbed...