• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: fbrcapi module compiling problems  (Read 1289 times)
elbling
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: June 08, 2010, 12:35:15 PM »

Hi folks,
I wanted to use a remote CAPI in combination with a AVM-FritzBox to have ISDN access in asterisk via LAN.

There is a kernel module that runs fine under x86:
http://fbrcapi.v3v.de/fbrcapi.html

I have used the newest version via svn:

Code:
svn co http://svn.v3v.de/svn/fbrcapi/trunk/ fbrcapi-0.5

If I try to compile, there is a lot of complains about missing definitions:

Code:
root@guru:/tmp/fbrcapi-0.5# make
make -C /usr/src/linux-headers-`uname -r` M=/tmp/fbrcapi-0.5 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.33.3flipflip'
  CC [M]  /tmp/fbrcapi-0.5/core.o
In file included from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/page.h:201,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /tmp/fbrcapi-0.5/core.c:24:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:18:25: error: mach/memory.h: No such file or directory
In file included from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/page.h:201,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /tmp/fbrcapi-0.5/core.c:24:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h: In function 'virt_to_phys':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:181: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:181: error: (Each undeclared identifier is reported only once
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:181: error: for each function it appears in.)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h: In function 'phys_to_virt':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:186: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h: In function 'virt_to_bus':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:211: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h: In function 'bus_to_virt':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/memory.h:216: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/timex.h:173,
                 from include/linux/jiffies.h:8,
                 from include/linux/ktime.h:25,
                 from include/linux/timer.h:5,
                 from include/linux/workqueue.h:8,
                 from include/linux/slub_def.h:11,
                 from include/linux/slab.h:162,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/local.h:1,
                 from include/linux/module.h:20,
                 from /tmp/fbrcapi-0.5/core.c:24:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/timex.h:15:24: error: mach/timex.h: No such file or directory
In file included from include/linux/ktime.h:25,
                 from include/linux/timer.h:5,
                 from include/linux/workqueue.h:8,
                 from include/linux/slub_def.h:11,
                 from include/linux/slab.h:162,
                 from include/linux/percpu.h:5,
                 from include/asm-generic/local.h:4,
                 from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/local.h:1,
                 from include/linux/module.h:20,
                 from /tmp/fbrcapi-0.5/core.c:24:
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:257:31: error: division by zero in #if
include/linux/jiffies.h:257:31: error: division by zero in #if
In file included from include/asm-generic/local.h:4,
                 from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/local.h:1,
                 from include/linux/module.h:20,
                 from /tmp/fbrcapi-0.5/core.c:24:
include/linux/percpu.h: In function 'per_cpu_ptr_to_phys':
include/linux/percpu.h:161: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/mm.h:39,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/pgtable.h:23:26: error: mach/vmalloc.h: No such file or directory
In file included from include/linux/mm.h:39,
                 from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/pgtable.h: In function 'pmd_page_vaddr':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/pgtable.h:350: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
include/linux/mm.h: In function 'is_vmalloc_addr':
include/linux/mm.h:283: error: 'VMALLOC_END' undeclared (first use in this function)
include/linux/mm.h: In function 'virt_to_head_page':
include/linux/mm.h:318: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/scatterlist.h:6,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
include/linux/mm.h: In function 'lowmem_page_address':
include/linux/mm.h:592: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/scatterlist.h:8,
                 from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/io.h:93:21: error: mach/io.h: No such file or directory
In file included from include/linux/dma-mapping.h:7,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/linux/scatterlist.h:112: error: 'PHYS_OFFSET' undeclared (first use in this function)
include/linux/scatterlist.h: In function 'sg_phys':
include/linux/scatterlist.h:184: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from include/linux/dma-mapping.h:103,
                 from include/linux/dmaengine.h:26,
                 from include/linux/skbuff.h:30,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:29,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h: In function 'page_to_dma':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h:20: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h: In function 'dma_to_page':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h:25: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h: In function 'dma_to_virt':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h:30: error: 'PHYS_OFFSET' undeclared (first use in this function)
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h: In function 'virt_to_dma':
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/dma-mapping.h:35: error: 'PHYS_OFFSET' undeclared (first use in this function)
In file included from /usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/hardirq.h:6,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/netdevice.h:1107,
                 from include/net/sock.h:50,
                 from include/linux/tcp.h:207,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:37,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/irq.h:4:23: error: mach/irqs.h: No such file or directory
In file included from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/netdevice.h:1107,
                 from include/net/sock.h:50,
                 from include/linux/tcp.h:207,
                 from /tmp/fbrcapi-0.5/fbrcapi.h:37,
                 from /tmp/fbrcapi-0.5/core.c:25:
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/hardirq.h:15:5: warning: "NR_IRQS" is not defined
/usr/src/linux-headers-2.6.33.3flipflip/arch/arm/include/asm/hardirq.h:26:27: warning: "NR_IRQS" is not defined
make[2]: *** [/tmp/fbrcapi-0.5/core.o] Error 1
make[1]: *** [_module_/tmp/fbrcapi-0.5] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.33.3flipflip'
make: *** [modules] Error 2

The appropriate linux header files are installed.

Do you see any chance to get the modules compiled for ARM?

Regards


elbling
Logged

Pages: [1]
Print
Jump to: