[Asterisk-Users] Problem adding zaprtc to Asterisk CVS on debian sarge

Sebastian Mauer maui at areacube.de
Wed Nov 10 12:51:39 MST 2004


Hello there,
I'm still new to Asterisk and until today i did not even know that 
Asterisk needs a timing source for correct use of MeetMe and MOH.
So I looked after ztdummy (but I found out that I have USB-OHCI instead 
of UHCI) and came finally to zaprtc

But there the trouble starts

I fetched all zaptel, and asterisk from CVS, and put zaptrtc in the 
right directory:

Making zaprtc:
trinity:/usr/local/src/zaptelrtc# make
cc -c zaprtc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-fomit-frame-pointer -O2 -Wall -I/usr/src/linux/include -I../zaptel 
-Wall -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h
In file included from /usr/src/linux/include/linux/spinlock.h:6,
                 from /usr/src/linux/include/linux/module.h:12,
                 from zaprtc.c:60:
/usr/src/linux/include/asm/system.h: In Funktion »__set_64bit_var«:
/usr/src/linux/include/asm/system.h:192: Warnung: dereferencing 
type-punned pointer will break strict-aliasing rules
/usr/src/linux/include/asm/system.h:192: Warnung: dereferencing 
type-punned pointer will break strict-aliasing rules
gcc -s -Wall -Wstrict-prototypes rtctest.c -o rtctest
rtctest.c: In Funktion »main«:
rtctest.c:30: Warnung: implicit declaration of function `exit'
gcc -s -Wall -Wstrict-prototypes rtcsetup.c -o rtcsetup
rtcsetup.c: In Funktion »main«:
rtcsetup.c:31: Warnung: implicit declaration of function `exit'
rtcsetup.c:23: Warnung: unused variable `i'
rtcsetup.c:23: Warnung: unused variable `irqcount'
rtcsetup.c:24: Warnung: unused variable `tmp'
rtcsetup.c:24: Warnung: unused variable `data'
rtcsetup.c:25: Warnung: unused variable `rtc_tm'
sync

And now I try to activate it finally with make load:
trinity:/usr/local/src/zaptelrtc# make load
sync
modprobe zaptel
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
create_proc_entry_R6f790657
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
remove_proc_entry_R96e689cb
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
register_chrdev_Rbe900e0b
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
proc_mkdir_R8be6b1b2
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
add_wait_queue_Rd4158ead
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
remove_wait_queue_R93e76632
/lib/modules/2.4.27-1-386/misc/zaptel.o: 
/lib/modules/2.4.27-1-386/misc/zaptel.o: unresolved symbol 
__pollwait_R8701678a
/lib/modules/2.4.27-1-386/misc/zaptel.o: insmod 
/lib/modules/2.4.27-1-386/misc/zaptel.o failed
/lib/modules/2.4.27-1-386/misc/zaptel.o: insmod zaptel failed
make: *** [load] Fehler 255

I don't know what to do, but I hope someone here on this maillist can 
help me.
By the way, YES rtc is disabled as told in the zaptrtc README, it's a 
2.4.27 baked by myself

Thanks in Advance,
and excuse my bad English ;)

Sebastian Mauer



More information about the asterisk-users mailing list