Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

Error during linkage editing

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free.

I'm receivng the error:

/usr/bin/ld: cannot find -lglib

during linkage editing.

I think there's one or more libraries missing(or, at least, a symbolic link). How can I discover what is the trouble? Can someone of you explain a step-by-step way of solve it?

The strange for me is that there are some applications that I can link edit...

Greetings from Sao Paulo - Brazil

Ricardo

P.S.: Suppose I'm not an expert in linux, please.

Reply by email

Henry Vermaak
to Arí Ricardo Ody

2008/11/23 Ar? Ricardo Ody :

Show quoted text 10 lines
I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. I'm receivng the error: /usr/bin/ld: cannot find -lglib during linkage editing. I think there's one or more libraries missing(or, at least, a symbolic link). How can I discover what is the trouble? Can someone of you explain a step-by-step way of solve it?

it means there is a symbolic link missing. -lglib means it's trying to link against libglib.so. you can fix this by installing a package like libglib-dev, or similar.

henry

Reply by email

Mattias Gaertner
to Arí Ricardo Ody: I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. I'm receivng the error:…
Show quoted text 20 lines
I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. I'm receivng the error: /usr/bin/ld: cannot find -lglib during linkage editing. I think there's one or more libraries missing(or, at least, a symbolic link). How can I discover what is the trouble? Can someone of you explain a step-by-step way of solve it? The strange for me is that there are some applications that I can link edit... Greetings from Sao Paulo - Brazil Ricardo P.S.: Suppose I'm not an expert in linux, please.

Have you tried

http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_on_Mandriva

?

Mattias

Reply by email

Hans-Peter Diettrich
to Arí Ricardo Ody: I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. I'm receivng the error:…
Show quoted text 5 lines
I'm receivng the error: /usr/bin/ld: cannot find -lglib during linkage editing.

...

P.S.: Suppose I'm not an expert in linux, please.

Me too :-(

But I solved the same problem just lately, here are some hints:

The message indicates that the linker (ld) couldn't find an glib.la file in any library directory. The library path is system dependent, I found the files in /usr/lib64/.

A shared library seems to come in 2 parts, where the glib package only installs libglib*.so runtime modules, and another glib-devel package installs the glib.la file, which is essential for ld. The .la files contain pure text, have a look at one if you're curious.

Make sure that you install the basic glib (here: libglib-1.2.*)! The -2.0 version doesn't help, it installs e.g. an glib-2.0.la file that is not acceptable to the linker, when looking for -lglib.

You may have to install gtk as well, AFAIR also the basic version, including libgdk_pixbuf and further libraries or symbols. Again look for the according lib*.so and *.la files in your library directory.

The FAQ sould be more verbose about such errors, so that a dumb user can determine the required packages and how to install them. The current version is understandable only to skilled admins, and doesn't take into account newer versions of the same libraries :-(

DoDi

Reply by email

Arí Ricardo Ody
to Mattias Gaertner: On Sun, 23 Nov 2008 09:47:38 -0200 Have you tried…

I'd go to http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_on_Mandriva and follow the steps suggested there.

I uninstall via rpm fpc/fpc-src/lazarus

I'd download the packages fpc/fpc-docs/fpc-src and lazarus from the link suggested.

I'd open Konqueror and doble click over the downloaded packages as suggested. The 1st time it asks for the root password as expected.

Every installation runs ok. No dependencies reported.

I ran lazarus again and receive the messages:

/usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib
/usr/bin/ld: cannot find -lglib
FrontEndForBasicCompressionDecompression.lpr(23,1) Error: Error while linking
FrontEndForBasicCompressionDecompression.lpr(23,1) Fatal: There were 1 errors compiling module, stopping

May someone tell where do I go now? Every time I install a new version of Mandriva Lazarus doesn't runs ok before a lot of troubles. Why do it installs ok under Fedora with GNome for example?

Cheers

Ricardo

Mattias Gaertner wrote 38 lines
On Sun, 23 Nov 2008 09:47:38 -0200 "Ar? Ricardo Ody" wrote: > I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. > > I'm receivng the error: > > /usr/bin/ld: cannot find -lglib > > during linkage editing. > > I think there's one or more libraries missing(or, at least, a > symbolic link). How can I discover what is the trouble? Can someone > of you explain a step-by-step way of solve it? > > The strange for me is that there are some applications that I can > link edit... > > Greetings from Sao Paulo - Brazil > > Ricardo > > P.S.: Suppose I'm not an expert in linux, please. Have you tried http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_on_Mandriva ? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Luca Olivetti
to Arí Ricardo Ody

En/na Ar? Ricardo Ody ha escrit:

Show quoted text 5 lines
I ran lazarus again and receive the messages: /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib

It's looking for a file named libglib.so.
Open a console and issue an "urpmf libglib.so", it should list all the packages containing files which name contains "libglib.so". Disregard the various "libglib.so.x.y" (where x,y are numbers), and note the name of the package that list libglib.so with no extra characters at the end. Install that package ("urpmi <package name>" as root) and you should be set. I'm not running mandriva right now, so I cannot tell you the results of the above commands, however , it tells me that
it is in libglib1.2-devel

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007

Reply by email

Arí Ricardo Ody
to Luca Olivetti

I follow your suggestion and solve the error with libglib.

There were errors with libgdk and libgdk_pixbuf. I solve them in the same way and finally it seems that lazarus is running ok.

The troubles will begin only when I install Mandriva 2009, some day....

It's good to say that the explanation about install lazarus that is documented in the Lazarus site doesn't explain this solution...

Thank you very much, Luca

Ricardo

Luca Olivetti wrote 31 lines
En/na Ar? Ricardo Ody ha escrit: > > I ran lazarus again and receive the messages: > > /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib > /usr/bin/ld: cannot find -lglib It's looking for a file named libglib.so. Open a console and issue an "urpmf libglib.so", it should list all the packages containing files which name contains "libglib.so". Disregard the various "libglib.so.x.y" (where x,y are numbers), and note the name of the package that list libglib.so with no extra characters at the end. Install that package ("urpmi <package name>" as root) and you should be set. I'm not running mandriva right now, so I cannot tell you the results of the above commands, however , it tells me that it is in libglib1.2-devel Bye -- Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Arí Ricardo Ody
to Mattias Gaertner: On Sun, 23 Nov 2008 09:47:38 -0200 Have you tried…

Hi Mattias!

I tried the esplanation you suggest and it doesn't solves the trouble. It was only solved when I apply the corrections suggested by Mr. Luca in an e-mail that he sends to this mailing list.

Cheers

Ricardo

Mattias Gaertner wrote 38 lines
On Sun, 23 Nov 2008 09:47:38 -0200 "Ar? Ricardo Ody" wrote: > I'm running lazarus 0.9.26 under Mandriva 2008 Spring Free. > > I'm receivng the error: > > /usr/bin/ld: cannot find -lglib > > during linkage editing. > > I think there's one or more libraries missing(or, at least, a > symbolic link). How can I discover what is the trouble? Can someone > of you explain a step-by-step way of solve it? > > The strange for me is that there are some applications that I can > link edit... > > Greetings from Sao Paulo - Brazil > > Ricardo > > P.S.: Suppose I'm not an expert in linux, please. Have you tried http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_on_Mandriva ? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email