Re: Suse 12.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I tried a bit more and found the missing includes (at least some with
the same name) and now I get the following error. I'm lost :-(

Regards,
Thomas

--------------------------- cut -------------------------
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/3.1.9-1.4-default/build/include/config/modversions.h -I/lib/modules/3.1.9-1.4-default/build/include -I/usr/src/linux/include -I/usr/src/linux/arch/x86/include/  -I. -I./../modem   -o amrmo_init.o -c amrmo_init.c
In file included from /usr/src/linux/arch/x86/include/asm/bitops.h:449:0,
                 from /usr/src/linux/include/linux/bitops.h:22,
                 from /usr/src/linux/include/linux/kernel.h:17,
                 from /usr/src/linux/include/linux/cache.h:4,
                 from /usr/src/linux/include/linux/time.h:7,
                 from /usr/src/linux/include/linux/stat.h:60,
                 from /usr/src/linux/include/linux/module.h:10,
                 from amrmo_init.c:57:
/usr/src/linux/arch/x86/include/asm/arch_hweight.h: In function â__arch_hweight64â:
/usr/src/linux/arch/x86/include/asm/arch_hweight.h:53:7: error: expected â:â or â)â before âPOPCNT64â
In file included from /usr/src/linux/arch/x86/include/asm/thread_info.h:22:0,
                 from /usr/src/linux/include/linux/thread_info.h:53,
                 from /usr/src/linux/include/linux/preempt.h:9,
                 from /usr/src/linux/include/linux/spinlock.h:50,
                 from /usr/src/linux/include/linux/seqlock.h:29,
                 from /usr/src/linux/include/linux/time.h:8,
                 from /usr/src/linux/include/linux/stat.h:60,
                 from /usr/src/linux/include/linux/module.h:10,
                 from amrmo_init.c:57:
/usr/src/linux/arch/x86/include/asm/processor.h: At top level:
/usr/src/linux/arch/x86/include/asm/processor.h:114:30: error: âCONFIG_X86_L1_CACHE_SHIFTâ undeclared here (not in a function)
/usr/src/linux/arch/x86/include/asm/processor.h:114:1: error: requested alignment is not a constant
/usr/src/linux/arch/x86/include/asm/processor.h:156:0: warning: "cache_line_size" redefined [enabled by default]
/usr/src/linux/include/linux/cache.h:64:0: note: this is the location of the previous definition
/usr/src/linux/arch/x86/include/asm/processor.h: In function âload_cr3â:
/usr/src/linux/arch/x86/include/asm/processor.h:187:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
/usr/src/linux/arch/x86/include/asm/processor.h:187:1: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/linux/arch/x86/include/asm/processor.h: At top level:
/usr/src/linux/arch/x86/include/asm/processor.h:236:1: error: requested alignment is not a constant
/usr/src/linux/arch/x86/include/asm/processor.h:267:1: error: requested alignment is not a constant
In file included from /usr/src/linux/arch/x86/include/asm/atomic.h:318:0,
                 from /usr/src/linux/include/linux/atomic.h:4,
                 from /usr/src/linux/arch/x86/include/asm/thread_info.h:24,
                 from /usr/src/linux/include/linux/thread_info.h:53,
                 from /usr/src/linux/include/linux/preempt.h:9,
                 from /usr/src/linux/include/linux/spinlock.h:50,
                 from /usr/src/linux/include/linux/seqlock.h:29,
                 from /usr/src/linux/include/linux/time.h:8,
                 from /usr/src/linux/include/linux/stat.h:60,
                 from /usr/src/linux/include/linux/module.h:10,
                 from amrmo_init.c:57:
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:19:1: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h: In function âatomic64_readâ:
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:21:32: error: request for member âcounterâ in something not a structure or union
/usr/src/linux/arch/x86/include/asm/atomic64_64.h: At top level:
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:31:33: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:43:41: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:57:41: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:73:49: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:89:33: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:102:33: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:117:41: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:135:41: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:154:49: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:171:48: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:180:48: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:188:37: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:193:34: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:207:39: error: unknown type name âatomic64_tâ
/usr/src/linux/arch/x86/include/asm/atomic64_64.h:231:45: error: unknown type name âatomic64_tâ
In file included from /usr/src/linux/include/linux/ktime.h:25:0,
                 from /usr/src/linux/include/linux/timer.h:5,
                 from /usr/src/linux/include/linux/workqueue.h:8,
                 from /usr/src/linux/include/linux/kmod.h:26,
                 from /usr/src/linux/include/linux/module.h:13,
                 from amrmo_init.c:57:
/usr/src/linux/include/linux/jiffies.h:39:3: error: #error Invalid value of HZ.
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:43:42: error: division by zero in #if
In file included from /usr/src/linux/include/linux/sysctl.h:934:0,
                 from /usr/src/linux/include/linux/kmod.h:27,
                 from /usr/src/linux/include/linux/module.h:13,
                 from amrmo_init.c:57:
/usr/src/linux/include/linux/rcupdate.h:160:2: error: #error "Unknown RCU implementation specified to kernel configuration"
In file included from /usr/src/linux/include/linux/elf.h:7:0,
                 from /usr/src/linux/include/linux/module.h:14,
                 from amrmo_init.c:57:
/usr/src/linux/arch/x86/include/asm/elf.h: In function âelf_common_initâ:
/usr/src/linux/arch/x86/include/asm/elf.h:165:6: error: âstruct pt_regsâ has no member named âr8â
/usr/src/linux/arch/x86/include/asm/elf.h:165:17: error: âstruct pt_regsâ has no member named âr9â
/usr/src/linux/arch/x86/include/asm/elf.h:165:28: error: âstruct pt_regsâ has no member named âr10â
/usr/src/linux/arch/x86/include/asm/elf.h:165:40: error: âstruct pt_regsâ has no member named âr11â
/usr/src/linux/arch/x86/include/asm/elf.h:166:6: error: âstruct pt_regsâ has no member named âr12â
/usr/src/linux/arch/x86/include/asm/elf.h:166:18: error: âstruct pt_regsâ has no member named âr13â
/usr/src/linux/arch/x86/include/asm/elf.h:166:30: error: âstruct pt_regsâ has no member named âr14â
/usr/src/linux/arch/x86/include/asm/elf.h:166:42: error: âstruct pt_regsâ has no member named âr15â
/usr/src/linux/arch/x86/include/asm/elf.h:167:3: error: âstruct thread_structâ has no member named âfsâ
In file included from /usr/src/linux/include/linux/module.h:21:0,
                 from amrmo_init.c:57:
/usr/src/linux/arch/x86/include/asm/module.h: At top level:
/usr/src/linux/arch/x86/include/asm/module.h:59:2: error: #error unknown processor family
In file included from /usr/src/linux/include/linux/io.h:22:0,
                 from /usr/src/linux/include/linux/pci.h:54,
                 from amrmo_init.c:59:
/usr/src/linux/arch/x86/include/asm/io.h: In function âvirt_to_physâ:
/usr/src/linux/arch/x86/include/asm/io.h:113:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
/usr/src/linux/arch/x86/include/asm/io.h: In function âphys_to_virtâ:
/usr/src/linux/arch/x86/include/asm/io.h:131:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
In file included from /usr/src/linux/arch/x86/include/asm/x86_init.h:5:0,
                 from /usr/src/linux/arch/x86/include/asm/pgtable.h:19,
                 from /usr/src/linux/include/linux/mm.h:42,
                 from /usr/src/linux/arch/x86/include/asm/pci.h:4,
                 from /usr/src/linux/include/linux/pci.h:1315,
                 from amrmo_init.c:59:
/usr/src/linux/arch/x86/include/asm/bootparam.h: At top level:
/usr/src/linux/arch/x86/include/asm/bootparam.h:106:19: error: field âedid_infoâ has incomplete type
In file included from /usr/src/linux/include/linux/mm.h:42:0,
                 from /usr/src/linux/arch/x86/include/asm/pci.h:4,
                 from /usr/src/linux/include/linux/pci.h:1315,
                 from amrmo_init.c:59:
/usr/src/linux/arch/x86/include/asm/pgtable.h: In function âpmd_page_vaddrâ:
/usr/src/linux/arch/x86/include/asm/pgtable.h:430:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
/usr/src/linux/arch/x86/include/asm/pgtable.h: In function âpud_page_vaddrâ:
/usr/src/linux/arch/x86/include/asm/pgtable.h:501:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
/usr/src/linux/arch/x86/include/asm/pgtable.h: In function âpgd_page_vaddrâ:
/usr/src/linux/arch/x86/include/asm/pgtable.h:541:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
In file included from /usr/src/linux/arch/x86/include/asm/pci.h:4:0,
                 from /usr/src/linux/include/linux/pci.h:1315,
                 from amrmo_init.c:59:
/usr/src/linux/include/linux/mm.h: In function âvirt_to_head_pageâ:
/usr/src/linux/include/linux/mm.h:429:9: warning: implicit declaration of function â__pfn_to_pageâ [-Wimplicit-function-declaration]
/usr/src/linux/include/linux/mm.h:429:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
In file included from /usr/src/linux/arch/x86/include/asm/pci.h:4:0,
                 from /usr/src/linux/include/linux/pci.h:1315,
                 from amrmo_init.c:59:
/usr/src/linux/include/linux/mm.h: In function âlowmem_page_addressâ:
/usr/src/linux/include/linux/mm.h:759:2: warning: implicit declaration of function â__page_to_pfnâ [-Wimplicit-function-declaration]
/usr/src/linux/include/linux/mm.h:759:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/dma-mapping.h:8:0,
                 from /usr/src/linux/include/asm-generic/pci-dma-compat.h:7,
                 from /usr/src/linux/arch/x86/include/asm/pci.h:139,
                 from /usr/src/linux/include/linux/pci.h:1315,
                 from amrmo_init.c:59:
/usr/src/linux/include/linux/scatterlist.h: In function âsg_set_bufâ:
/usr/src/linux/include/linux/scatterlist.h:112:1: error: âCONFIG_PAGE_OFFSETULâ undeclared (first use in this function)
In file included from /usr/src/linux/include/linux/hardirq.h:7:0,
                 from /usr/src/linux/include/linux/interrupt.h:12,
                 from amrmo_init.c:61:
/usr/src/linux/arch/x86/include/asm/hardirq.h: At top level:
/usr/src/linux/arch/x86/include/asm/hardirq.h:33:1: error: requested alignment is not a constant
In file included from /usr/src/linux/include/linux/fs.h:389:0,
                 from /usr/src/linux/include/linux/poll.h:12,
                 from amrmo_init.c:62:
/usr/src/linux/include/linux/dcache.h:172:1: error: requested alignment is not a constant
In file included from /usr/src/linux/include/linux/poll.h:12:0,
                 from amrmo_init.c:62:
/usr/src/linux/include/linux/fs.h:1633:1: error: requested alignment is not a constant
amrmo_init.c: In function âamrmo_unlocked_ioctlâ:
amrmo_init.c:459:17: warning: implicit declaration of function â__copy_to_user_llâ [-Wimplicit-function-declaration]
amrmo_init.c: In function âamrmo_initâ:
amrmo_init.c:767:3: warning: implicit declaration of function âpci_match_idâ [-Wimplicit-function-declaration]
amrmo_init.c:768:6: warning: implicit declaration of function âpci_dev_driverâ [-Wimplicit-function-declaration]
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory `/root/modem/src/slmodem-2.9.11-20110807/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/modem/src/slmodem-2.9.11-20110807/drivers'
make: *** [drivers] Error 2



> Thomas,

> If you Google search with "linux/init.h" , you will get cogent info.

> But on my Ubuntu system, the problem doesn't exist with the 3.0.n
> compiles being managed by the DKMS update system.
> So DKMS knows where to find the newer files.h

> Since I'm not under Linux now, I'll send you cogent DKMS command info later.

> MarvS


> On Thu, Feb 23, 2012 at 3:50 PM, Thomas Wilhelmi
> <willi@xxxxxxxxxxxxxxxxxx> wrote:
>> Hello,
>>
>> thx for the help. I tried to compile the package and you're right that
>> I get some errors. The first one was indeed the different location of
>> "modversions.h". Instead of the directory "linux" I found one in
>> "config". The next error was the missing file "linux/module.h": I
>> replaced the include with the existing "config/modules.h". Even there
>> is a slight difference in the name.
>>
>> Now I'm stuck with the missing "linux/init.h". Here I cannot find the
>> correct one.
>>
>> Best regards,
>> Thomas
>>
>>
>>> Thomas,
>>
>>> Our most recent tarball update is slmodem-2.9.11-20110807.tar.gz
>>> and should be OK for 3.x kernels.  With some Linux distros, there will
>>> be a compile failure, dependent on  where the MODVERSIONS info is
>>> located in the linux/kernel headers.  Do a trial compile wth the
>>> following package and send us any failure message
>>
>>> Is DKMS support installed on your SuSE System.  There is a DKMS
>>> enabled package variant we could send you, which will do auto
>>> upgrades.
>>
>>> MarvS
>>> scanModem maintainer
>>
>>> On Thu, Feb 23, 2012 at 3:05 AM, Thomas Wilhelmi
>>> <willi@xxxxxxxxxxxxxxxxxx> wrote:
>>>> Hello,
>>>>
>>>> I have a USB Modem and a PCI Modem-Card. My system is a Suse 12.1 with
>>>> the following characterisrica:
>>>>
>>>> Linux twisrv 3.1.9-1.4-default #1 SMP Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) i686 i686 i386 GNU/Linux
>>>>
>>>> The characteristica of the Modems can be seen in the attached file
>>>> (any more necessary?). The USB-Modem is working like a charme. But the
>>>> PCI-Modem not. The slmodem and ungrab-winmodem sources I found are
>>>> only for kernel 2.x. Are there any versions for 3.1 Kernels?
>>>>
>>>> Thanks in advance,
>>>> Thomas
>>
>>





[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux