LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "make *****" (https://www.linuxquestions.org/questions/linux-newbie-8/make-%2A%2A%2A%2A%2A-86351/)

michaelc187 08-27-2003 04:07 PM

"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

fancypiper 08-27-2003 05:41 PM

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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study:

# 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

michaelc187 08-28-2003 04:00 AM

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.

fancypiper 08-28-2003 08:38 AM

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?

michaelc187 08-28-2003 02:34 PM

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

michaelc187 08-28-2003 03:00 PM

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.

michaelc187 08-28-2003 11:46 PM

I reinstalled the OS, and it appears that "message" was simply asking if I wanted to install documentation and such.


All times are GMT -5. The time now is 11:57 PM.