keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about B100/200/400/800 ISDN BRI Cards

Openvox B800P - Error compiling mISDN v2 on kernel 2.6.29.3

14 years 11 months ago #3172 by pastoreerrante
Hi all,

I'm trying to setup new mISDN v2 drivers on CentOS 5.3, in order to use
an Openvox B800P card.

I followed this guide: OpenVox B200P User Manual for mISDN(v2) -
http://wiki.openvox.cn/index.php/OpenVox_B200P_User_Manual_for_mISDN(v2 )
So I rebuilt the last stable kernel, no problem.

But when I tried to compile mISDN, I received this error:
#################################################################################

[trixbox1.localdomain mISDN]# pwd
/usr/src/mISDN
[trixbox1.localdomain mISDN]# make
echo 1_2_0 > VERSION ; \
export LINUX=/lib/modules/2.6.29.3/build; ./makelib.sh test_old_misdn
cp /usr/src/mISDN/drivers/isdn/hardware/mISDN/Makefile.v2.6 /usr/src/mISDN/drivers/isdn/hardware/mISDN/Makefile
cp /usr/src/mISDN/drivers/isdn/mISDN/Makefile.v2.6 /usr/src/mISDN/drivers/isdn/mISDN/Makefile
export MINCLUDES=/usr/src/mISDN/include ; export MISDNVERSION=1_2_0;
make -C /lib/modules/2.6.29.3/build
SUBDIRS=/usr/src/mISDN/drivers/isdn/mISDN modules CONFIG_MISDN_DSP=m
CONFIG_MISDN_MEMDEBUG=y CONFIG_MISDN_HFCMULTI=m CONFIG_MISDN_HFCPCI=m
CONFIG_MISDN_HFCUSB=m CONFIG_MISDN_XHFC=m CONFIG_MISDN_L1OIP=m
CONFIG_MISDN_L1LOOP=m CONFIG_MISDN=m
make[1]: Entering directory `/usr/src/linux-2.6.29.3'
Building modules, stage 2.
MODPOST 10 modules
make[1]: Leaving directory `/usr/src/linux-2.6.29.3'
cp /usr/src/mISDN/drivers/isdn/mISDN/Module.symvers /usr/src/mISDN/drivers/isdn/hardware/mISDN
export MINCLUDES=/usr/src/mISDN/include ; export MISDNVERSION=1_2_0;
make -C /lib/modules/2.6.29.3/build
SUBDIRS=/usr/src/mISDN/drivers/isdn/hardware/mISDN modules
CONFIG_MISDN_DSP=m CONFIG_MISDN_MEMDEBUG=y CONFIG_MISDN_HFCMULTI=m
CONFIG_MISDN_HFCPCI=m CONFIG_MISDN_HFCUSB=m CONFIG_MISDN_XHFC=m
CONFIG_MISDN_L1OIP=m CONFIG_MISDN_L1LOOP=m CONFIG_MISDN=m
make[1]: Entering directory `/usr/src/linux-2.6.29.3'
CC [M] /usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.o
/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.c: In function
‘setup_embedded’:
/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.c:4486: error:
‘immap_t’ undeclared (first use in this function)
/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.c:4486: error: (Each
undeclared identifier is reported only once
/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.c:4486: error: for
each function it appears in.)
/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.c:4486: error:
expected expression before ‘)’ token
make[2]: *** [/usr/src/mISDN/drivers/isdn/hardware/mISDN/hfcmulti.o]
Error 1
make[1]: *** [_module_/usr/src/mISDN/drivers/isdn/hardware/mISDN] Error
2
make[1]: Leaving directory `/usr/src/linux-2.6.29.3'
make: *** [all] Error 2

########################################################################

The problem seems related to the patched hfcmulti.c I downloaded from http://www.openvox.cn/viewvc/misdn/trunk/mISDN_2.0/hfcmulti.c?view=log

I replaced the original hfcmulti.c with the revision 102 of hfcmulti, but it seems bugged, or maybe the revision I used is the wrong one.

How can I solve this?

Thank you - Kind regards

Daniele
14 years 11 months ago #3188 by james.zhu
hello,
I do not which version of mISDN v2 are you using? please check the hfcmulti.h, you missed that(immap_t)!
james.zhu

14 years 11 months ago #3198 by pastoreerrante
Hi James, I downloaded mISDN V2 from here: http://www.colognechip.com/download/mISDN/socket/mISDN.tar.gz

The link is on the misdn.org v2 download page, but the version is not specified.

I checked the hfcmulti.h file and, as you said, it doesn't contain any "immap_t".

Which version of mISDN V2 did you precisely use for the guide "OpenVox B200P User Manual for mISDN(v2)"? do you know where I can download it?

Thank you very much - Daniele
14 years 11 months ago #3200 by james.zhu
yes,i used the same link you downloaded. please download the h file and check again.
james.zhu

Attachments:
14 years 11 months ago #3202 by pastoreerrante
Thank for the prompt reply. I changed the 2.6.29.3 kernel with the 2.6.28.8 version, the same you used for the test.

I replaced the orginal hfc_multi.h file with the one you provide me, but now I receive these errors:

#############################################################################
[trixbox1.localdomain mISDN]# make
echo 1_2_0 > VERSION ; \

export LINUX=/lib/modules/2.6.28.8/build; ./makelib.sh test_old_misdn
cp /usr/src/mISDN/drivers/isdn/hardware/mISDN/Makefile.v2.6 /usr/src/mISDN/drivers/isdn/hardware/mISDN/Makefile
cp /usr/src/mISDN/drivers/isdn/mISDN/Makefile.v2.6 /usr/src/mISDN/drivers/isdn/mISDN/Makefile
export MINCLUDES=/usr/src/mISDN/include ; export MISDNVERSION=1_2_0; make -C /lib/modules/2.6.28.8/build SUBDIRS=/usr/src/mISDN/drivers/isdn/mISDN modules CONFIG_MISDN_DSP=m CONFIG_MISDN_MEMDEBUG=y CONFIG_MISDN_HFCMULTI=m CONFIG_MISDN_HFCPCI=m CONFIG_MISDN_HFCUSB=m CONFIG_MISDN_XHFC=m CONFIG_MISDN_L1OIP=m CONFIG_MISDN_L1LOOP=m CONFIG_MISDN=m
make[1]: Entering directory `/usr/src/linux-2.6.28.8'
CC [M] /usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.o
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c: In function âchannel_dctrlâ:
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c:973: error: âMISDN_CTRL_GETPEERâ undeclared (first use in this function)
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c:973: error: (Each undeclared identifier is reported only once
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c:973: error: for each function it appears in.)
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c: In function âinit_cardâ:
/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.c:1450: error: too many arguments to function âmISDN_register_deviceâ
make[2]: *** [/usr/src/mISDN/drivers/isdn/mISDN/l1oip_core.o] Error 1
make[1]: *** [_module_/usr/src/mISDN/drivers/isdn/mISDN] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28.8'
make: *** [all] Error 2
######################################################################################################

A question (maybe stupid): during the kernel recompilation process, do I need to enable the mISDN support (building it as a module) or this is not required?

Regards - Daniele
14 years 11 months ago #3203 by james.zhu
hello,
I think you misses something in the file. you have to try to download the new zip files.
james.zhu

Time to create page: 0.050 seconds
Powered by Kunena Forum