LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2004, 11:21 AM   #1
i_like_penguins
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Problems compiling promise sx4000 kernel module


Here is the the output that I get. As near as I can tell the compiler is looking in the wrong spot for the files. I think that if I can change the Include path, it might work. I have no idea how to do that. Any ideas anyone?

[root@localhost partial]# make
gcc -D__KERNEL__ -D__LINUX__ -D_SUPPORTENCLOSURE_ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -mcpu=i386 -DCPU=386 -DMODULE -D_PBM_ -c wrapper.c
wrapper.c:17:25: asm-i386/io.h: No such file or directory
wrapper.c:18:29: asm-i386/ptrace.h: No such file or directory
wrapper.c:19:28: asm-i386/delay.h: No such file or directory
In file included from /usr/include/linux/sched.h:14,
from wrapper.c:20:
/usr/include/linux/timex.h:56: error: syntax error before "and"
In file included from /usr/include/linux/timex.h:126,
from /usr/include/linux/sched.h:14,
from wrapper.c:20:
/usr/include/asm/timex.h:33: error: syntax error before "cacheflush_time"
/usr/include/asm/timex.h:35: error: syntax error before "get_cycles"
In file included from /usr/include/linux/sched.h:14,
from wrapper.c:20:
/usr/include/linux/timex.h:147: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from wrapper.c:20:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from wrapper.c:20:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:81,
from wrapper.c:20:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/blkdev.h:7,
from /usr/include/linux/blk.h:4,
from wrapper.c:23:
/usr/include/linux/tqueue.h: At top level:
/usr/include/linux/tqueue.h:94: error: syntax error before "tqueue_lock"
In file included from /usr/include/linux/blkdev.h:10,
from /usr/include/linux/blk.h:4,
from wrapper.c:23:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
In file included from /usr/include/linux/blk.h:4,
from wrapper.c:23:
/usr/include/linux/blkdev.h:88: error: field `elevator' has incomplete type
/usr/include/linux/blkdev.h:132: error: syntax error before "spinlock_t"
/usr/include/linux/blkdev.h:170: error: field `request_queue' has incomplete type
/usr/include/linux/blkdev.h:217: error: syntax error before "blk_buffers_wait"
/usr/include/linux/blkdev.h:218: error: syntax error before "queued_sectors"
In file included from /usr/include/linux/blk.h:5,
from wrapper.c:23:
/usr/include/linux/locks.h:8:27: linux/pagemap.h: No such file or directory
In file included from /usr/include/linux/blk.h:5,
from wrapper.c:23:
/usr/include/linux/locks.h: In function `wait_on_buffer':
/usr/include/linux/locks.h:19: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:19: error: (Each undeclared identifier is reported only once
/usr/include/linux/locks.h:19: error: for each function it appears in.)
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h:19: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_buffer':
/usr/include/linux/locks.h:25: error: `BH_Lock' undeclared (first use in this function)
/usr/include/linux/locks.h:25: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `lock_super':
/usr/include/linux/locks.h:39: error: dereferencing pointer to incomplete type
/usr/include/linux/locks.h: In function `unlock_super':
/usr/include/linux/locks.h:44: error: dereferencing pointer to incomplete type
In file included from wrapper.c:23:
/usr/include/linux/blk.h: At top level:
/usr/include/linux/blk.h:14: error: syntax error before "io_request_lock"
wrapper.c: In function `PTI_printk':
wrapper.c:68: warning: implicit declaration of function `printk'
wrapper.c: At top level:
wrapper.c:72: error: syntax error before "va_list"
wrapper.c:72: warning: function declaration isn't a prototype
wrapper.c: In function `PTI_sprintf':
wrapper.c:73: warning: implicit declaration of function `sprintf'
wrapper.c:73: error: `buf' undeclared (first use in this function)
wrapper.c:73: error: `fmt' undeclared (first use in this function)
wrapper.c:73: error: `argp' undeclared (first use in this function)
wrapper.c: In function `PTI_udelay':
wrapper.c:92: warning: implicit declaration of function `udelay'
wrapper.c: In function `PTI_get_jiffies':
wrapper.c:98: error: `jiffies' undeclared (first use in this function)
wrapper.c: In function `PTI_do_gettimeofday':
wrapper.c:120: warning: implicit declaration of function `do_gettimeofday'
wrapper.c: In function `PTI_kmalloc':
wrapper.c:124: warning: implicit declaration of function `kmalloc'
wrapper.c:124: warning: return makes pointer from integer without a cast
wrapper.c: In function `PTI_kfree':
wrapper.c:128: warning: implicit declaration of function `kfree'
wrapper.c: In function `PTI_pcibios_find_device':
wrapper.c:132: warning: implicit declaration of function `pcibios_find_device'
wrapper.c: In function `PTI_pcibios_read_config_word':
wrapper.c:136: warning: implicit declaration of function `pcibios_read_config_word'
make: *** [wrapper.o] Error 1
[root@localhost partial]#
 
Old 09-18-2004, 12:09 PM   #2
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
ilikepenguins; for guidance try, http://tldp.org/HOWTO/HOWTO-INDEX
sections:4.1.5 Kernel & 4.6 programming
subsection 4.6.2 Compilers.
Please Expand each section for detailed
information. guidance emphasized!
 
Old 09-18-2004, 06:07 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
this is in the compile command
[bold]
-I/usr/src/linux/include
[/bold]

so you will have to have the source code for your current running kernel either at that location or have that location (/usr/src/linux) be a link to your current running kernels source directory
(if you installed the kernel from some other place don't move the source just make a link)
look at
man ln
for how to make a link

if you are using some distro stock kernel then installing the kernel-source package should fix the problem
 
Old 09-18-2004, 07:08 PM   #4
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
foo_bar_foo; thank you with that heads up tip.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any success w/ Promise TX4000 RAID Controller (or even SX4000)? JMCraig Linux - Hardware 28 04-23-2006 11:40 AM
Promise sx4000 and Linux installation help Eagle0 Linux - Hardware 1 09-11-2004 01:54 AM
Compiling Promise RAID support in the Kernel subz Slackware 6 05-21-2004 09:01 AM
Promise SX4000 & Redhat AS 2.1 ASF Linux - Hardware 0 10-03-2003 09:26 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration