Unix Technical Forum

Compile error

This is a discussion on Compile error within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I see very often this error message when I try to compile programs in slackware 12: /usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: cannot find ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 10:03 PM
Robert
 
Posts: n/a
Default Compile error

I see very often this error message when I try to compile programs in
slackware 12:

/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
cannot find -lgd
collect2: ld returned 1 exit status
Error during linking

I have searched on the internet, but I didn't find any solution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 10:03 PM
Keith Keller
 
Posts: n/a
Default Re: Compile error

On 2007-07-14, Robert <robi@news.net> wrote:
> I see very often this error message when I try to compile programs in
> slackware 12:
>
> /usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
> cannot find -lgd
> collect2: ld returned 1 exit status
> Error during linking


Did you install the GD library? That's what -lgd is looking for.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 10:03 PM
Res
 
Posts: n/a
Default Re: Compile error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

On Sat, 14 Jul 2007, Robert wrote:

>
> I see very often this error message when I try to compile programs in
> slackware 12:
>
> /usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
> cannot find -lgd
> collect2: ld returned 1 exit status
> Error during linking


What type of programs?


--
Cheers
Res
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGmG/LsWhAmSIQh7MRAiV0AKCAsxi4gEHgwngfGcF+nIwUK2LdngCgr Qt/
oEgKcYf8V+trGkalLOGND7M=
=yRA7
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 10:03 PM
Thomas Overgaard
 
Posts: n/a
Default Re: Compile error


Robert wrote :

> I see very often this error message when I try to compile programs in
> slackware 12:


Name one of the programs.
>
> cannot find -lgd


Did you do a full install? It looks like your missing this package:
/slackware/l/gd-2.0.35-i486-2.tgz
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 10:03 PM
Robert
 
Posts: n/a
Default Re: Compile error

On Sat, 14 Jul 2007 08:50:54 +0200
Thomas Overgaard <thover@post2.tele.dk> wrote:

>
> Robert wrote :
>
> > I see very often this error message when I try to compile programs
> > in slackware 12:

>
> Name one of the programs.
> >
> > cannot find -lgd

>
> Did you do a full install? It looks like your missing this package:
> /slackware/l/gd-2.0.35-i486-2.tgz


I can't remember now all of those programs, the last was mldonkey.
The package gd-2.0.35-i486-2 is installed.

/var/log/packages/gd-2.0.35-i486-2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 10:03 PM
Robi
 
Posts: n/a
Default Re: Compile error

On Sat, 14 Jul 2007 08:50:54 +0200
Thomas Overgaard <thover@post2.tele.dk> wrote:

>
> Robert wrote :
>
> > I see very often this error message when I try to compile programs
> > in slackware 12:

>
> Name one of the programs.


mldonkey-2.8.7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 10:03 PM
Thomas Overgaard
 
Posts: n/a
Default Re: Compile error


Robert wrote :

> I can't remember now all of those programs, the last was mldonkey.
>

And you couldn't come up with an example that didn't require some kind of
obscure programming language? Anyway I gave mldonkey a try and 'make' ran
fine without producing the errors you see.

> /var/log/packages/gd-2.0.35-i486-2


Maybe that package has somehow been corrupted, download the package from
another server and reinstall.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 10:03 PM
Robert
 
Posts: n/a
Default Re: Compile error

On Sat, 14 Jul 2007 14:53:23 +0200
Thomas Overgaard <thover@post2.tele.dk> wrote:

> Maybe that package has somehow been corrupted, download the package
> from another server and reinstall.


It didn't help. But I have tried with ./configure --disable-gd and now
the error is:

/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld:
cannot find -lmagic
collect2: ld returned 1 exit status
Error during linking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 10:03 PM
Thomas Overgaard
 
Posts: n/a
Default Re: Compile error


Robert wrote :

> cannot find -lmagic


Not good. Does this command produce any output:
'/sbin/ldconfig -p | grep libMagic'
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 10:03 PM
Robert
 
Posts: n/a
Default Re: Compile error

On Sat, 14 Jul 2007 17:09:31 +0200
Thomas Overgaard <thover@post2.tele.dk> wrote:

>
> Robert wrote :
>
> > cannot find -lmagic

>
> Not good. Does this command produce any output:
> '/sbin/ldconfig -p | grep libMagic'


Yes, this:
libMagick.so.10 (libc6) => /usr/lib/libMagick.so.10
libMagick.so (libc6) => /usr/lib/libMagick.so
libMagick++.so.10 (libc6) => /usr/lib/libMagick++.so.10
libMagick++.so (libc6) => /usr/lib/libMagick++.so
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com