Sign in Join

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

Mailing lists / lazarus / 2008-03

Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8?

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Andrew Brunner

Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8?

We've got a discussion going on the forums but no comments. At least two of us on the forum have the same issue. The message is from ld regarding libglib. I have verified that a file with the actual library is there - not just a link.

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

http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=5151

What is wrong with the libglib.so that can throw this error? 64bit instead of 32bit library? What is it expecting on 64bit install?

Thanks!

Reply by email

Michael Van Canneyt
to Andrew Brunner
Andrew Brunner wrote 20 lines
Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8? We've got a discussion going on the forums but no comments. At least two of us on the forum have the same issue. The message is from ld regarding libglib. I have verified that a file with the actual library is there - not just a link. /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib project1.lpr(17,1) Error: Error while linking project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=5151 What is wrong with the libglib.so that can throw this error? 64bit instead of 32bit library? What is it expecting on 64bit install?

32bit instead of 64bit library seems to be the answer. 64bit libraries are in /usr/lib64. At least on SuSE, and I assume Fedora as well. Ubuntu and Debian have a different system.

Michael.

Reply by email

milan
to Michael Van Canneyt

Michael Van Canneyt wrote / nap?sal(a):

Show quoted text 34 lines
On Tue, 25 Mar 2008, Andrew Brunner wrote: > Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8? > > We've got a discussion going on the forums but no comments. At least > two of us on the forum have the same issue. The message is from ld > regarding libglib. I have verified that a file with the actual library > is there - not just a link. > > /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching > for -lglib > /usr/bin/ld: cannot find -lglib > project1.lpr(17,1) Error: Error while linking > project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping > > > http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=5151 > > > > What is wrong with the libglib.so that can throw this error? 64bit > instead of 32bit library? What is it expecting on 64bit install? 32bit instead of 64bit library seems to be the answer. 64bit libraries are in /usr/lib64. At least on SuSE, and I assume Fedora as well. Ubuntu and Debian have a different system. Michael. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

You can give both paths into the compiler settings, but Lazarus cannot see them (or find them).
Lazarus 0.9.25
Mandriva 2008 Spring RC2
I will play today with this problem.
Milan

Reply by email

Marc Weustink
to Andrew Brunner: Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8? We've got a…
Andrew Brunner wrote 20 lines
Does anyone have any idea why Lazarus won't compile on Redhat Fedora 8? We've got a discussion going on the forums but no comments. At least two of us on the forum have the same issue. The message is from ld regarding libglib. I have verified that a file with the actual library is there - not just a link. /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib project1.lpr(17,1) Error: Error while linking project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=5151 What is wrong with the libglib.so that can throw this error? 64bit instead of 32bit library? What is it expecting on 64bit install?

I'm running fc8 too (on a 64bit and 32 bit system) In my experience when you install a package, both versions of 32 and 64 bit get installed. However, sometimes when yum installs depenencies it forgets to install the 32 bit version on my 64 bit system.

you can try reinstalling it by "yum install glib"

Marc

Reply by email