Recent

Author Topic: [Solved] Fedora 18 problems with package conflicts  (Read 10887 times)

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
[Solved] Fedora 18 problems with package conflicts
« on: April 17, 2013, 02:06:24 pm »
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 (?)

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

Trying to remove audit package results in same error message.

So basically I'm stuck now.

Two more things about this Fedora bug me:
  • I cannot copy contents from xterm to clipboard
  • 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...)

Can anyone help?
« Last Edit: April 18, 2013, 07:25:45 pm by Bart »

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Fedora 18 problems with package conflicts
« Reply #1 on: April 17, 2013, 02:43:34 pm »
AFAIK Zeljan uses Fedora. Try to ask him on mailing list (he also comes here but maybe not so often).

ad 1) Copying:
In xterm it is not very clear for me too. Whatever I select (with mouse), text appears in Klipper. Shift+Insert is for paste.
(contrary to Konsole (KDE4 app.) where Ctrl+Shift+C, Ctrl+Shift+V works well).

ad 2) Not sure here too. Distros are different, for example on Chakra or Kubuntu, "sudo make install"+password (for fpc) is enough, on openSuSE I had to use "su"+password+"make install".
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Fedora 18 problems with package conflicts
« Reply #2 on: April 17, 2013, 02:47:06 pm »
Yep. On Debian, FreeBSD, I think OSX I'm used to do a su -i to go to root, while on Ubuntu I could do sudo -i

As sudo is seemingly installed you could set up the sudoers file to allow root access, IIRC, visudo is the command to edit that file.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Fedora 18 problems with package conflicts
« Reply #3 on: April 17, 2013, 05:07:19 pm »
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@localhost lazarus]# rpm -e setroubleshoot-server setroubleshoot-plugins setroubleshoot
[root@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



Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Fedora 18 problems with package conflicts
« Reply #4 on: April 17, 2013, 05:36:38 pm »
So you already use Wayland? It is very new project, I never had distro with it yet.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Fedora 18 problems with package conflicts
« Reply #5 on: April 17, 2013, 05:59:37 pm »
I don't use wayland.
Lazarus GTK2 seems to require it!

Why?

Bart

Fred vS

  • Hero Member
  • *****
  • Posts: 3825
    • StrumPract is the musicians best friend
Re: Fedora 18 problems with package conflicts
« Reply #6 on: April 17, 2013, 06:11:20 pm »
Hello.
Have you try installing from .deb files ?
https://ask.fedoraproject.org/question/9733/open-deb-files/
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12715
  • FPC developer.
Re: Fedora 18 problems with package conflicts
« Reply #7 on: April 17, 2013, 06:20:10 pm »
I don't use wayland.
Lazarus GTK2 seems to require it!

Lazarus uses GTK2 and X11. If you provide versions of these libraries that link to wayland, that would cause this.
 
The problem is not in Lazarus, but in the installation of the requisites (which are quite ordinary btw). Did you per chance enable some experimental repository?
« Last Edit: April 17, 2013, 06:21:48 pm by marcov »

Dick, from the internet

  • Full Member
  • ***
  • Posts: 198
Re: Fedora 18 problems with package conflicts
« Reply #8 on: April 17, 2013, 06:20:32 pm »
Quote
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...)

I cannot give advice on your compilation issue, however here is a quick down and dirty for sudo.  Properly configured, sudo will ease a little frustration with changing back and forth with su, or trying to login with root <never a good option>

http://www.sudo.ws/sudo/intro.html

When using sudo,  use your user password, not the root password.  If you have not modified /etc/sudoers using visudo, first open 'Users and Groups' and ensure that you are a member of the wheel group. Then execute visudo with:

Code: [Select]
[me@localhost ~] su -c visudo
<use root password>

and remove the # from one of these lines:
Quote
## Allows people in group wheel to run all commands
#%wheel   ALL=(ALL)   ALL   <<------Here

## Same thing without a password
 %wheel   ALL=(ALL)   NOPASSWD: ALL    <<----- or Here

use normal vi commands:
i        = start editing
ESC  = end editing
:wq    = write changes and exit <note colon before wq>


note that I have uncommented the line allowing me to run commands without using a password each time, this is okay for me, as I am the only one who touches my system.

  regards,
     geno

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Fedora 18 problems with package conflicts
« Reply #9 on: April 17, 2013, 06:40:53 pm »

Lazarus uses GTK2 and X11. If you provide versions of these libraries that link to wayland, that would cause this.
 
The problem is not in Lazarus, but in the installation of the requisites (which are quite ordinary btw). Did you per chance enable some experimental repository?

I installed Fedora 18 and did not change any default settings.
By default the wayland libs are not installed (I installed them afterwards to see if the error would go away).

I installed the required devel packages using apper, which downloaded them from I don't know where.

Also the message points to the libEGL file, so whatever references to `wl_display_dispatch_queue_pending' seems to make ld think it resides in libEGL?

How do I find out whick package causes this?

Bart

Bart

  • Hero Member
  • *****
  • Posts: 5706
    • Bart en Mariska's Webstek
Re: Fedora 18 problems with package conflicts
« Reply #10 on: April 18, 2013, 07:25:23 pm »
Finally solved.

Did a full "yum update" and several hours later: presto.
Lazarus builds, and runs (at first glance).

Bart

 

TinyPortal © 2005-2018