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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| |||
| -----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----- |
| |||
| 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. |
| |||
| 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 |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| ||||
| 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 |