LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2005, 06:50 AM   #16
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46

ftp://ftp.slackware.com/pub/slackwar...0/slackware/k/

the third one down. the first one is the source and is essentially the same thing, but this one comes with the ".config" file already inside ( the configuration of the slackware kernel - this will help too).

install the package then ( as root ):

cd /usr/src/linux-2.4.26
make dep

then proceed with the nvidia driver installation.
 
Old 02-24-2005, 06:54 AM   #17
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
will do.

btw, after seeing that path you wrote (/usr/src/linux-2.4.26), I decided to check my /usr/src directory and there is alread a linux-2.4.26 directory in there (with files in it.) does that matter?
 
Old 02-24-2005, 06:57 AM   #18
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
should be your source. in a terminal, do:

ls --color /lib/modules/`uname -r`/build

and make sure the color is not red ( broken link ).

also, if you have upgraded your kernel, you'll need the source for that one ( the nvidia driver builds against whatever kernel you are running, if you have multiple ones installed, you'll have to have the source for all of them).
 
Old 02-24-2005, 07:17 AM   #19
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
I only have the default (2.4.26) kernel.

no red in that ls, just grey and blue.
 
Old 02-24-2005, 09:40 AM   #20
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
here is what I get after running "make dep" as root from /usr/src/linux-2.4.26:
Code:
bash-2.05b# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                 from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122:75: limits.h: No such file or directory
scripts/mkdep.c:36:19: stdio.h: No such file or directory
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:69: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:78: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:93: warning: implicit declaration of function `realloc'
scripts/mkdep.c:93: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:94: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:94: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:94: error: for each function it appears in.)
scripts/mkdep.c:95: warning: implicit declaration of function `perror'
scripts/mkdep.c:95: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:111: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:126: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: At top level:
scripts/mkdep.c:148: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:163: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:164: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:176: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:204: warning: implicit declaration of function `access'
scripts/mkdep.c:204: error: `F_OK' undeclared (first use in this function)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:224: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:225: warning: implicit declaration of function `realpath'
scripts/mkdep.c:225: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:227: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:227: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:235: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:243: warning: implicit declaration of function `malloc'
scripts/mkdep.c:243: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:248: warning: implicit declaration of function `strcpy'
scripts/mkdep.c:221: warning: unused variable `resolved_path'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:271: warning: implicit declaration of function `isupper'
scripts/mkdep.c:271: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:493: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:526: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:528: error: storage size of `st' isn't known
scripts/mkdep.c:531: warning: implicit declaration of function `open'
scripts/mkdep.c:531: error: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:537: warning: implicit declaration of function `fstat'
scripts/mkdep.c:539: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:540: warning: implicit declaration of function `close'
scripts/mkdep.c:546: warning: implicit declaration of function `mmap'
scripts/mkdep.c:546: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:546: error: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:546: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/mkdep.c:546: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:562: warning: implicit declaration of function `puts'
scripts/mkdep.c:567: warning: implicit declaration of function `munmap'
scripts/mkdep.c:528: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:581: warning: implicit declaration of function `getenv'
scripts/mkdep.c:581: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:583: warning: implicit declaration of function `fputs'
scripts/mkdep.c:584: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:591: warning: implicit declaration of function `strncmp'
make: *** [scripts/mkdep] Error 1
bash-2.05b#
why oh why can't this just work...
 
Old 02-24-2005, 02:42 PM   #21
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you're missing alot of standard headers. go back to the slackware mirror and download glibc-2.3.2-i486.tgz and install that. Looks kinda like your install cd may have been corrupt or something similar because these come with the standard installation.
 
Old 02-24-2005, 03:15 PM   #22
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
yeah, what's weird is I've used the CD about 4 times before and never had any errors during installation... now this most recent install I got that error on something that mentioned gcc. thanks AGAIN for the help. I can't wait until I know things and can give back to the community like this.

EDIT: I found "glibc-2.3.2-i486-6.tgz" in the "L" software series (right here.) Is this what I need? I'm asking because the filename is slightly different from what you suggested (this one has "-6" on the end.)

Last edited by Seiken; 02-24-2005 at 03:25 PM.
 
Old 02-24-2005, 03:46 PM   #23
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
opps sorry yeah that's it ( I forgot the -6).
 
Old 02-25-2005, 08:06 AM   #24
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
okay, got glibc installed just fine.

here is my new nvidia error:
Code:
ERROR: Failed to execute `/sbin/depmod -aq`: depmod: error reading ELF section
       data /lib/modules/2.4.26/kernel/drivers/hotplug/cpqphp.o.gz: Success
There is much more before and after that, but it's all successful. This is only error part.

PS: How do I check to see if that rivafb module is getting loaded, and if so remove it?
 
Old 02-25-2005, 03:17 PM   #25
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
do:

lsmod | grep rivafb

if it echoes (repeats) it back to you then it's loaded. Most of the time you don't have to worry about this, just remember you cannot load that module while the nvidia module is loaded.

dunno about your depmod error, have never had that one. you could try to download and install the kernel-modules-2.4.26-i486.tgz package from a slack mirror and see if that helps.
 
Old 02-25-2005, 05:38 PM   #26
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
thanks. I have not tried the kernel-modules package yet, just the kernel-source and glibc. I really need to burn a new slack CD if mine is this botched.
 
Old 02-25-2005, 09:50 PM   #27
Seiken
Member
 
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248

Original Poster
Rep: Reputation: 30
it worked! I finally have the nvidia drivers installed... haha, did that ever take long. thanks again to everyone
 
  


Reply



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
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 02:44 PM
How do I check which nvidia driver version I am using? jdblick SUSE / openSUSE 8 03-08-2005 11:55 PM
Problems with NVIDIA - gcc ver check fails timelord726 Linux - Software 2 08-12-2004 03:24 PM
check glibc version used by gcc carboncopy Slackware 3 08-12-2003 05:24 AM
NVidia Drivers gcc 3.2.2 thirdbanE Slackware 2 02-16-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:26 AM.

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
Open Source Consulting | Domain Registration