Re: Building mISDNv2 possible on CentOS 5.8?

Patrick Lists <misdn-list-tT6WbRwY5jipaK3yNG/KFWZHpeb/A1Y/@public.gmane.org>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
On 25-07-12 17:31, Patrick Lists wrote:
> Hi Karsten,
>
> On 25-07-12 11:29, Karsten Keil wrote:
>> The oldes supported kernel version was 2.6.19, but it was
>> not so hard to extend it to 2.6.18 - compile tested only.
>>
>> So please try again after git pull :-)
>
> Wow that is very cool :-) Thank you very much! I will update, give it a
> try and report back.

No joy. I guess you used a vanilla 2.6.18 kernel which is different from 
the Red Hat/CentOS 2.6.18-308.11.1.el5-i686 kernel with its backported 
stuff.

Here's the error:

Apply 
linux-2.6.git-5d76fc219ce38a226314436563f6b9d405bb6db1_export.patch : 
opts=-R
patching file drivers/isdn/mISDN/clock.c
patching file drivers/isdn/mISDN/dsp_audio.c
patching file drivers/isdn/mISDN/dsp_pipeline.c
patching file drivers/isdn/mISDN/socket.c
Apply linux-2.6.git-0d26aa704e5bbca5a1ee9fdf0d02277ceb507eee.patch : opts=-R
patching file drivers/isdn/mISDN/hwchannel.c
Hunk #1 succeeded at 111 (offset 1 line).
Hunk #2 succeeded at 144 (offset 1 line).
patching file drivers/isdn/mISDN/l1oip_core.c
Apply 0857-net-pass-kern-to-net_proto_family-create-function.patch : opts=-R
patching file drivers/isdn/mISDN/socket.c
Hunk #1 succeeded at 787 (offset 8 lines).
Apply 0859-net-mark-net_proto_ops-as-const.patch : opts=-R
patching file drivers/isdn/mISDN/socket.c
Hunk #1 succeeded at 817 (offset 9 lines).
Apply 0858-net-Make-setsockopt-optlen-be-unsigned.patch : opts=-R
patching file drivers/isdn/mISDN/socket.c
Hunk #1 succeeded at 418 (offset 3 lines).
Apply linux-2.6.git-020f01ebd04f3429c32586d90598c9f59e54ca7d.patch : opts=-R
patching file drivers/isdn/mISDN/layer1.c
Hunk #1 succeeded at 101 (offset 2 lines).
patching file drivers/isdn/mISDN/layer2.c
Hunk #1 succeeded at 99 (offset 4 lines).
patching file drivers/isdn/mISDN/tei.c
Apply Fix_class_find_device_class_for_each_device : opts=
patching file drivers/isdn/mISDN/core.c
Hunk #1 succeeded at 186 (offset 1 line).
Apply Add_AF_ISDN : opts=
patching file include/linux/mISDNif_s.h
Hunk #1 succeeded at 286 (offset 13 lines).
Apply class_device-is-gone : opts=
patching file drivers/isdn/mISDN/dsp_pipeline.c
Hunk #1 succeeded at 43 (offset 1 line).
Hunk #3 succeeded at 96 (offset 1 line).
Hunk #5 succeeded at 124 (offset 1 line).
Hunk #7 succeeded at 156 (offset 1 line).
Apply 0735-mISDN-Say-hello-to-sys-class-mISDN.patch : opts=
patching file drivers/isdn/mISDN/core.c
Hunk #1 succeeded at 26 (offset 1 line).
Hunk #3 succeeded at 78 (offset 1 line).
Hunk #5 succeeded at 110 (offset 1 line).
Hunk #6 succeeded at 227 (offset 16 lines).
Hunk #7 succeeded at 242 (offset 1 line).
patching file drivers/isdn/mISDN/l1oip_core.c
Hunk #1 succeeded at 1437 (offset 1 line).
patching file drivers/isdn/mISDN/layer1.c
Hunk #1 succeeded at 104 (offset 3 lines).
patching file drivers/isdn/mISDN/socket.c
Hunk #1 succeeded at 401 (offset 3 lines).
Hunk #2 succeeded at 683 (offset 5 lines).
Hunk #3 succeeded at 697 (offset 3 lines).
patching file drivers/isdn/mISDN/stack.c
Hunk #3 succeeded at 207 with fuzz 1 (offset -6 lines).
Hunk #5 succeeded at 286 (offset -6 lines).
Hunk #7 succeeded at 401 (offset -6 lines).
Hunk #9 succeeded at 465 (offset -6 lines).
Hunk #11 succeeded at 573 (offset -6 lines).
patching file drivers/isdn/mISDN/tei.c
Hunk #1 succeeded at 987 (offset 14 lines).
patching file include/linux/mISDNif_s.h
Hunk #1 succeeded at 528 (offset 35 lines).
patching file drivers/isdn/mISDN/core.c
Apply Revert_2.6.24_changes : opts=
patching file drivers/isdn/mISDN/socket.c
Hunk #1 succeeded at 609 (offset 7 lines).
Hunk #2 succeeded at 757 (offset 1 line).
Hunk #3 succeeded at 786 (offset 7 lines).
Hunk #4 succeeded at 801 (offset 2 lines).
patching file include/linux/mISDNif_s.h
Hunk #1 succeeded at 625 with fuzz 2 (offset 36 lines).
Apply Revert_2.6.22_changes : opts=
patching file drivers/isdn/hardware/mISDN/mISDNipac.c
Hunk #1 succeeded at 24 with fuzz 1 (offset 2 lines).
patching file drivers/isdn/mISDN/dsp_core.c
Hunk #1 succeeded at 971 (offset 1 line).
patching file drivers/isdn/mISDN/hwchannel.c
Hunk #1 succeeded at 402 (offset 4 lines).
patching file include/linux/mISDNif_s.h
Hunk #1 succeeded at 629 with fuzz 1 (offset 35 lines).
Apply Revert_2.6.21_changes : opts=
patching file drivers/isdn/hardware/mISDN/hfcmulti.c
Hunk #1 succeeded at 5656 (offset 321 lines).
patching file drivers/isdn/mISDN/fsm.h
Apply Revert_2.6.20_changes : opts=
patching file drivers/isdn/mISDN/dsp_core.c
Hunk #1 succeeded at 1064 (offset 1 line).
patching file drivers/isdn/mISDN/hwchannel.c
Hunk #1 succeeded at 75 (offset 1 line).
Hunk #2 succeeded at 92 (offset 1 line).
patching file drivers/isdn/mISDN/l1oip_core.c
Hunk #1 succeeded at 1517 (offset 1 line).
Apply linux-2.6.git-bc10502dba37d3b210efd9f3867212298f13b78e.patch : opts=-R
patching file include/linux/mISDNif_s.h
Hunk #1 succeeded at 264 (offset 13 lines).
Apply linux-2.6.git-b8176a3f7a4e54a3338535e8c6086713d1c0b804_vd1.patch : 
opts=-R
patching file drivers/isdn/hardware/mISDN/hfcpci.c
Hunk #1 succeeded at 2183 (offset -5 lines).
Apply linux-2.6.git-d930d1a142af07f25c5cbf33aeea6ebbd25315ce_vd2.patch : 
opts=-R
patching file drivers/isdn/hardware/mISDN/mISDNinfineon.c
Hunk #1 succeeded at 126 (offset 1 line).
Apply linux-2.6.git-9db9f279be5e663ae0de8b3349f07b38b18e9215_vd3.patch : 
opts=-R
patching file drivers/isdn/hardware/mISDN/hfcmulti.c
Hunk #1 succeeded at 5789 (offset 435 lines).
Apply Revert_2.6.19_changes : opts=
patching file drivers/isdn/hardware/mISDN/avmfritz.c
patching file drivers/isdn/hardware/mISDN/hfcmulti.c
patching file drivers/isdn/hardware/mISDN/hfcpci.c
patching file drivers/isdn/hardware/mISDN/mISDNinfineon.c
patching file drivers/isdn/hardware/mISDN/netjet.c
patching file drivers/isdn/hardware/mISDN/speedfax.c
patching file drivers/isdn/hardware/mISDN/w6692.c
patching file drivers/isdn/hardware/mISDN/xhfc_su.c
patching file drivers/isdn/hardware/mISDN/xhfc_su.h
patching file include/linux/mISDNif_s.h
rm -f mISDN.cfg.D
rm -f mISDN.cfg.M
enable CONFIG_MISDN
enable CONFIG_MISDN_DSP
enable CONFIG_MISDN_L1OIP
enable CONFIG_MISDN_HFCPCI
enable CONFIG_MISDN_HFCMULTI
disable CONFIG_MISDN_HFCMULTI_8xx
enable CONFIG_MISDN_HFCUSB
enable CONFIG_MISDN_XHFC
enable CONFIG_MISDN_AVMFRITZ
enable CONFIG_MISDN_SPEEDFAX
enable CONFIG_MISDN_INFINEON
enable CONFIG_MISDN_W6692
disable CONFIG_MISDN_NETJET
enable CONFIG_MISDN_IPAC
enable CONFIG_MISDN_ISAR
enable CONFIG_MISDN_L1LOOP
make modules_
make[2]: Entering directory `/usr/src/mISDN.git/standalone'
rm -f modules
export MISDN_INC=/usr/src/mISDN.git/standalone/include; export 
MISDN_CFLAGS="-D_MCONFIG_MISDN -D_MCONFIG_MISDN_DSP 
-D_MCONFIG_MISDN_L1OIP -D_MCONFIG_MISDN_HFCPCI -D_MCONFIG_MISDN_HFCMULTI 
-D_MCONFIG_MISDN_HFCUSB -D_MCONFIG_MISDN_XHFC -D_MCONFIG_MISDN_AVMFRITZ 
-D_MCONFIG_MISDN_SPEEDFAX -D_MCONFIG_MISDN_INFINEON 
-D_MCONFIG_MISDN_W6692 -D_MCONFIG_MISDN_IPAC -D_MCONFIG_MISDN_ISAR 
-D_MCONFIG_MISDN_L1LOOP"; make -C 
/usr/src/kernels/2.6.18-308.11.1.el5-i686  _MCONFIG_MISDN=m 
_MCONFIG_MISDN_DSP=m _MCONFIG_MISDN_L1OIP=m _MCONFIG_MISDN_HFCPCI=m 
_MCONFIG_MISDN_HFCMULTI=m _MCONFIG_MISDN_HFCUSB=m _MCONFIG_MISDN_XHFC=m 
_MCONFIG_MISDN_AVMFRITZ=m _MCONFIG_MISDN_SPEEDFAX=m 
_MCONFIG_MISDN_INFINEON=m _MCONFIG_MISDN_W6692=m _MCONFIG_MISDN_IPAC=m 
_MCONFIG_MISDN_ISAR=m _MCONFIG_MISDN_L1LOOP=m 
SUBDIRS=/usr/src/mISDN.git/standalone/drivers/isdn/mISDN modules
make[3]: Entering directory `/usr/src/kernels/2.6.18-308.11.1.el5-i686'
   CC [M]  /usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.o
In file included from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:228:
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:620: error: 
conflicting types for 'dev_name'
include/linux/device.h:408: error: previous definition of 'dev_name' was 
here
In file included from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:228:
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:629:1: warning: 
"pr_notice" redefined
In file included from include/asm/system.h:4,
                  from include/asm/processor.h:18,
                  from include/asm/thread_info.h:16,
                  from include/linux/thread_info.h:21,
                  from include/linux/preempt.h:9,
                  from include/linux/spinlock.h:49,
                  from include/linux/capability.h:45,
                  from include/linux/sched.h:44,
                  from include/linux/module.h:9,
                  from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:226:
include/linux/kernel.h:303:1: warning: this is the location of the 
previous definition
In file included from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:228:
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:630:1: warning: 
"pr_err" redefined
In file included from include/asm/system.h:4,
                  from include/asm/processor.h:18,
                  from include/asm/thread_info.h:16,
                  from include/linux/thread_info.h:21,
                  from include/linux/preempt.h:9,
                  from include/linux/spinlock.h:49,
                  from include/linux/capability.h:45,
                  from include/linux/sched.h:44,
                  from include/linux/module.h:9,
                  from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:226:
include/linux/kernel.h:298:1: warning: this is the location of the 
previous definition
In file included from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:228:
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:631:1: warning: 
"pr_warning" redefined
In file included from include/asm/system.h:4,
                  from include/asm/processor.h:18,
                  from include/asm/thread_info.h:16,
                  from include/linux/thread_info.h:21,
                  from include/linux/preempt.h:9,
                  from include/linux/spinlock.h:49,
                  from include/linux/capability.h:45,
                  from include/linux/sched.h:44,
                  from include/linux/module.h:9,
                  from 
/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.c:226:
include/linux/kernel.h:300:1: warning: this is the location of the 
previous definition
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:634: error: 
redeclaration of enumerator 'DUMP_PREFIX_NONE'
include/linux/kernel.h:274: error: previous definition of 
'DUMP_PREFIX_NONE' was here
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:635: error: 
redeclaration of enumerator 'DUMP_PREFIX_ADDRESS'
include/linux/kernel.h:275: error: previous definition of 
'DUMP_PREFIX_ADDRESS' was here
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:637: error: 
redeclaration of enumerator 'DUMP_PREFIX_OFFSET'
include/linux/kernel.h:277: error: previous definition of 
'DUMP_PREFIX_OFFSET' was here
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:643: error: 
conflicting types for 'print_hex_dump'
include/linux/kernel.h:283: error: previous declaration of 
'print_hex_dump' was here
/usr/src/mISDN.git/standalone/include/linux/mISDNif_s.h:645: error: 
conflicting types for 'print_hex_dump_bytes'
include/linux/kernel.h:285: error: previous declaration of 
'print_hex_dump_bytes' was here
make[4]: *** 
[/usr/src/mISDN.git/standalone/drivers/isdn/mISDN/l1oip_core.o] Error 1


Regards,
Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.