LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2004, 01:58 PM   #1
Rodcl
Member
 
Registered: Apr 2002
Location: Manchester, England
Distribution: Slackware 9.1
Posts: 113

Rep: Reputation: 15
Question NVIDIA driver (4496) patched for kernel 2.6.x compatibility won't compile!


After patching the driver 4496 (patch from www.minion.de)
and trying to compile i got this:

bash-2.05b# make install
make[1]: Entering directory `/home/rod/linux-2.6.4'
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:132,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:4:25: asm/sockios.h: No such file or directory
In file included from scripts/fixdep.c:107:
/usr/include/netinet/in.h:218: syntax error before "__SOCKADDR_COMMON"
/usr/include/netinet/in.h:223: sizeof applied to an incomplete type
/usr/include/netinet/in.h:224: `__SOCKADDR_COMMON_SIZE' undeclared here (not in a function)
/usr/include/netinet/in.h:227: syntax error before '}' token
/usr/include/netinet/in.h:232: syntax error before "__SOCKADDR_COMMON"
/usr/include/netinet/in.h:237: syntax error before '}' token
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
/usr/include/ctype.h: At top level:
/usr/include/netinet/in.h:226: storage size of `sin_zero' isn't known
make[2]: *** [scripts/fixdep] Error 1
make[1]: *** [scripts] Error 2
make[1]: Leaving directory `/home/rod/linux-2.6.4'
make: *** [module] Error 2
bash-2.05b#

#For what i could gather from the internet it is looking for the header files found #/linux-2.6.4/include/asm-i386
#Tried doing symbolic links but the only one that seemed to work was : ln -s #/home/rod/linux-2.6.4/include/asm-i386/socket.h /usr/include/bits/socket.h
#which was found but not sockios.h
#the rest... i got no idea

the culprits:

kernel 2.6.4 (homemade)
nvidia driver 4496
2.6.x support patch from www.minion.de

hardware
Geforce 3 ti200










 
Old 04-25-2004, 02:51 PM   #2
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
are you installing the nvidia drivers in that output (i couldnt tell)? you should try the 5536 drivers, they work with the 2.6 kernels without any addon hacks/patches.
 
Old 04-25-2004, 03:24 PM   #3
Rodcl
Member
 
Registered: Apr 2002
Location: Manchester, England
Distribution: Slackware 9.1
Posts: 113

Original Poster
Rep: Reputation: 15
yes i am just after patching the driver.I am currently using those same drivers (5536) @ the moment not very stable i must say, e.i machine crashing while playing ut2004 and very jerky and for what i have read in forums and around the internet is that 4496 is more stable and gives a better squeeze out of your video card that is why i want to switch back
 
Old 04-25-2004, 04:50 PM   #4
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
i think i can agree about the reasons, although about the error, i think it could be a bug in the patch/driver/kernel, or maybe the patch wasnt made for that specific kernel version.
 
Old 04-25-2004, 09:43 PM   #5
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:4:25: asm/sockios.h: No such file or directory

I think these missing files are the issue...
 
Old 04-26-2004, 07:01 AM   #6
Rodcl
Member
 
Registered: Apr 2002
Location: Manchester, England
Distribution: Slackware 9.1
Posts: 113

Original Poster
Rep: Reputation: 15
Indeed but the thing is if i knew where this directories are : /usr/include/bits/local_lim.h:36:26: "linux/limits.h": No such file or directory
i could make simbolic links same with sockios.h : did a symbolic link from /../..include/bits/sockios.h to /home/rod/linux-2.6.4/inlcude/asm-i386/sockios.h
but nothing , also the part i don't understrand is:asm/sockios.h: No such file or directory, looked for this directory could not find it!
 
  


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
Is it possible to compile kernel with nvidia driver? subaruwrx Linux - Newbie 2 10-04-2004 06:18 AM
NVIDIA Driver Error after Kernel Compile lasindi Linux - General 2 04-26-2004 06:55 PM
nVidia 10-4496 driver causes segmentation faults in Redhat 9 applications. ithaqua Linux - Hardware 0 10-22-2003 11:05 PM
nVidia 4496 driver can handle init 3 when I append vga to kernel? linuxlah Linux - General 0 08-12-2003 07:53 PM
new nvidia driver released today! (4496) neenee Linux - General 13 07-31-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration