Can't compile (intel 537 chipset driver)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Can't compile (intel 537 chipset driver)

Postby swoll0280 on Fri Aug 17, 2007 1:22 am

I "make clean" that works fine, but when I try to "make 537" This happens.

Module precompile check
Current running kernel is: 2.6.20-16-generic
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
2.6.20-16-generic
make[1]: Entering directory `/home/nolan/Desktop/modem_source/coredrv'
make -C /lib/modules/2.6.20-16-generic/build SUBDIRS=/home/nolan/Desktop/modem_source/coredrv modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'
CC [M] /home/nolan/Desktop/modem_source/coredrv/coredrv.o
In file included from /home/nolan/Desktop/modem_source/coredrv/hamcore.h:45,
from /home/nolan/Desktop/modem_source/coredrv/coredrv.c:33:
/home/nolan/Desktop/modem_source/coredrv/hamdefs.h:49:28: error: linux/config.h: No such file or directory
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:70: warning: data definition has no type or storage class
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:70: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_NOVERS’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:70: warning: parameter names (without types) in function declaration
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘power_callback’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:295: error: ‘PM_SAVE_STATE’ undeclared (first use in this function)
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘softcore_init_struct’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:336: warning: assignment from incompatible pointer type
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘open’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:384: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:394: warning: implicit declaration of function ‘pm_register’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:395: warning: assignment makes pointer from integer without a cast
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘close’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:416: warning: implicit declaration of function ‘pm_unregister’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘send_data_to_user’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:563: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:568: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:569: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:571: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:572: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:573: error: ‘struct tty_struct’ has no member named ‘flip’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: At top level:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:641: error: expected ‘)’ before string constant
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:754:36: error: macro "DECLARE_WORK" passed 3 arguments, but takes just 2
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:754: warning: data definition has no type or storage class
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:754: warning: type defaults to ‘int’ in declaration of ‘DECLARE_WORK’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:755:34: error: macro "DECLARE_WORK" passed 3 arguments, but takes just 2
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:755: warning: data definition has no type or storage class
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:755: warning: type defaults to ‘int’ in declaration of ‘DECLARE_WORK’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘wake_up_interruptible_persistReadQ’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:769: error: ‘wait_wq’ undeclared (first use in this function)
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘interruptible_sleep_on_timeout_persistReadQ’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:803: error: ‘wait_wq2’ undeclared (first use in this function)
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘kScheduleDPC’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:861: warning: implicit declaration of function ‘pm_access’
/home/nolan/Desktop/modem_source/coredrv/coredrv.c: In function ‘dspdrv_CommRamISR’:
/home/nolan/Desktop/modem_source/coredrv/coredrv.c:877: warning: function declaration isn’t a prototype
make[3]: *** [/home/nolan/Desktop/modem_source/coredrv/coredrv.o] Error 1
make[2]: *** [_module_/home/nolan/Desktop/modem_source/coredrv] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'
make[1]: *** [537core_26] Error 2
make[1]: Leaving directory `/home/nolan/Desktop/modem_source/coredrv'
2.6.20-16-generic
failed to build driver

Can someone help me with this please. Thanks
swoll0280
Level 1
Level 1
 
Posts: 2
Joined: Fri Aug 17, 2007 1:13 am

Linux Mint is funded by ads and donations.
 

Postby scorp123 on Fri Aug 17, 2007 2:12 am

You have the Linux kernel sources and all needed packages installed? That would all be in package build-essential ... you can't compile stuff without it. Other than that I am out of ideas at the moment. Was there a 'README' file or something? Can you post the URL where you got the driver from? Maybe there is more clues back there ...
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby swoll0280 on Fri Aug 17, 2007 3:01 am

scorp123 wrote:You have the Linux kernel sources and all needed packages installed? That would all be in package build-essential ... you can't compile stuff without it. Other than that I am out of ideas at the moment. Was there a 'README' file or something? Can you post the URL where you got the driver from? Maybe there is more clues back there ...


I installed the build package. I got the driver from http://downloadcenter.intel.com/Product ... 0&lang=eng
swoll0280
Level 1
Level 1
 
Posts: 2
Joined: Fri Aug 17, 2007 1:13 am

Postby merlwiz79 on Fri Aug 17, 2007 3:10 am

I believe this may be your problem.
The installation script has been designed for the following distributions
release versions

Mandrake-release
SuSE-release
Redhat-release
Fedora Core 2 -release
Unknown distributions install modules and utilities but
will not install boot scripts!.
Make sure to get Modem Chipset Driver (Uncompiled) - [INTEL-537EP-2.60.80.0.TGZ]
The installation script has been designed for the following distributions
release versions

mandrake-release
SuSE-release
redhat-release
debian_version (including Corel)
slackware-version
conectiva-version
bluepoint-release
redflag-release
Unknown distributions install modules and utilities but
will not install boot scripts!.

Also The Intel-537ep-2.60.80.0.tgz contains the base, partial open source, UNCOMPILED Intel® 537EP V.92 modem (PCI) chipset driver for Linux version 2.60.80.0 (for kernels 2.4.x and 2.6.x).
Development tools and the 2.4 or 2.6 kernel source (configuration matching running kernel) are required to compile this driver.
1. login as ROOT
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3637
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot] and 20 guests