Sign in Join

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

Mailing lists / lazarus / 2008-03

Fedora 8 problem

11 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

ron schultz

Since I'm new to Linux it is entirely possible I've done something wrong. I downloaded the rpm's. I did have problems with dependencies. Tried several things with rpm and yum.

I have Lazarus 9.24 working on the P3 with Fedora 8.

I have never been able to get Lazarus 9.24 working on the AMD Athalon X2 BE2400 with Fedora 8.

Test machines.
AMD Athalon X2 BE2400 2.3 Ghz Fedora 8.
P3 500Mhz Fedora 8.

Below are 2 posts copied from the Linux forum. If I did not use the install below I ended up with an error something like "lazarus dependency = fpc 2.2.0" even though fpc was already installed.

start of 1st post

I've finally been able to install fpc/lazarus (x86_64) on an AMDx64 with Fedora 8 without dependency errors. This is how I finally did it.

rpm -Uvh fpc-2.2.0-0.x86_64.rpm fpc-src-2.2.0-071110.x86_64.rpm fpc-doc-2.2.0-10.fc8.x86_64.rpm lazarus-0.9.24-0.x86_64.rpm Preparing... ########################################### [100%] 1:fpc ########################################### [ 25%] Running on linux
Write permission in /etc.
Saved old config to /etc/fpc.cfg.orig
Found libgcc.a in /usr/lib/gcc/x86_64-redhat-linux/4.1.2 Writing sample configuration file to /etc/fpc.cfg
2:fpc-src ########################################### [ 50%] 3:fpc-doc ########################################### [ 75%] 4:lazarus ########################################### [100%]

*********
Everything seems to be there but when I try to compile even a blank form I get this message.

/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

*********
When I try to install this rpm I get this message. So that was not the problem. Some version issue I guess.

rpm -Uvh compiz-gnome-0.6.2-3.fc8.x86_64.rpm
Preparing... ########################################### [100%] package compiz-gnome-0.6.2-3.fc8.x86_64 is already installed

********
What's the solution to the libglib.so problem? I've tried recompiling lazarus but that does not work and then lazarus will not even run. I've got 2 earlier post so disregard them. I'm new to linux so I need simple explanations for a simple person. I want to use lazarus with Fedora 8.

end of 1st post

start of 2nd post

Still trying to get lazarus to compile using x86_64. Response to my previous post "Fedora 8 and Lazarus" indicates one other person has identical problem with no solution. A google search seems to indicate that in general this error means that the program is trying to use a 32 bit library rather than a 64 bit library.

I do not know what I'm looking for but I do not see any oblious problem in "Compiler Options", "Environment Options | Files" or "/etc/fpc.cfg".

Why is the compiler looking in /usr/lib instead of /usr/lib64? There is a libglib.so in /usr/lib but not in /usr/lib64. In /usr/lib64/ there are libglib-1.2.so.0, libglib-1.2.so.0.0.10 and libglib-2.0.so.

It would seem to me that there is a path problem somewhere in fpc or lazarus. I also found a message on the ATRPMS site that they had a problem with x86_64 and Fedora 8 and that it would not be fixed until lazarus 9.25.

The complete error message is.

/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

Does anyone have fpc 2.2 and lazarus 9.24 working with fedora 8 and x86_64?

end of 2nd post

This appears to me to be a problem with x86_64. I'm kind of limited to testing with these 2 machines. I built the AMD Athalon X2 BE2400 to start using with Linux. I have some familarity with Fedora and do not want move to a different dristro. I'm willing to help do some testing but as I've indicated my Linux skills are very limited.

thanks ron

Reply by email

Mattias Gaertner
to ron schultz
[...] I have Lazarus 9.24 working on the P3 with Fedora 8.

:)

I have never been able to get Lazarus 9.24 working on the AMD Athalon X2 BE2400 with Fedora 8.

I only tried FC7 on x86_64.
Did you see this:

http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Lazarus_.2B_fpc_For_Mandriva_2007_X86_64

Show quoted text 13 lines
[...] ********* Everything seems to be there but when I try to compile even a blank form I get this message. /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 ********* When I try to install this rpm I get this message.

What rpm?
The glib is not enough. You need the glib-devel package too and some more.

Show quoted text 17 lines
So that was not the problem. Some version issue I guess. rpm -Uvh compiz-gnome-0.6.2-3.fc8.x86_64.rpm Preparing... ########################################### [100%] package compiz-gnome-0.6.2-3.fc8.x86_64 is already installed ******** What's the solution to the libglib.so problem? I've tried recompiling lazarus but that does not work and then lazarus will not even run. I've got 2 earlier post so disregard them. I'm new to linux so I need simple explanations for a simple person. I want to use lazarus with Fedora 8. end of 1st post start of 2nd post

Please create one new thread/mail for each topic.

Mattias

Reply by email

ron schultz
to Mattias Gaertner
Mattias Gaertner wrote 66 lines
On Thu, 27 Mar 2008 11:43:32 -0500 "ron schultz" wrote: >[...] > I have Lazarus 9.24 working on the P3 with Fedora 8. :) > I have never been able to get Lazarus 9.24 working on the AMD Athalon > X2 BE2400 with Fedora 8. I only tried FC7 on x86_64. Did you see this: http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Lazarus_.2B_fpc_For_Mandriva_2007_X86_64 >[...] > ********* > Everything seems to be there but when I try to compile even a blank > form I get this message. > > /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 > > ********* > When I try to install this rpm I get this message. What rpm? The glib is not enough. You need the glib-devel package too and some more. > So that was not the > problem. Some version issue I guess. > > rpm -Uvh compiz-gnome-0.6.2-3.fc8.x86_64.rpm > Preparing... ########################################### [100%] > package compiz-gnome-0.6.2-3.fc8.x86_64 is already installed > > ******** > What's the solution to the libglib.so problem? I've tried recompiling > lazarus but that does not work and then lazarus will not even run. > I've got 2 earlier post so disregard them. I'm new to linux so I need > simple explanations for a simple person. I want to use lazarus with > Fedora 8. > > end of 1st post > > start of 2nd post Please create one new thread/mail for each topic. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

I added gd-devel-2.0.35-1.fc8.x86_64. That changed the error to "can not find -lgdk" I think that is what I did! But if I remove that package the error does not go back to
/usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib

I have reinstalled gd-devel-2.0.35-1.fc8.x86_64.
I then added gkk-pixbuf-devel-1.0.22.0-35.fc8.x86_64. The error remains "can not find -lgdk".
I then added gd-prog-2.0.35-1.fc8.x86_64. Same error. There are packages referring to glib and glib-devel and gtk+ that are not installed but they are i386 packages. I am assuming I do not need them.

Reply by email

Mattias Gaertner
to ron schultz
Show quoted text 14 lines
[...] I added gd-devel-2.0.35-1.fc8.x86_64. That changed the error to "can not find -lgdk" I think that is what I did! But if I remove that package the error does not go back to /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib I have reinstalled gd-devel-2.0.35-1.fc8.x86_64. I then added gkk-pixbuf-devel-1.0.22.0-35.fc8.x86_64. The error remains "can not find -lgdk". I then added gd-prog-2.0.35-1.fc8.x86_64. Same error. There are packages referring to glib and glib-devel and gtk+ that are not installed but they are i386 packages. I am assuming I do not need them.

Are you aware, that there two gtk versions? 1.2 and 2. The 1.2 is more stable and therefore the default under lazarus.

I heard that FC8 no longer supports gtk1.2.
You can build the gtk2 lazarus:

Download lazarus from svn or tgz. For example:

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

You should now have the lazarus sources.
Now build the gtk2 IDE:
cd lazarus
export LCL_PLATFORM=gtk2; make clean all bigide

Mattias

Reply by email

Joost van der Sluis
to ron schultz: On Thu, Mar 27, 2008 at 4:50 PM, Mattias Gaertner I added gd-devel-2.0.35-1.fc8.x86_64.…

Op donderdag 27-03-2008 om 18:06 uur [tijdzone -0500], schreef ron schultz:

Show quoted text 73 lines
On Thu, Mar 27, 2008 at 4:50 PM, Mattias Gaertner wrote: > On Thu, 27 Mar 2008 11:43:32 -0500 > "ron schultz" wrote: > > >[...] > > > I have Lazarus 9.24 working on the P3 with Fedora 8. > > :) > > > > I have never been able to get Lazarus 9.24 working on the AMD Athalon > > X2 BE2400 with Fedora 8. > > I only tried FC7 on x86_64. > Did you see this: > > http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Lazarus_.2B_fpc_For_Mandriva_2007_X86_64 > > > >[...] > > > ********* > > Everything seems to be there but when I try to compile even a blank > > form I get this message. > > > > /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 > > > > ********* > > When I try to install this rpm I get this message. > > What rpm? > The glib is not enough. You need the glib-devel package too and some > more. > > > > > So that was not the > > problem. Some version issue I guess. > > > > rpm -Uvh compiz-gnome-0.6.2-3.fc8.x86_64.rpm > > Preparing... ########################################### [100%] > > package compiz-gnome-0.6.2-3.fc8.x86_64 is already installed > > > > ******** > > What's the solution to the libglib.so problem? I've tried recompiling > > lazarus but that does not work and then lazarus will not even run. > > I've got 2 earlier post so disregard them. I'm new to linux so I need > > simple explanations for a simple person. I want to use lazarus with > > Fedora 8. > > > > end of 1st post > > > > start of 2nd post > > Please create one new thread/mail for each topic. > > Mattias > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > I added gd-devel-2.0.35-1.fc8.x86_64. That changed the error to "can not find -lgdk" I think that is what I did! But if I remove that package the error does not go back to /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching for -lglib /usr/bin/ld: cannot find -lglib

You also need gdk-pixbuf and gdk-pixbuf-devel

Joost

Reply by email

Lee Jenkins
to ron schultz: Since I'm new to Linux it is entirely possible I've done something wrong. I downloaded…
ron schultz wrote 93 lines
Since I'm new to Linux it is entirely possible I've done something wrong. I downloaded the rpm's. I did have problems with dependencies. Tried several things with rpm and yum. I have Lazarus 9.24 working on the P3 with Fedora 8. I have never been able to get Lazarus 9.24 working on the AMD Athalon X2 BE2400 with Fedora 8. Test machines. AMD Athalon X2 BE2400 2.3 Ghz Fedora 8. P3 500Mhz Fedora 8. Below are 2 posts copied from the Linux forum. If I did not use the install below I ended up with an error something like "lazarus dependency = fpc 2.2.0" even though fpc was already installed. start of 1st post I've finally been able to install fpc/lazarus (x86_64) on an AMDx64 with Fedora 8 without dependency errors. This is how I finally did it. rpm -Uvh fpc-2.2.0-0.x86_64.rpm fpc-src-2.2.0-071110.x86_64.rpm fpc-doc-2.2.0-10.fc8.x86_64.rpm lazarus-0.9.24-0.x86_64.rpm Preparing... ########################################### [100%] 1:fpc ########################################### [ 25%] Running on linux Write permission in /etc. Saved old config to /etc/fpc.cfg.orig Found libgcc.a in /usr/lib/gcc/x86_64-redhat-linux/4.1.2 Writing sample configuration file to /etc/fpc.cfg 2:fpc-src ########################################### [ 50%] 3:fpc-doc ########################################### [ 75%] 4:lazarus ########################################### [100%] ********* Everything seems to be there but when I try to compile even a blank form I get this message. /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 ********* When I try to install this rpm I get this message. So that was not the problem. Some version issue I guess. rpm -Uvh compiz-gnome-0.6.2-3.fc8.x86_64.rpm Preparing... ########################################### [100%] package compiz-gnome-0.6.2-3.fc8.x86_64 is already installed ******** What's the solution to the libglib.so problem? I've tried recompiling lazarus but that does not work and then lazarus will not even run. I've got 2 earlier post so disregard them. I'm new to linux so I need simple explanations for a simple person. I want to use lazarus with Fedora 8. end of 1st post start of 2nd post Still trying to get lazarus to compile using x86_64. Response to my previous post "Fedora 8 and Lazarus" indicates one other person has identical problem with no solution. A google search seems to indicate that in general this error means that the program is trying to use a 32 bit library rather than a 64 bit library. I do not know what I'm looking for but I do not see any oblious problem in "Compiler Options", "Environment Options | Files" or "/etc/fpc.cfg". Why is the compiler looking in /usr/lib instead of /usr/lib64? There is a libglib.so in /usr/lib but not in /usr/lib64. In /usr/lib64/ there are libglib-1.2.so.0, libglib-1.2.so.0.0.10 and libglib-2.0.so. It would seem to me that there is a path problem somewhere in fpc or lazarus. I also found a message on the ATRPMS site that they had a problem with x86_64 and Fedora 8 and that it would not be fixed until lazarus 9.25. The complete error message is. /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 Does anyone have fpc 2.2 and lazarus 9.24 working with fedora 8 and x86_64? end of 2nd post

I have only ever used CentOS myself as I am a linux uber noob. It has an installation menu where you can choose specific groups of applications, etc to install and a couple of these have developer oriented package groups listed. Selecting these to be installed, I haven't had a problems with supporting files and libraries for development.

Does Fedora have something like this?

P.S. I do have some troubles getting gtk2 files to be correctly installed and gave up for a bit since I didn't really *need* them, but other than that, pretty easy to install then download lazarus rpm and install that too.

Warm Regards, Lee "Everything I needed to learn in life, I learned selling encyclopedias door to door."

Reply by email

ron schultz
to Mattias Gaertner: On Thu, 27 Mar 2008 18:06:26 -0500 Are you aware, that there two gtk versions? 1.2 and 2.…

The svn went fine. The next step did not.
[root at localhost lib64]# cd lazarus
[root at localhost lazarus]# ls

components COPYING.modifiedLGPL docs install lcl Makefile.fpc test
converter debian examples languages link.res packager tools
COPYING debugger ide lazarus localize.bat ppas.sh units
COPYING.GPL designer ideintf lazarus.app localize.sh README.txt
COPYING.LGPL doceditor images lazbuild Makefile startlazarus

Below is just the first part but continues for about 300 more lines.

[root at localhost lazarus]# export LCL_PLATFORM=gtk2; make clean all bigide make: -iVSPTPSOTO: Command not found
make: -iSP: Command not found
make: -iTP: Command not found
make: -iSO: Command not found
make: -iTO: Command not found
make -C ide cleanide
make[1]: -iSP: Command not found
make[1]: Entering directory `/usr/lib64/lazarus/ide' make[1]: -iTP: Command not found

Below is the end of the out put. I do not want to make things worse. Should I run fpcmake and then try again?

make[1]: -iTO: Command not found
make[2]: Entering directory `/usr/lib64/lazarus/components/rtticontrols' Makefile:171: *** The Makefile doesn't support target linux-, please run fpcmake first. Stop.
make[2]: Leaving directory `/usr/lib64/lazarus/components/rtticontrols' make[1]: *** [bigidecomponents] Error 2
make[1]: Leaving directory `/usr/lib64/lazarus/components' make: *** [bigidecomponents] Error 2

Mattias Gaertner wrote 44 lines
On Thu, 27 Mar 2008 18:06:26 -0500 "ron schultz" wrote: >[...] > I added gd-devel-2.0.35-1.fc8.x86_64. That changed the error to "can > not find -lgdk" I think that is what I did! But if I remove that > package the error does not go back to > /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching > for -lglib /usr/bin/ld: cannot find -lglib > > I have reinstalled gd-devel-2.0.35-1.fc8.x86_64. > I then added gkk-pixbuf-devel-1.0.22.0-35.fc8.x86_64. The error > remains "can not find -lgdk". > I then added gd-prog-2.0.35-1.fc8.x86_64. Same error. > There are packages referring to glib and glib-devel and gtk+ that are > not installed but they are i386 packages. I am assuming I do not need > them. Are you aware, that there two gtk versions? 1.2 and 2. The 1.2 is more stable and therefore the default under lazarus. I heard that FC8 no longer supports gtk1.2. You can build the gtk2 lazarus: Download lazarus from svn or tgz. For example: http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_SVN You should now have the lazarus sources. Now build the gtk2 IDE: cd lazarus export LCL_PLATFORM=gtk2; make clean all bigide Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

ron schultz
to ron schultz

If it would be helpful to the Lazarus project I would be willing to reinstall Fedora

8 and start from scratch. I do not have anything I mind losing and the Fedora 8

install went without a problem. I could keep a log of what I did, the results and the

fixes to the problems. Then as people offer help they would know exactly what I had

done.

I have run into the gdk-pixbuf and gdk-pixbuf-devel issue. Since CentOS is a clone of

Fedora I would assume that what works with one should work with the other. If this is

a good idea it might be helpful to let me know what packages or group of packages to

start with on the initial install of Fedora 8.

After I get Lazarus working I would be willing to do this a second time and get the

necessary stuff before even trying to install Lazarus. Maybe this could be sort of a

howto to get Lazarus running with Fedora and it's clones. If we try this remember I'm

a newbie to Linux.

Reply by email

Mattias Gaertner
to ron schultz: The svn went fine. The next step did not. [root at localhost lib64]# cd lazarus [root at…
Show quoted text 19 lines
The svn went fine. The next step did not. [root at localhost lib64]# cd lazarus [root at localhost lazarus]# ls components COPYING.modifiedLGPL docs install lcl Makefile.fpc test converter debian examples languages link.res packager tools COPYING debugger ide lazarus localize.bat ppas.sh units COPYING.GPL designer ideintf lazarus.app localize.sh README.txt COPYING.LGPL doceditor images lazbuild Makefile startlazarus Below is just the first part but continues for about 300 more lines. [root at localhost lazarus]# export LCL_PLATFORM=gtk2; make clean all bigide make: -iVSPTPSOTO: Command not found

This typically means the compiler is not in the search path.

Mattias

Reply by email

Marc Weustink
to Mattias Gaertner: On Thu, 27 Mar 2008 18:06:26 -0500 Are you aware, that there two gtk versions? 1.2 and 2.…
Mattias Gaertner wrote 22 lines
On Thu, 27 Mar 2008 18:06:26 -0500 "ron schultz" wrote: > [...] > I added gd-devel-2.0.35-1.fc8.x86_64. That changed the error to "can > not find -lgdk" I think that is what I did! But if I remove that > package the error does not go back to > /usr/bin/ld: skipping incompatible /usr/lib/libglib.so when searching > for -lglib /usr/bin/ld: cannot find -lglib > > I have reinstalled gd-devel-2.0.35-1.fc8.x86_64. > I then added gkk-pixbuf-devel-1.0.22.0-35.fc8.x86_64. The error > remains "can not find -lgdk". > I then added gd-prog-2.0.35-1.fc8.x86_64. Same error. > There are packages referring to glib and glib-devel and gtk+ that are > not installed but they are i386 packages. I am assuming I do not need > them. Are you aware, that there two gtk versions? 1.2 and 2. The 1.2 is more stable and therefore the default under lazarus. I heard that FC8 no longer supports gtk1.2.

fc8 still supports it:

[marc at giant lazarus]$ rpm -q gtk+
gtk+-1.2.10-59.fc8

Marc

Reply by email

ron schultz
to Marc Weustink

I got it working. This is a copy of a new post I did. Hope this helps someone else.

I had not been able to get Lazarus to compile with Fedora 8. Being a Newbie to Linux I probably had done some things wrong. In the forums I found an install of Lazarus for SUSE by Ignace
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=3801 I decided to try essentially the same thing with Fedora 8.

The processor is an AMD Athlon BE 2400 so this would be an install for x86_64.

I had tried so much stuff that I wanted to start with a fresh install of Fedora 8. During the install I made sure that I selected Development Library, Development Tools, GNOME Software Development and X Software Development.

After the Fedora 8 install and updates these were the relevant packages and their status as seen in the Fedora 8 Package Manager. Lazarus was the only package that would need to be downloaded.

fpc-2.2.0-10.fc8.x86_64 available fpc-doc-2.2.0-10.fc8.x86_64 available fpc-src.2.2.0-10.fc8.x86_64 available gdk-pixbuf-1:0.22.0-35.fc8.x86_64 installed gdk-pixbuf-devel-1:0.22.0-35.fc8.x86_64 installed gtk+-devel-1:1.2.10-59.fc8.x86_64 available gtk+-extra-2.1.1-6.fc8.x86_64 available gtk+-extra-devel-2.1.1-6.fc8.x86_64 available

In the Fedora 8 Package Manager I did these things in the following order.

Selected fpc, fpc-doc and fpc-src in Package Manager then Apply. Good result.

Selected gdk-pixbuf and gdk-picbuf-devel then Apply. Package Manager asked for install disk and did some checks for glibc? and gtk? Good result.

Selected gtk+-devel, gtk+-extra and gtk+-extra-devel then Apply. Good result.

Downloaded Lazarus. I tried yum localinstall
lazarus-0.9.24-0.x86_64.rpm. Yum came back with missing dependency lazarus =fpc-2.2.0 which was already installed. Do not understand. I tried rpm with ?nodeps. Rpm ?Uvh ?nodeps lazarus-0.9.24-0.x86_64.rpm. That worked fine. As far as I can see Lazarus works as expected. Being a Newbie to Linux I'm not sure why the problem with yum installing Lazarus. I guess something like yum does not know about the when it checked for dependencies.

Now on to trying to get up to speed in Linux.

Reply by email