LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-14-2004, 05:47 AM   #1
jmonolith2001
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core II
Posts: 6

Rep: Reputation: 0
Question /usr/bin/ld error recieved on make


I've been using Linux for about a year and am still relatively new. I'm attempting to install the svgalib package from www <dot> svgalib <dot> org and am running FCII.

The problem is this: after trying to install, everything seems to be working fine until the end. I can man vga_whatever and see the installed folder. Here is the end of what I get.

...
cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g -I/root/svgalib-1.4.3/include -I/root/svgalib-1.4.3/gl -s -o fun fun.c -lvgagl -lvga
fun.c: In function `writestat':
fun.c:381: warning: implicit declaration of function `strlen'
/usr/bin/ld: cannot find -lvgagl
collect2: ld returned 1 exit status
make[1]: *** [fun] Error 1
make[1]: Leaving directory `/root/svgalib-1.4.3/demos'
make[1]: Entering directory `/root/svgalib-1.4.3/threeDKit'
cc -s -o plane planukit.o planinit.o 3dinit.o 3dkit.o wrapsurf.o quickmath.o triangle.o striangle.o wtriangle.o swtriangle.o -lm -lvgagl -lvga
/usr/bin/ld: cannot find -lvgagl
collect2: ld returned 1 exit status
make[1]: *** [plane] Error 1
make[1]: Leaving directory `/root/svgalib-1.4.3/threeDKit'
make: *** [demoprogs] Error 2

I've looked over the forums here and haven't seen much that addresses this, but I think it's a linker error. What can I do to fix this?? I've tried changing LD_LIBRARY_PATH and LIB_PATH and everything else I can think of. Please help me out! Thanks!
 
Old 12-14-2004, 11:09 AM   #2
bostontech
LQ Newbie
 
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15
jmonolith,

Try setting your CC compiler to gcc.
setenv CC <path to gcc> (if using a csh derivative)
You may also need to set some flags to get the compiler to work.
Let me know how it goes.

BTG
 
Old 12-14-2004, 11:42 AM   #3
jmonolith2001
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core II
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply, but that didn't work. I didn't really know what to do with any flags info, so all I've done is set cc to use gcc. Any other suggestions?
 
Old 12-14-2004, 02:40 PM   #4
stanleyg76
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Rep: Reputation: 0
>> /usr/bin/ld: cannot find -lvgagl
the linker is looking for the library called 'libvgagl.so', but it can not
find it on your system. Check if you system has it installed, and if
so, recompile again, adding the following compiler flag:
'-L/path/to/the/directory'
where the above directory contains libvgagl.so
 
Old 12-28-2004, 04:23 AM   #5
SamX
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
hi there,

although jmonolith2001 has solved his problem, I want to post this because I had a similar problem when trying to compile K3B. I got this error:

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o libk3bdevice.la -rpath /usr/lib -L/usr/lib -L/usr/lib/qt-3.1/lib -L/usr/X11R6/lib -Wl,--enable-new-dtags -version-info 2:0:0 -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined k3bdevice.lo k3bscsicommand.lo k3btrack.lo k3btoc.lo k3bdevicemanager.lo k3bmsf.lo k3bdiskinfo.lo k3bdeviceglobals.lo k3bcrc.lo k3bcdtext.lo -lkio
/usr/bin/ld: cannot find -lart_lgpl_2
collect2: ld returned 1 exit status
make[3]: *** [libk3bdevice.la] Error 1
make[3]: Leaving directory `/home/sam/temp/k3b-0.11.18/src/device'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sam/temp/k3b-0.11.18/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sam/temp/k3b-0.11.18'
make: *** [all] Error 2

I made a "locate libart_lgpl_2" (based on the reply from stanleyg76) and found a '/usr/lib/libart_lgpl_2.so.2', so I only made a symlink "/usr/lib/libart_lgpl_2.so" pointing to "/usr/lib/libart_lgpl_2.so.2", and the problem was solved.

Hope someone can find this info useful.
 
  


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
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 04:28 AM
/usr/bin/ld: cannot find -lqt, make xconfig tuxandme Linux - Software 5 06-19-2005 02:04 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 08:55 PM
when running make get: usr/bin/ld: cannot find -lart_lgpl_2 nigma Linux - Software 0 02-12-2004 10:22 PM


All times are GMT -5. The time now is 05:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration