Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 03-30-2004, 04:52 PM   #1
Registered: Dec 2003
Posts: 55

Rep: Reputation: 15
blfs nvidia driver installation


i've installed x and i have a geforce3 video card and want to take advantage of 3d graphics, and the current ia32 driver installer complains it cannot load the nvidia.o module. My kernel is linux-2.4.23 with the udf packet writing patch applied. i specified --kernel-source-path, and it still compains, and i did compile kernel module support. So I was wondering if anybody had any advice. Google hasn't guided me to anything useful, and i figure i built an lfs so this would be the place to post. I'm sorry if you don't want blfs posts here.
Old 03-30-2004, 05:27 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What does it say in the installer log in /var/log/nvidia-installer.log?
Old 03-30-2004, 06:24 PM   #3
Registered: Dec 2003
Posts: 55

Original Poster
Rep: Reputation: 15
my /var/log entry verbetim

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Mar 30 17:57:42 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : /usr/src/linux
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site :

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site ( (Answer: Yes)
ERROR: Unable to connect to (temporary DNS error (try again
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Using the kernel source path '/usr/src/linux' as specified by the
'--kernel-source-path' commandline option.
-> Kernel source path: '/usr/src/linux'
-> Performing cc_version_check with CC="/opt/gcc-2.95.3/bin/gcc".
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *
.d NVdriver nvidia.o
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux'...
echo \#define NV_COMPILER \"`/opt/gcc-2.95.3/bin/gcc -v 2>&1 | tail -n 1`\"
> nv_compiler.h
/opt/gcc-2.95.3/bin/gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O
86 -DREMAP_PAGE_RANGE_4 -I. -I/usr/src/linux/include -Wno-cast-qual -W
no-error nv.c
/opt/gcc-2.95.3/bin/gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O
86 -DREMAP_PAGE_RANGE_4 -I. -I/usr/src/linux/include -Wno-cast-qual -W
ror os-agp.c
/opt/gcc-2.95.3/bin/gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O
86 -DREMAP_PAGE_RANGE_4 -I. -I/usr/src/linux/include -Wno-cast-qual -W
no-error os-interface.c
/opt/gcc-2.95.3/bin/gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O
86 -DREMAP_PAGE_RANGE_4 -I. -I/usr/src/linux/include -Wno-cast-qual -W
no-error os-registry.c
ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o
ld -r -o nvidia.o nv-linux.o nv-kernel.o
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.
-> Kernel module load error: ./usr/src/nv/nvidia.o: unresolved symbol
./usr/src/nv/nvidia.o: unresolved symbol pci_write_config_byte
./usr/src/nv/nvidia.o: unresolved symbol devfs_unregister_chrdev
./usr/src/nv/nvidia.o: unresolved symbol remap_page_range
./usr/src/nv/nvidia.o: unresolved symbol proc_root_driver
./usr/src/nv/nvidia.o: unresolved symbol _mmx_memcpy
./usr/src/nv/nvidia.o: unresolved symbol schedule_timeout
./usr/src/nv/nvidia.o: unresolved symbol devfs_register
./usr/src/nv/nvidia.o: unresolved symbol pm_unregister
./usr/src/nv/nvidia.o: unresolved symbol __wake_up
./usr/src/nv/nvidia.o: unresolved symbol mtrr_add
./usr/src/nv/nvidia.o: unresolved symbol __generic_copy_from_user
./usr/src/nv/nvidia.o: unresolved symbol __udelay
./usr/src/nv/nvidia.o: unresolved symbol vsprintf
./usr/src/nv/nvidia.o: unresolved symbol inter_module_get_request
./usr/src/nv/nvidia.o: unresolved symbol kmalloc
./usr/src/nv/nvidia.o: unresolved symbol pci_find_class
./usr/src/nv/nvidia.o: unresolved symbol __tasklet_schedule
./usr/src/nv/nvidia.o: unresolved symbol create_proc_entry
./usr/src/nv/nvidia.o: unresolved symbol pci_read_config_byte
./usr/src/nv/nvidia.o: unresolved symbol inter_module_put
./usr/src/nv/nvidia.o: unresolved symbol __get_free_pages
./usr/src/nv/nvidia.o: unresolved symbol vfree
./usr/src/nv/nvidia.o: unresolved symbol boot_cpu_data
./usr/src/nv/nvidia.o: unresolved symbol free_irq
./usr/src/nv/nvidia.o: unresolved symbol inter_module_get
./usr/src/nv/nvidia.o: unresolved symbol high_memory
./usr/src/nv/nvidia.o: unresolved symbol kill_proc
./usr/src/nv/nvidia.o: unresolved symbol strncpy_from_user
./usr/src/nv/nvidia.o: unresolved symbol pci_read_config_dword
./usr/src/nv/nvidia.o: unresolved symbol devfs_unregister
./usr/src/nv/nvidia.o: unresolved symbol iounmap
./usr/src/nv/nvidia.o: unresolved symbol change_page_attr
./usr/src/nv/nvidia.o: unresolved symbol free_pages
./usr/src/nv/nvidia.o: unresolved symbol __ioremap
./usr/src/nv/nvidia.o: unresolved symbol pci_read_config_word
./usr/src/nv/nvidia.o: unresolved symbol do_gettimeofday
./usr/src/nv/nvidia.o: unresolved symbol mtrr_del
./usr/src/nv/nvidia.o: unresolved symbol del_timer
./usr/src/nv/nvidia.o: unresolved symbol pm_register
./usr/src/nv/nvidia.o: unresolved symbol mod_timer
./usr/src/nv/nvidia.o: unresolved symbol __pollwait
./usr/src/nv/nvidia.o: unresolved symbol kfree
./usr/src/nv/nvidia.o: unresolved symbol remove_proc_entry
./usr/src/nv/nvidia.o: unresolved symbol pci_find_slot
./usr/src/nv/nvidia.o: unresolved symbol request_irq
./usr/src/nv/nvidia.o: unresolved symbol devfs_register_chrdev
./usr/src/nv/nvidia.o: unresolved symbol pci_write_config_dword
./usr/src/nv/nvidia.o: unresolved symbol pci_find_device
./usr/src/nv/nvidia.o: unresolved symbol mem_map
./usr/src/nv/nvidia.o: unresolved symbol pci_write_config_word
./usr/src/nv/nvidia.o: unresolved symbol sprintf
./usr/src/nv/nvidia.o: unresolved symbol init_mm
./usr/src/nv/nvidia.o: unresolved symbol jiffies
./usr/src/nv/nvidia.o: unresolved symbol __vmalloc
./usr/src/nv/nvidia.o: unresolved symbol printk
./usr/src/nv/nvidia.o: unresolved symbol irq_stat
./usr/src/nv/nvidia.o: unresolved symbol __const_udelay
./usr/src/nv/nvidia.o: unresolved symbol __generic_copy_to_user
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. Contact the module supplier for
assistance, only they can help you.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at
Old 04-02-2004, 12:11 AM   #4
Registered: Dec 2003
Posts: 55

Original Poster
Rep: Reputation: 15

I have solved the problem by compiling my kernel with gcc-3.3.1. For some reason the nvidia driver fails under gcc-2.95.3. This is interesting, and I really don't have any clue why, and it would be cool if anyone knew why and could help me find out. I really don't have much knowledge about how gcc works so if anyone could refer me to some text about how it works please post.

Old 04-02-2004, 12:47 PM   #5
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well done for getting it fixed. I don't know where to look for info about gcc as I've never needed to but if I was looking I'd start at the gcc home page
For what it's worth I too use gcc-3.3.1 to compile the kernel and I don't see any problems with it. I see far fewer warning messages when I compile the Alsa drivers with gcc-3.3 which suggests that the code was not written to be compiled with gcc-2.95.
Just my two pence worth. Again, well done for getting it fixed
Old 04-03-2004, 01:06 PM   #6
Registered: Aug 2003
Distribution: GoboLinux
Posts: 167

Rep: Reputation: 30
Somewhat offtopic, but do the kernel developers still recommend using gcc 2.9x to compile the kernel?

I've been ignoring them and happily using gcc 3.x for a long time now, but it would be nice to be validated
Old 04-08-2004, 03:36 AM   #7
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
When you were trying to create the Nvidia driver, did you make sure to use "CC=/opt/to/gcc-2.95.3 sh Nvidia-installer" as one command on the command line? I ask because the driver, after being made, wont work since all modules made for the kernel must be made using the same compiler that was used to compile the kernel. So if you compile the kernel using gcc 3.3.1 (or whatever), then running sh Nvidia-installer is all you have to do since gcc 3.3.1 will be used automatically. However, for a kernel compiled with 2.95.3 one needs CC=/path/to/gcc.used.for.kernel typed before sh Nvidia-installer to get it to work with the kernel (since again gcc 3.3.1 is what would normally get called).

Anyway, I have had no problem with the Nvidia driver (when called with the CC flag) and a kernel compiled using 2.95.3.
Old 04-08-2004, 05:37 AM   #8
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
That's true but the Nvidia installer will complain if you don't set the CC compiler as the same one that was used to compile the kernel. You can override it and force it to use a different compiler but that clearly didn't happen in this case. The facts are recorded in /var/log/nvidia-installer.log
-> Performing cc_version_check with CC="/opt/gcc-2.95.3/bin/gcc"


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
Nvidia Driver Installation redhatbadboi Fedora 7 02-13-2005 05:55 PM
Trouble with new nVidia driver nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 09:45 AM
Nvidia driver installation help... visualblind Linux - Software 8 08-07-2004 02:34 PM
nvidia driver installation simonwindt Debian 11 11-04-2003 05:05 AM
NVIDIA driver installation Dave Johnston Linux - General 2 10-31-2001 12:28 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:15 PM.

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