Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

compiling package fails because of missing /usr/lib/libGL.la

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
21 posts • Page 1 of 1
Author
Message
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

compiling package fails because of missing /usr/lib/libGL.la

  • Quote

Post by dextermagnific » Wed Dec 02, 2009 8:16 am

Hi,

When I try to compile some packages (e.g. pango), it complains about missing libGL.la

Code: Select all

/bin/sh ../libtool --tag=CC   --mode=link i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wall -version-info 2600:1:2600 -export-symbols-regex "^pango_.*"   -Wl,-O1 -o libpangocairo-1.0.la -rpath /usr/lib libpangocairo_1_0_la-pangocairo-context.lo libpangocairo_1_0_la-pangocairo-font.lo libpangocairo_1_0_la-pangocairo-fontmap.lo libpangocairo_1_0_la-pangocairo-render.lo  libpangocairo_1_0_la-pangocairo-fcfont.lo libpangocairo_1_0_la-pangocairo-fcfontmap.lo  libpango-1.0.la -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lcairo   -lm  libpangoft2-1.0.la -lfreetype   -lfontconfig    

grep: /usr/lib/libGL.la: No such file or directory
/bin/sed: can't read /usr/lib/libGL.la: No such file or directory
libtool: link: `/usr/lib/libGL.la' is not a valid libtool archive
make[4]: *** [libpangocairo-1.0.la] Error 1
I'm using the nvidia binary drivers and never encountered this error before.
Top
Banana
Administrator
Administrator
User avatar
Posts: 2394
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Wed Dec 02, 2009 9:20 am

same here.

x11-drivers/nvidia-drivers 190.42-r3

everything else is fine.
the error comes only if I run revdep-rebuild.
an emerge world, runs fine
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Dec 02, 2009 9:39 am

it isn´t related to nvidia, same happens here in an eeepc.

emerge lafilefixer && lafilefixer --justfixit should do the trick.

cheers
Error: Failing not supported by current locale
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Wed Dec 02, 2009 9:56 am

Sorry but error persists even after running the fix
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Dec 02, 2009 12:00 pm

if it doesn´t work for you you should open a bug and let the devs know about the problem.

cheers
Error: Failing not supported by current locale
Top
M
Guru
Guru
Posts: 432
Joined: Tue Dec 12, 2006 11:59 am

  • Quote

Post by M » Wed Dec 02, 2009 3:28 pm

In newer versions of eselect-opengl libGL.la is not installed anymore on purpose, as I understood the point is to remove libGL.la completely but it seems that some applications fails to build without it. I somehow managed to solved this on my laptop (with savage drivers) but on desktop with nvidia-drivers (libGL.la installation is removed in new ebuilds I think) I solved this with manually symlinking .la file from /usr/lib/opengl/nvidia , and I first added back removed part from ebuild.
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Wed Dec 02, 2009 3:55 pm

I had (and may still have) this problem a while back when I switched a machine from using the nVidia drivers to sis. To get around the issue I had to manually symlink as M suggested.
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Dec 02, 2009 4:04 pm

yes, .la files are depreceated now and are removed by default.
To get around the issue I had to manually symlink as M suggested.
i had too ( although i suppose a simple "touch libGL.la" would have done the job too) but it´s not a solution as you said.
/usr/lib/opengl/nvidia
i had no libGL.la file in there, but in /usr/lib/opengl/xorg-x11 IIRC.

cheers
Error: Failing not supported by current locale
Top
Banana
Administrator
Administrator
User avatar
Posts: 2394
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Thu Dec 03, 2009 7:03 am

ok I ran lafilefixer --justfixit and the revdep-rebuild is working fine until now...

UPDATE:

ok the revedp-rebuild ran just fine.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Sun Dec 06, 2009 8:23 pm

I don't understand well the symlinking solution. In my /usr/lib/opengl/nvidia, I have no libGL.la file. BUT I have it in /usr/lib/opengl/xorg-x11/lib
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Mon Dec 07, 2009 12:28 am

That's cause symlinking is not a solution, just yet another way to break your system.
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Mon Dec 07, 2009 3:00 pm

VoidMage wrote:That's cause symlinking is not a solution, just yet another way to break your system.
Might be, but at least in my case even rebuilding everything with an `emerge -e world` didn't solve the problem, so I was forced to symlink.
Top
M
Guru
Guru
Posts: 432
Joined: Tue Dec 12, 2006 11:59 am

  • Quote

Post by M » Mon Dec 07, 2009 6:50 pm

I don't understand well the symlinking solution. In my /usr/lib/opengl/nvidia, I have no libGL.la file. BUT I have it in /usr/lib/opengl/xorg-x11/lib
I have modified ebuild for nvidia-drivers, that is why I have the file, I just put back the lines that was removed from ebuild, and you must have libGL.la in filesdir for this to work. Anyway, here is what it looks like, you can just copy/paste this and change version:

Code: Select all

# The name that we can dlopen(3).
dlname='libGL.so.1'

# Names of this library.
library_names='libGL.so.190.42 libGL.so.1 libGL.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs='-L/usr/lib64 -lm -lX11 -lXext -ldl'

# Version information for libGL.
current=190
age=42
revision=

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib64'
But, I wouldn't like to continue like this for next version, I don't really understand what is real solution etc. but until I can reemerge all packages without the file I will keep this config.
Top
doubleagent
Guru
Guru
User avatar
Posts: 444
Joined: Fri Apr 15, 2005 4:12 am
Location: 127.0.0.1

  • Quote

Post by doubleagent » Mon Dec 07, 2009 8:00 pm

libGL.la is gone? Hm.
# lafilefixer --justfixit | fgrep Updat
/usr/lib/opengl/nvidia/lib/libGL.la: Updating...
/usr/lib/mpg123/output_dummy.la: Updating...
/usr/lib/mpg123/output_alsa.la: Updating...
/usr/lib/mpg123/output_sdl.la: Updating...
/usr/lib/libmpg123.la: Updating...
/usr/lib/libGL.la: Updating...
shickapooka wrote:i think they programmed [otw] based on a right-wing jewish-nigger-nazi, his gay, retarded, left-wing love slave with webbed feet, and their three headed cat that poops uncontrollably. the cat is also an apple fanboy
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Mon Dec 07, 2009 8:16 pm

It's gone with the recent (still unstable) eselect-opengl.
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Wed Dec 09, 2009 9:43 am

Hi,
I did the copy/paste trick but linker says : libGL.la : invalid libtool archive :(
I think I'll wait until this is fixed in portage

Thanks
M wrote:
I don't understand well the symlinking solution. In my /usr/lib/opengl/nvidia, I have no libGL.la file. BUT I have it in /usr/lib/opengl/xorg-x11/lib
I have modified ebuild for nvidia-drivers, that is why I have the file, I just put back the lines that was removed from ebuild, and you must have libGL.la in filesdir for this to work. Anyway, here is what it looks like, you can just copy/paste this and change version:

Code: Select all

# The name that we can dlopen(3).
dlname='libGL.so.1'

# Names of this library.
library_names='libGL.so.190.42 libGL.so.1 libGL.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs='-L/usr/lib64 -lm -lX11 -lXext -ldl'

# Version information for libGL.
current=190
age=42
revision=

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib64'
But, I wouldn't like to continue like this for next version, I don't really understand what is real solution etc. but until I can reemerge all packages without the file I will keep this config.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Wed Dec 09, 2009 10:52 am

:roll: Oh, but it is fixed in portage, just not on your system.
In recent eselect-opengl, post-install message tells you exactly what to do.[/code]
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Wed Dec 09, 2009 11:12 am

I have the 1.1.1-r2 version of eselect-opengl. It says that since version 1.0.9 libGL.la is no longer provided and it is sufficient to run lafilefixer to fix issues related to that file.
But it does not work. Trying to compile gtk+ complains about missing libGL.la
I'm trying a revdep-rebuild and I'll tell you the results
Top
Wolfbone
n00b
n00b
Posts: 30
Joined: Wed Sep 29, 2004 3:45 am

  • Quote

Post by Wolfbone » Thu Dec 10, 2009 2:14 pm

dextermagnific wrote:I have the 1.1.1-r2 version of eselect-opengl. It says that since version 1.0.9 libGL.la is no longer provided and it is sufficient to run lafilefixer to fix issues related to that file.
But it does not work. Trying to compile gtk+ complains about missing libGL.la
I'm trying a revdep-rebuild and I'll tell you the results
Yes, an attempted build of webkit-gtk failed for me recently. It was trying to grep in libGL.la, which isn't there anymore. It's all very well doing away with libGL.la but it's going to make some work for some other ebuild maintainers.
Top
dextermagnific
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Apr 16, 2005 10:02 am

  • Quote

Post by dextermagnific » Thu Dec 10, 2009 6:01 pm

Typically for now I cannot compile ANY graphics related package (inkscape, Qt, gtk, ....)
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Dec 10, 2009 8:22 pm

:roll: While lafilefixer should have been enough in this case,
you may try something like

Code: Select all

find /usr/lib -name '*.la' -exec grep -H /usr/lib/libGL.la '{}' \;
to see if anything was missed.
Top
Post Reply

21 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic