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?<br>
<br>The 'make' output:<br><br>dahdi]# make<br>make -C drivers/dahdi/firmware firmware-loaders<br>make[1]:
Entering directory `/usr/src/dahdi/drivers/dahdi/<div id=":aa" class="ii gt">firmware'<br>make[1]:
Leaving directory `/usr/src/dahdi/drivers/dahdi/firmware'<br>
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<br>make[1]:
Entering directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686'<br>
CC [M] /usr/src/dahdi/drivers/dahdi/dahdi-base.o<br>In file
included from include/linux/spinlock.h:8,<br> from
include/linux/capability.h:45,<br> from
include/linux/sched.h:44,<br> from
include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/config.h:6:2:
warning: #warning Including config.h is deprecated.<br>In file included
from include/linux/spinlock.h:39,<br> from
include/linux/capability.h:45,<br>
from include/linux/sched.h:44,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/asm/spinlock.h:60:
error: expected â)â before â*â token<br>
include/asm/spinlock.h:71: error: expected â)â before â*â token<br>include/asm/spinlock.h:77:
error: expected â)â before â*â token<br>include/asm/spinlock.h:115:
error: expected â)â before â*â token<br>include/asm/spinlock.h:162:
error: expected â)â before â*â token<br>
include/asm/spinlock.h:167: error: expected â)â before â*â token<br>include/asm/spinlock.h:172:
error: expected â)â before â*â token<br>include/asm/spinlock.h:182:
error: expected â)â before â*â token<br>include/asm/spinlock.h:191:
error: expected â)â before â*â token<br>
include/asm/spinlock.h:196: error: expected â)â before â*â token<br>In
file included from include/linux/capability.h:45,<br>
from include/linux/sched.h:44,<br> from
include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/spinlock.h:43:
error: expected â)â before â*â token<br>include/linux/spinlock.h:44:
error: expected â)â before â*â token<br>include/linux/spinlock.h:45:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:46: error: expected â)â before â*â token<br>include/linux/spinlock.h:47:
error: expected â)â before â*â token<br>include/linux/spinlock.h:48:
error: expected â)â before â*â token<br>include/linux/spinlock.h:49:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:50: error: expected â)â before â*â token<br>include/linux/spinlock.h:51:
error: expected â)â before â*â token<br>include/linux/spinlock.h:52:
error: expected â)â before â*â token<br>include/linux/spinlock.h:53:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:54: error: expected â)â before â*â token<br>include/linux/spinlock.h:55:
error: expected â)â before â*â token<br>include/linux/spinlock.h:56:
error: expected â)â before â*â token<br>include/linux/spinlock.h:57:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:58: error: expected â)â before â*â token<br>include/linux/spinlock.h:59:
error: expected â)â before â*â token<br>include/linux/spinlock.h:60:
error: expected â)â before â*â token<br>include/linux/spinlock.h:61:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:62: error: expected â)â before â*â token<br>include/linux/spinlock.h:63:
error: expected â)â before â*â token<br>include/linux/spinlock.h:64:
error: expected â)â before â*â token<br>include/linux/spinlock.h:65:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:66: error: expected â)â before â*â token<br>include/linux/spinlock.h:67:
error: expected â)â before â*â token<br>include/linux/spinlock.h:68:
error: expected â)â before â*â token<br>include/linux/spinlock.h:69:
error: expected â)â before â*â token<br>
include/linux/spinlock.h:70: error: expected â)â before â*â token<br>include/linux/spinlock.h:477:
error: expected declaration specifiers or â...â before âspinlock_tâ<br>In
file included from include/linux/time.h:7,<br> from
include/linux/timex.h:57,<br>
from include/linux/sched.h:48,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/seqlock.h:34:
error: expected specifier-qualifier-list before âspinlock_tâ<br>
include/linux/seqlock.h: In function âwrite_seqlockâ:<br>include/linux/seqlock.h:62:
error: implicit declaration of function â_spin_lockâ<br>include/linux/seqlock.h:62:
error: âseqlock_tâ has no member named âlockâ<br>include/linux/seqlock.h:
In function âwrite_sequnlockâ:<br>
include/linux/seqlock.h:71: error: implicit declaration of function
â_spin_unlockâ<br>include/linux/seqlock.h:71: error: âseqlock_tâ has no
member named âlockâ<br>include/linux/seqlock.h: In function
âwrite_tryseqlockâ:<br>
include/linux/seqlock.h:76: error: implicit declaration of function
â_spin_trylockâ<br>include/linux/seqlock.h:76: error: âseqlock_tâ has no
member named âlockâ<br>In file included from
include/asm/semaphore.h:41,<br> from
include/linux/sched.h:57,<br>
from include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/wait.h:
At top level:<br>include/linux/wait.h:51: error: expected
specifier-qualifier-list before âspinlock_tâ<br>
include/linux/wait.h: In function âwaitqueue_activeâ:<br>include/linux/wait.h:108:
error: âwait_queue_head_tâ has no member named âtask_listâ<br>include/linux/wait.h:
In function â__add_wait_queueâ:<br>include/linux/wait.h:126: error:
âwait_queue_head_tâ has no member named âtask_listâ<br>
include/linux/wait.h: In function â__add_wait_queue_tailâ:<br>include/linux/wait.h:135:
error: âwait_queue_head_tâ has no member named âtask_listâ<br>In file
included from include/linux/rwsem.h:24,<br> from
include/asm/semaphore.h:42,<br>
from include/linux/sched.h:57,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/asm/rwsem.h:
At top level:<br>include/asm/rwsem.h:63: error: expected
specifier-qualifier-list before âspinlock_tâ<br>
In file included from include/linux/sem.h:4,<br> from
include/linux/sched.h:64,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/ipc.h:59: error: expected specifier-qualifier-list before
âspinlock_tâ<br>In file included from include/linux/sched.h:64,<br>
from include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/sem.h:133: error: expected specifier-qualifier-list before
âspinlock_tâ<br>In file included from include/linux/sched.h:67,<br>
from include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/fs_struct.h:9: error: expected specifier-qualifier-list
before ârwlock_tâ<br>In file included from include/linux/gfp.h:4,<br>
from include/linux/slab.h:14,<br> from
include/linux/percpu.h:4,<br>
from include/linux/rcupdate.h:41,<br>
from include/linux/pid.h:4,<br> from
include/linux/sched.h:71,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/mmzone.h:166: error: expected specifier-qualifier-list
before âspinlock_tâ<br>In file included from include/linux/mutex.h:14,<br>
from include/linux/notifier.h:13,<br> from
include/linux/memory_hotplug.h:7,<br>
from include/linux/mmzone.h:339,<br>
from include/linux/gfp.h:4,<br> from
include/linux/slab.h:14,<br> from
include/linux/percpu.h:4,<br> from
include/linux/rcupdate.h:41,<br>
from include/linux/pid.h:4,<br> from
include/linux/sched.h:71,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/spinlock_types.h:91:1: warning: "DEFINE_SPINLOCK"
redefined<br>In file included from include/linux/capability.h:45,<br>
from include/linux/sched.h:44,<br> from
include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/spinlock.h:406:1:
warning: this is the location of the previous definition<br>In file
included from include/linux/mutex.h:14,<br> from
include/linux/notifier.h:13,<br>
from include/linux/memory_hotplug.h:7,<br>
from include/linux/mmzone.h:339,<br> from
include/linux/gfp.h:4,<br> from include/linux/slab.h:14,<br>
from include/linux/percpu.h:4,<br>
from include/linux/rcupdate.h:41,<br>
from include/linux/pid.h:4,<br> from
include/linux/sched.h:71,<br> from
include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>
include/linux/spinlock_types.h:92:1: warning: "DEFINE_RWLOCK"
redefined<br>In file included from include/linux/capability.h:45,<br>
from include/linux/sched.h:44,<br> from
include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/spinlock.h:407:1:
warning: this is the location of the previous definition<br>In file
included from include/linux/gfp.h:4,<br> from
include/linux/slab.h:14,<br>
from include/linux/percpu.h:4,<br> from
include/linux/rcupdate.h:41,<br> from
include/linux/pid.h:4,<br> from
include/linux/sched.h:71,<br> from
include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/mmzone.h:
In function âpopulated_zoneâ:<br>include/linux/mmzone.h:374: error:
âstruct zoneâ has no member named âpresent_pagesâ<br>include/linux/mmzone.h:
In function âis_highmemâ:<br>
include/linux/mmzone.h:395: error: âstruct zoneâ has no member named
âzone_pgdatâ<br>include/linux/mmzone.h: In function âis_normalâ:<br>include/linux/mmzone.h:400:
error: âstruct zoneâ has no member named âzone_pgdatâ<br>
include/linux/mmzone.h: In function âis_dma32â:<br>include/linux/mmzone.h:405:
error: âstruct zoneâ has no member named âzone_pgdatâ<br>include/linux/mmzone.h:
In function âis_dmaâ:<br>include/linux/mmzone.h:410: error: âstruct
zoneâ has no member named âzone_pgdatâ<br>
In file included from include/linux/slab.h:14,<br> from
include/linux/percpu.h:4,<br> from
include/linux/rcupdate.h:41,<br> from
include/linux/pid.h:4,<br> from
include/linux/sched.h:71,<br>
from include/linux/module.h:9,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/gfp.h:
In function âalloc_pages_thisnodeâ:<br>include/linux/gfp.h:134: error:
âstruct zoneâ has no member named âzone_pgdatâ<br>
include/linux/gfp.h:143: error: âstruct zoneâ has no member named
âzone_pgdatâ<br>In file included from include/linux/module.h:9,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:40:<br>include/linux/sched.h:
In function âdequeue_signal_lockâ:<br>
include/linux/sched.h:1326: error: implicit declaration of function
â_spin_lock_irqsaveâ<br>include/linux/sched.h:1328: error: implicit
declaration of function â_spin_unlock_irqrestoreâ<br>In file included
from include/asm/pci.h:32,<br>
from include/linux/pci.h:804,<br> from
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:42:<br>include/linux/mm.h:
In function âpage_to_nidâ:<br>include/linux/mm.h:534: error: âstruct
zoneâ has no member named âzone_pgdatâ<br>
In file included from include/linux/mm.h:568,<br> from
include/asm/pci.h:32,<br> from include/linux/pci.h:804,<br>
from /usr/src/dahdi/drivers/dahdi/dahdi-base.c:42:<br>include/linux/vmstat.h:
In function âzone_page_state_addâ:<br>
include/linux/vmstat.h:89: error: âstruct zoneâ has no member named
âvm_statâ<br>include/linux/vmstat.h: In function âzone_page_stateâ:<br>include/linux/vmstat.h:106:
error: âstruct zoneâ has no member named âvm_statâ<br>
include/linux/vmstat.h: In function âzap_zone_vm_statsâ:<br>include/linux/vmstat.h:157:
error: âstruct zoneâ has no member named âvm_statâ<br>include/linux/vmstat.h:157:
error: âstruct zoneâ has no member named âvm_statâ<br>
include/linux/vmstat.h:157: error: âstruct zoneâ has no member named
âvm_statâ<br>include/linux/vmstat.h:157: error: âstruct zoneâ has no
member named âvm_statâ<br>include/linux/vmstat.h:157: error: âstruct
zoneâ has no member named âvm_statâ<br>
include/linux/vmstat.h:157: error: âstruct zoneâ has no member named
âvm_statâ<br>include/linux/vmstat.h:157: error: âstruct zoneâ has no
member named âvm_statâ<br>include/linux/vmstat.h:157: error: âstruct
zoneâ has no member named âvm_statâ<br>
include/linux/vmstat.h:157: error: âstruct zoneâ has no member named
âvm_statâ<br>include/linux/vmstat.h:157: error: âstruct zoneâ has no
member named âvm_statâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:
In function âdahdi_register_echocan_factoryâ:<br>
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:406: error: implicit
declaration of function â_write_lockâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:411:
error: implicit declaration of function â_write_unlockâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:
In function âfind_echocanâ:<br>
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1129: error: implicit
declaration of function â_read_lockâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1134:
error: implicit declaration of function â_read_unlockâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:
In function âdahdi_chan_regâ:<br>
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1496: error: implicit
declaration of function âspin_lock_initâ<br>/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1506:
error: implicit declaration of function â_write_lock_irqsaveâ<br>
/usr/src/dahdi/drivers/dahdi/dahdi-base.c:1515: error: implicit
declaration of function â_write_unlock_irqrestoreâ<br>make[2]: ***
[/usr/src/dahdi/drivers/dahdi/dahdi-base.o] Error 1<br>make[1]: ***
[_module_/usr/src/dahdi/drivers/dahdi] Error 2<br>
make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.11.1.el5-i686'<br>make:
*** [modules] Error 2</div><br clear="all"><br>-- <br>Thanks,<br>--Warren Selby<br><a href="http://www.selbytech.com">http://www.selbytech.com</a><br>
<div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>