Sign in Join

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

Mailing lists / lazarus / 2013-04

Fedora 18: problems with package conflicts

20 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

Hi,

I just installed Fedora 18 in a VirtualBox (Host: Win7). I just went with the defaults, and installed binutils.

I manged to download and install fpc 2.6.2 (from installscript) and it seems to run fine.
I checked out the lazarus sources from svn.
Did
make all OPT="-gl -gs"

And it failed (not unexpectedly) with
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc

So i think I need devel packages for libc, libdl (?) and libpthread (?), the latter 2 AFAIK provided by glibc-devel.

I tried to install libc-devel package (using apper), but this failed: Test Transaction Errors:
file /usr/lib/audit from install of glibc-2.16-30.fc18.i686 conflicts with file from package
audit-2.2.2-2.fc18.i686

Same for glibc-devel.

Trying to remove audit package results in same error message.

So basically I'm stuck now.

Two more things about this Fedora bug me:

1.
I cannot copy contents from xterm to clipboard (at least not by mouse) 2.
sudo does not accept my root password, but yet I can login as root, and can use su to become root. "apper" also at times does not accept my root paswoord. Only way out is to reboot (the common Windows solution...)
(Maybe my sudo syntax is wrong, but I tried "sudo ./install" on the fpc install shellscript)

Can anyone help?

Bart

Reply by email

Felipe Monteiro de Carvalho
to Bart
Bart wrote 7 lines
2. sudo does not accept my root password, but yet I can login as root, and can use su to become root. "apper" also at times does not accept my root paswoord. Only way out is to reboot (the common Windows solution...) (Maybe my sudo syntax is wrong, but I tried "sudo ./install" on the fpc install shellscript)

At least this part is as expected. sudo is done for users, so you should use your user password, not the root password. Also, sudo is not commonly used at all in red hat/fedora/mageia/etc. You should use "su" on those.

You can set sudo up, however, by editing the file /etc/sudoers

Felipe Monteiro de Carvalho

Reply by email

Bart
to Bart: I just installed Fedora 18 in a VirtualBox (Host: Win7). I just went with the defaults,…

I am a little bit further now.

I used rpm to find out why I could not remove audit, and finally I succeeded in removing it:

[root at localhost lazarus]# rpm -e setroubleshoot-server setroubleshoot-plugins setroubleshoot
[root at localhost lazarus]# rpm -e audit

install from "apper":
glibc-devel

Next try to build lazarus fails, but we're getting ahead:

Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/ld: cannot find -lgtk-x11-2.0
/usr/bin/ld: cannot find -lgdk-x11-2.0
/usr/bin/ld: cannot find -lpango-1.0
/usr/bin/ld: cannot find -latk-1.0
lazarus.pp(132,1) Error: Error while linking

install from "apper":
gdk-pixbuf2-devel-2.26.5-1.fc18.i686
gtk2-devel-2.24.16-1.fc18.i686
pango-devel-1.32.3-1.fc18.i686
atk-devel-2.6.0-1.fc18.i686

Next try to build lazarus fails, but we're getting ahead:

Compiling lazarus.pp
Compiling resource ../units/i386-linux/gtk2/lazarus.or Linking ../lazarus
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /lib/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending' lazarus.pp(132,1) Error: Error while linking
lazarus.pp(132,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

Googling suggests that this is part of mesa-libwayland-egl, so:

install from "apper":
mesa-libwayland-egl-9.1-3.fc18.i686
mesa-libwayland-egl-devel-9.1-3.fc18.i686
(mesa-libEGL and mesa-libEGL-devel were already installed)

Alas, linking still fails at the same point with the same message.

So, what next?

Bart

Reply by email

Bart
to Felipe Monteiro de Carvalho: At least this part is as expected. sudo is done for users, so you should use your user…
Felipe Monteiro de Carvalho wrote
At least this part is as expected. sudo is done for users, so you should use your user password, not the root password. Also, sudo is not commonly used at all in red hat/fedora/mageia/etc. You should use "su" on those.

Ok, my concept of sudo was totally wrong then (shame on me). I come from SUSE, so I'm used to su and I'll stick with it for the time being.

Bart

Reply by email

zeljko
to Bart: I am a little bit further now. I used rpm to find out why I could not remove audit, and…
Bart wrote 50 lines
I am a little bit further now. I used rpm to find out why I could not remove audit, and finally I succeeded in removing it: [root at localhost lazarus]# rpm -e setroubleshoot-server setroubleshoot-plugins setroubleshoot [root at localhost lazarus]# rpm -e audit install from "apper": glibc-devel Next try to build lazarus fails, but we're getting ahead: Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: cannot find -lgdk_pixbuf-2.0 /usr/bin/ld: cannot find -lgtk-x11-2.0 /usr/bin/ld: cannot find -lgdk-x11-2.0 /usr/bin/ld: cannot find -lpango-1.0 /usr/bin/ld: cannot find -latk-1.0 lazarus.pp(132,1) Error: Error while linking install from "apper": gdk-pixbuf2-devel-2.26.5-1.fc18.i686 gtk2-devel-2.24.16-1.fc18.i686 pango-devel-1.32.3-1.fc18.i686 atk-devel-2.6.0-1.fc18.i686 Next try to build lazarus fails, but we're getting ahead: Compiling lazarus.pp Compiling resource ../units/i386-linux/gtk2/lazarus.or Linking ../lazarus /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /lib/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending' lazarus.pp(132,1) Error: Error while linking lazarus.pp(132,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Googling suggests that this is part of mesa-libwayland-egl, so: install from "apper": mesa-libwayland-egl-9.1-3.fc18.i686 mesa-libwayland-egl-devel-9.1-3.fc18.i686 (mesa-libEGL and mesa-libEGL-devel were already installed) Alas, linking still fails at the same point with the same message. So, what next?

next is that lazarus rpm .spec should be updated...it should contain devel metapackage eg.
lazarus-gtk2-devel, lazarus-qt-devel etc, so when lazarus-gtk2-devel is installed it should install automatically all stuff you mentioned above.

z.

Reply by email

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
On Wed, 17 Apr 2013 17:09:29 +0200 Bart wrote: > I am a little bit further now. Have you tried yum install binutils glibc-devel gtk2-devel gdb

Why not create lazarus-devel metapackage which will then install everything mentioned above ?

z.

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 11 lines
On 04/17/2013 05:17 PM, Mattias Gaertner wrote: > On Wed, 17 Apr 2013 17:09:29 +0200 > Bart wrote: > >> I am a little bit further now. > > Have you tried > yum install binutils glibc-devel gtk2-devel gdb Why not create lazarus-devel metapackage which will then install everything mentioned above ?

Or: add a link to the wiki where the above line and other hints are.

Mattias

Reply by email

Bart
to Mattias Gaertner: On Wed, 17 Apr 2013 17:09:29 +0200 Have you tried yum install binutils glibc-devel…
Mattias Gaertner wrote 5 lines
On Wed, 17 Apr 2013 17:09:29 +0200 Have you tried yum install binutils glibc-devel gtk2-devel gdb ?

There was a glibc-devel package conflict, so I could not install it as easy as I thought it should be.

I don't even know if Fedoar has yum.
I'll have a manged to install the devel packages (see above). Now I'm stuck at (also se above):

/lib/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending'

Bart

Reply by email

zeljko
to Bart
Bart wrote
/lib/libEGL.so.1: undefined reference to `wl_display_dispatch_queue_pending' Why do we use libwayland-egl and not libEGL in the first place?

Maybe some 3rd party package which is installed into IDE uses that. Lazarus does not use any wayland lib afaik.

z.

Reply by email

Marco van de Voort
to zeljko
zeljko wrote 8 lines
On 04/17/2013 05:53 PM, Bart wrote: > /lib/libEGL.so.1: undefined reference to > `wl_display_dispatch_queue_pending' > > Why do we use libwayland-egl and not libEGL in the first place? Maybe some 3rd party package which is installed into IDE uses that. Lazarus does not use any wayland lib afaik.

Does it use OpenGL?

Reply by email

Mattias Gaertner
to Marco van de Voort
Show quoted text 11 lines
On Wed, Apr 17, 2013 at 05:58:57PM +0200, zeljko wrote: > On 04/17/2013 05:53 PM, Bart wrote: > > /lib/libEGL.so.1: undefined reference to > > `wl_display_dispatch_queue_pending' > > > > Why do we use libwayland-egl and not libEGL in the first place? > > Maybe some 3rd party package which is installed into IDE uses that. > Lazarus does not use any wayland lib afaik. Does it use OpenGL?

The package openglcontrol is not installed by default.

Mattias

Reply by email

Mattias Gaertner
to Bart: There was a glibc-devel package conflict, so I could not install it as easy as I thought…
Show quoted text 12 lines
On 4/17/13, Mattias Gaertner wrote: > On Wed, 17 Apr 2013 17:09:29 +0200 > Have you tried > yum install binutils glibc-devel gtk2-devel gdb > ? There was a glibc-devel package conflict, so I could not install it as easy as I thought it should be. I don't even know if Fedoar has yum. I'll have a just installed Fedora Core 18 64bit in a VM.

yum is installed, but failed with an error messages. I opened 'Software', checked for new software,
installed 'gtk2-devel' and 'fpc'. They already have fpc 2.6.2. Nice. I tried installing 'subversion' and 'gcc', but both failed silently without any message. They are not really needed but useful for development. It looked as if they were installed, but were still pending. A reboot did not help. Same effect. Not so nice. Now magically yum works. Nice.
su: yum update
reboot
su: yum install subversion gcc
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus
make bigide
./lazarus

Mattias

Reply by email

Bart
to Mattias Gaertner
Mattias Gaertner wrote
I just installed Fedora Core 18 64bit in a VM. yum is installed, but failed with an error messages. I opened 'Software', checked for new software, installed 'gtk2-devel' and 'fpc'. They already have fpc 2.6.2. Nice.

Done that, but using apper.

I tried installing 'subversion' and 'gcc', but both failed silently without any message.

They both failed with the initial errormessage in my first post (the one about audit)

They are not really needed but useful for development. It looked as if they were installed, but were still pending. A reboot did not help. Same effect. Not so nice. Now magically yum works. Nice.

yum check only said "check all" after a few minutes of silence.

su: yum update

Will do that next.
Fedora says I have 700 MB of updates pending (which sucks on a 1,5 MBit/s line).

ATM glad it is not my "production" OS.

Bart

Reply by email

Mattias Gaertner
to Bart
[...] Will do that next. Fedora says I have 700 MB of updates pending (which sucks on a 1,5 MBit/s line).

Maybe installing them will help, as it helped me.

Mattias

Reply by email

Bart
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Wed, 17 Apr 2013 23:03:47 +0200 Bart wrote: >[...] > Will do that next. > Fedora says I have 700 MB of updates pending (which sucks on a 1,5 MBit/s > line). Maybe installing them will help, as it helped me.

And then half way, it switced to another mirror and downloadspeed dropped down to 7 kB/s .............
ETA is now > 3 hours, so this is not gonna work ATM.

Getting frustrated.

Bart

Reply by email

Bart
to Mattias Gaertner: On Wed, 17 Apr 2013 23:03:47 +0200 Maybe installing them will help, as it helped me.…
Mattias Gaertner wrote
Maybe installing them will help, as it helped me.

Yes, yes, yes.
After > 2,5 hours updating (at one point it said connetction speed was negative some large integer B/s (not even bother KB/s anymore)...

Now it's a new day.
Booted, opened console.
Build Lazarus -> SUCCESS.
Run Lazarus: Looks OK.

It's a mystery to me, but a nice one (at least right now).

Now it's time to play with it.

Bart

Reply by email

Bart
to Bart

Would it be an idea, to have somewhere on the wiki (preferably linked to from the "Getting Lazarus" page) a page with tips for different Linux distributions explaining how to setup Lazarus from svn (without having first installed an Lazarus package).
At least telling which devel packages and tools must be installed, and what is the easiest way to do so on each distribution. And preferrably trouble shooting tips.

Bart

Reply by email

Mattias Gaertner
to Bart
Show quoted text 7 lines
Would it be an idea, to have somewhere on the wiki (preferably linked to from the "Getting Lazarus" page) a page with tips for different Linux distributions explaining how to setup Lazarus from svn (without having first installed an Lazarus package). At least telling which devel packages and tools must be installed, and what is the easiest way to do so on each distribution. And preferrably trouble shooting tips.

I started a section here:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Lazarus_1.0.8_on_Fedora_Core_18

Feel free to improve it.

Mattias

Reply by email