LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-27-2003, 03:07 PM   #1
michaelc187
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Rep: Reputation: 0
"make *****"


I have installed all the software developement tools in "package manager," I believe I put all the source code in /usr/src.

ls -alc
total 2376
drwxr-xr-x 9 root root 4096 Aug 26 23:24 .
drwxr-xr-x 16 root root 4096 Aug 26 19:54 ..
drwxr-xr-x 21 root root 4096 Aug 26 18:33
drwxr-xr-x 2 root root 4096 Aug 25 20:36 debug
lrwxrwxrwx 1 root root 26 Aug 26 23:24 linux -> /usr/src/linux-2.4.20-20.9
lrwxrwxrwx 1 root root 17 Aug 25 22:46 linux-2.4 -> linux-2.4.20-20.9
drwxr-xr-x 16 root root 4096 Aug 27 15:44 linux-2.4.20-20.9
drwxr-xr-x 7 root root 4096 Aug 25 21:07 redhat

Yet I can't "make install" any of my Turtle beach montego II sound drivers (ver. 1.05 or 1.2). It seems like I'm having some kind of compile error:

[root@adsl-61-0-29 au88xx-1.0.5]# make install
cc -D__KERNEL__ -DMODULE -DAU8830 -O -Wall -pipe -m486 -I/usr/src/linux/include -O2 -fomit-frame-pointer -c -o vortex.o vortex.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from vortex.c:62:
/usr/src/linux/include/linux/malloc.h:4:2: #error linux/malloc.h is deprecated, use linux/slab.h
instead.
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:31: conflicting types for `spinlock_t'
/usr/src/linux/include/linux/spinlock.h:75: previous declaration of `spinlock_t'
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:41:1: warning: "SPIN_LOCK_UNLOCKED" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:76:1: warning: this is the location of the previous definition
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:43:1: warning: "spin_lock_init" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:82:1: warning: this is the location of the previous definition
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:52:1: warning: "spin_is_locked" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:84:1: warning: this is the location of the previous definition
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:53:1: warning: "spin_unlock_wait" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:86:1: warning: this is the location of the previous definition
/usr/src/linux/include/asm/spinlock.h:100: parse error before "do"
/usr/src/linux/include/asm/spinlock.h:116: parse error before '{' token
/usr/src/linux/include/asm/spinlock.h:126: parse error before "void"
/usr/src/linux/include/asm/spinlock.h:157: conflicting types for `rwlock_t'
/usr/src/linux/include/linux/spinlock.h:139: previous declaration of `rwlock_t'
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:167:1: warning: "RW_LOCK_UNLOCKED" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:140:1: warning: this is the location of the previous definition
In file included from vortex.c:67:
/usr/src/linux/include/asm/spinlock.h:169:1: warning: "rwlock_init" redefined
In file included from /usr/src/linux/include/linux/module.h:11,
from vortex.c:53:
/usr/src/linux/include/linux/spinlock.h:146:1: warning: this is the location of the previous definition
/usr/src/linux/include/asm/spinlock.h:184: parse error before "void"
/usr/src/linux/include/asm/spinlock.h:193: parse error before "void"
.....
vortex.c:308: warning: initialization from incompatible pointer type
vortex.c:311: warning: initialization from incompatible pointer type
vortex.c:314: warning: initialization from incompatible pointer type
vortex.c:320: warning: initialization from incompatible pointer type
vortex.c:323: warning: initialization from incompatible pointer type
vortex.c: In function `scan_id':
vortex.c:485: structure has no member named `base_address'
vortex.c:486: structure has no member named `base_address'
vortex.c: In function `add_device':
vortex.c:513: warning: implicit declaration of function `init_waitqueue'
vortex.c: In function `alloc_core':
vortex.c:696: structure has no member named `base_address'
vortex.c:698: structure has no member named `base_address'
vortex.c: In function `au_audio_read':
vortex.c:794: warning: passing arg 1 of `interruptible_sleep_on_R7e4f89c3' from incompatible pointer type
vortex.c: In function `au_audio_write':
vortex.c:857: warning: passing arg 1 of `interruptible_sleep_on_R7e4f89c3' from incompatible pointer type
vortex.c: In function `au_audio_ioctl':
vortex.c:943: warning: implicit declaration of function `get_user_ret'
vortex.c: In function `au_audio_mmap':
vortex.c:1114: structure has no member named `vm_offset'
vortex.c:1124: warning: passing arg 1 of `remap_page_range_Rc414bdc2' makes pointer from integer
without a cast
vortex.c:1124: incompatible type for argument 4 of `remap_page_range_Rc414bdc2'
vortex.c:1124: too few arguments to function `remap_page_range_Rc414bdc2'
vortex.c:1134: warning: passing arg 1 of `remap_page_range_Rc414bdc2' makes pointer from integer
without a cast
vortex.c:1134: incompatible type for argument 4 of `remap_page_range_Rc414bdc2'
vortex.c:1134: too few arguments to function `remap_page_range_Rc414bdc2'
vortex.c: In function `drain_playback':
vortex.c:1224: warning: passing arg 1 of `interruptible_sleep_on_R7e4f89c3' from incompatible pointer type
vortex.c: In function `get_frags':
vortex.c:1333: warning: implicit declaration of function `MAP_NR'
vortex.c: In function `au_handle_timer':
vortex.c:1581: warning: passing arg 1 of `__wake_up_Rb76c5f1e' from incompatible pointer type
vortex.c:1611: warning: passing arg 1 of `__wake_up_Rb76c5f1e' from incompatible pointer type
vortex.c: In function `au_midi_read':
....
vortex.c:2132: warning: passing arg 1 of `__wake_up_Rb76c5f1e' from incompatible pointer type
vortex.c: In function `sound_proc_get_info':
vortex.c:2267: structure has no member named `base_address'
make: *** [vortex.o] Error 1
 
Old 08-27-2003, 04:41 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You didn't mention the distribution you are using. Perhaps you don't have a symbolic link or something? Carefully read the README and INSTALL files to make sure you have what you need.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 08-28-2003, 03:00 AM   #3
michaelc187
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I'm using RH -2.4.20-20.9. I opened the vortex.c file (from the above error messages), verified that all the ****.h files were in usr/src and within the /..2.4.20-20.9/linux folder. I did all the steps mentioned above and still have (what appears to be) the same errors in the output.
 
Old 08-28-2003, 07:38 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Do you have the symbolic link /usr/src/linux and does that link point to the kernel source for the kernel that you are running?
 
Old 08-28-2003, 01:34 PM   #5
michaelc187
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I have two symbolic links (folders with a green arrow) /usr/src/linux and usr/src/linux-2.4. Both point to linux-2.4.20-20.9.

[root@adsl-61-0-29 src]# ls -alc
total 2380
drwxr-xr-x 10 root root 4096 Aug 28 01:11 .
drwxr-xr-x 16 root root 4096 Aug 26 19:54 ..
drwxr-xr-x 21 root root 4096 Aug 26 18:33
drwxr-xr-x 2 root root 4096 Aug 25 20:36 debug
lrwxrwxrwx 1 root root 26 Aug 26 23:24 linux -> /usr/src/linux-2.4.20-20.9
lrwxrwxrwx 1 root root 17 Aug 25 22:46 linux-2.4 -> linux-2.4.20-20.9
drwxr-xr-x 16 root root 4096 Aug 28 14:38 linux-2.4.20-20.9
drwxr-xr-x 7 root root 4096 Aug 25 21:07 redhat
drwxr-xr-x 3 root root 4096 Aug 28 01:09 sound

Last edited by michaelc187; 08-28-2003 at 01:40 PM.
 
Old 08-28-2003, 02:00 PM   #6
michaelc187
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
On another note: I bought redhat a few days ago and installed it. When the update program ran, I down loaded everything. That is where I got the slightly newer kernel. When rebooting, a message asked me if I wanted to install from the redhat install CD, Documentation CD, or source(?) CDs. Since none of my CDs had the new software, I clicked cancel.

The next time I booted up, I got a message asking me: what kernel to load Linux new, Linux old, or DOS.

I have tried to "make install" loading both Linux kernels.

Last edited by michaelc187; 08-28-2003 at 02:07 PM.
 
Old 08-28-2003, 10:46 PM   #7
michaelc187
LQ Newbie
 
Registered: Aug 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I reinstalled the OS, and it appears that "message" was simply asking if I wanted to install documentation and such.
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 10:47 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 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