collect2: ld returned 1 exit status

I am unsure as to what is going on here. I have tried a few things and got nothing.

james ~/NVIDIA_CUDA_SDK$ make
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/bank_checker.cpp.o a - obj/release/cmd_arg_reader.cpp.o a - obj/release/cutil.cpp.o a - obj/release/stopwatch.cpp.o a - obj/release/stopwatch_linux.cpp.o a - obj/release/multithreading.cpp.o make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/paramgl.cpp.ocollect2: ld returned 1 exit status a - obj/release/param.cpp.o make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/common' a - obj/release/rendercheck_gl.cpp.o make[1]: Leaving directory /home/james/NVIDIA_CUDA_SDK/common’
make -C projects/simpleGL/
make[1]: Entering directory /home/james/NVIDIA_CUDA_SDK/projects/simpleGL' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001250gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001253gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001252gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001254gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001249gl’
/usr/lib/gcc/i486-linux-gnu/4.2.4/…/…/…/…/lib/libGL.so: undefined reference to _nv001251gl' /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libGL.so: undefined reference to _nv001255gl’
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/simpleGL] Error 1
make[1]: Leaving directory `/home/james/NVIDIA_CUDA_SDK/projects/simpleGL’
make: *** [projects/simpleGL/Makefile.ph_build] Error 2

I obviously get these two errors. I am not sure if it is connecting up with the right libraries. I do not think it is.

I do not know if /usr/lib/ director’s permissions against do not permit write.

I have both libglut.so and libglu.so.3 in the library directory. /usr/lib/ so I am unsure as to what is going on. I guess the directory
has no write permission. Is that right?

newport_j

Which Linux distro is this?
Which version of CUDA did you install?

I am using Ubnutu 8.04. I installed version 2.1 of CUDA for Linux.

Respectfully,

Newport_j

The error you’re getting suggests that you’re not using the driver that you think you’re using. Please verify that you actually still have the latest CUDA_2.1 display driver installed. It should be 180.2x.

It really is only one error, and that error appears to be that you haven’t got the correct NVIDIA display drivers installed. The version of libGL on your system is the Mesa version and not the required NVIDIA one.

if you do this

[codebox]avid@quadro:~/NVIDIA_CUDA_SDK/common$ grep NVIDIA /usr/lib/libGL.so.1

Binary file /usr/lib/libGL.so.1 matches[/codebox]

and you don’t get the match report above, you don’t have the correct version and nothing is going to work.

It looks like you are correct. i am now planning on gettng a new NVIDA card. Will the new GeFORCE GTX 275

be able to handle CUDA? if so that is what I will get. Meanwhile can I just set this up to do emulation and work that

way until the new NVIDIA card arrives? It would just be a temporary measure.

Newport_j