Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93490 - Compiling gtk-perl-0.7009-r1 fails at not being able to find Mesalibs
Summary: Compiling gtk-perl-0.7009-r1 fails at not being able to find Mesalibs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 93882 113144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-21 17:12 UTC by David Li
Modified: 2006-01-06 13:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sed mesagl to just gl (gtk-perl-0.7009-r2.ebuild,1.62 KB, text/plain)
2005-07-18 04:22 UTC, Michael Cummings (RETIRED)
Details
gtk-perl-0.7009-r3.ebuild (gtk-perl-0.7009-r3.ebuild,1.70 KB, text/plain)
2005-07-18 16:04 UTC, Ben Tucker
Details
working ebuild for gtk-perl-0.7009 (gtk-perl-0.7009-r3.ebuild,1.71 KB, text/plain)
2005-07-19 13:23 UTC, Ben Tucker
Details
working ebuild for gtk-perl-0.7009, minus unnecessary comments (gtk-perl-0.7009-r3.ebuild,1.62 KB, text/plain)
2005-07-19 13:26 UTC, Ben Tucker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Li 2005-05-21 17:12:45 UTC
This is continued from bug 93383:

I think I may be getting the same error. It fails in the same place as bug 
91589
but with a different error:

cd GtkGLArea && /usr/bin/perl5.8.6 Makefile.PL LIB="" LIBPERL_A="libperl.a" 
LINK
TYPE="dynamic" PREFIX="/var/tmp/portage/gtk-perl-0.7009-r1/image//usr" 
OPTIMIZE=
"" PASTHRU_DEFINE="" PASTHRU_INC="" INSTALLDIRS=vendor
Found Gtk::Install::Files in /var/tmp/portage/gtk-perl-0.7009-r1/work/Gtk-Perl-
0
.7009/GtkGLArea/../Gtk/../blib/arch/Gtk/Install/
Loading pkg.defs
Dir ||
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-
gnu/bin/
ld: cannot find -lMesaGL
collect2: ld returned 1 exit status
/bin/sh: line 1:  1520 Broken pipe             /usr/bin/perl5.8.6 Makefile.PL 
LI
B="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" PREFIX="/var/tmp/portage/gtk-
perl-
0.7009-r1/image//usr" OPTIMIZE="" PASTHRU_DEFINE="" PASTHRU_INC="" 
INSTALLDIRS=v
endor
make: *** [GtkGLArea/Makefile] Error 141

!!! ERROR: dev-perl/gtk-perl-0.7009-r1 failed.
!!! Function perl-module_src_install, Line 132, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Notice that instead of the error of missing .h files, it complains about not
being able to find mesa libs.


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge gtk-perl
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-05-21 19:18:21 UTC
Actually, this bug isn't related (not directly, somewhat consequentually). 
What does gdk-pixbuf-config --libs report? The error either means you have 
opengl in your use flags but nothing is installed to fulfill the opengl deps, 
or mesa appears in your libs but you don't really have it there. 
Comment 2 David Li 2005-05-21 19:27:09 UTC
Hmmm:
-L/usr/lib -lgdk_pixbuf -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl
-lXi -lXext -lX11 -lm

I do have opengl in my useflags. I have a feeling I can blame this on the
proprietary ATI drivers I'm using.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-05-21 19:34:52 UTC
You can try building it without the gtkglarea support (USE="-opengl"), but I'm 
not positive it will work. While I have --disable flags for each of the gnome 
options, I notice I don't have one for gtkglarea (and gtk-perl likes to be 
smart and base its install on what it thinks you have unless you explicity 
tell it otherwise). I could add a dep to virtual/opengl, but as your suspicion 
suggests, that might not cover it either. 
Comment 4 David Li 2005-05-21 19:49:08 UTC
Yeah, well, I just added "dev-perl/gtk-perl -opengl" to my package.use file and
it emerged fine. I guess that will do for now.
Comment 5 Jan Kohnert 2005-05-24 17:32:41 UTC
> Yeah, well, I just added "dev-perl/gtk-perl -opengl" to my package.use file 
> and it emerged fine. I guess that will do for now. 
 
It builds for me with opengl. Have you tried "opengl-update" to fix your 
current installation? 
 
Best regards Jan 
Comment 6 David Li 2005-05-24 18:08:36 UTC
Thanks for the suggestion. I did 'opengl-update ati' and it still failed at the
same place. Like I said before, it's probably got something to do with ati's
drivers.
Comment 7 Andreas Niess 2005-05-26 05:55:37 UTC
I could fix it by linking libMesaGLU.so to libGLU.so.1.3:

lrwxrwxrwx  1 root root  8 May 26 14:51 /usr/lib/libMesaGL.so -> libGL.so
lrwxrwxrwx  1 root root 13 May 26 14:51 /usr/lib/libMesaGLU.so -> libGLU.so.1.3

Before it was a link to a non existent file.
Perhaps an error in opengl-update?
Comment 8 David Li 2005-06-30 13:36:27 UTC
Huh!! Comment #7 is right. Reopening the bug as per comment #7

This should obviously be fixed...
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2005-06-30 14:44:46 UTC
X11 folks : another bug where -lMesaGL can't be found (like bug 78924, 62847  
79849, 55016, 93882) - any luck on figuring out why folks are having this 
problem? It keeps getting closed as a random occurrance - and keeps popping up.  
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-30 15:25:51 UTC
Because random broken programs are trying to use an obsolete library. For more
info, see comment #16 on bug #47598, and the rest of the comments on there.
Comment 11 shinewu 2005-07-10 14:35:09 UTC
Yeah, comment 7 actually points out the root
of the problem. The sym links should be fixed
nicely, and the case will be solved once and
for all.
Comment 12 Michael Cummings (RETIRED) gentoo-dev 2005-07-18 04:22:47 UTC
Created attachment 63686 [details]
sed mesagl to just gl

Sorry for the delay, just getting back from almost a month afk.Please give this
attachment a shot - does a quick and dirty sed of lMesaGL to just lGL where
needed, should work.
Comment 13 Michael Cummings (RETIRED) gentoo-dev 2005-07-18 05:15:18 UTC
*** Bug 93882 has been marked as a duplicate of this bug. ***
Comment 14 Ben Tucker 2005-07-18 16:04:31 UTC
Created attachment 63742 [details]
gtk-perl-0.7009-r3.ebuild

sed mesaglu to glu and mesagl to gl
Comment 15 Michael Cummings (RETIRED) gentoo-dev 2005-07-18 16:15:01 UTC
(In reply to comment #14)
> Created an attachment (id=63742) [edit]
> gtk-perl-0.7009-r3.ebuild
> 
> sed mesaglu to glu and mesagl to gl

OK, i'll bite - what's the difference when MesaGLU includes the stub I used,
MesaGL? (not understanding why this needed to be broken into multiple lines)
Comment 16 Ben Tucker 2005-07-18 23:52:27 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > Created an attachment (id=63742) [edit] [edit]
> > gtk-perl-0.7009-r3.ebuild
> > 
> > sed mesaglu to glu and mesagl to gl
> 
> OK, i'll bite - what's the difference when MesaGLU includes the stub I used,
> MesaGL? (not understanding why this needed to be broken into multiple lines)

I'm sure it can be done in fewer lines, but for some reason or another the 2
lines you used did not change the MesaGLU instances to GLU. I tried using the
ebuild you posted and I no longer saw errors with respect to -lMesaGL, but I did
get errors referencing -lMesaGLU. Adding the 2 additional sed commands
eliminated these errors.

-Ben
Comment 17 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 02:04:20 UTC
Comment on attachment 63686 [details]
sed mesagl to just gl

Obsoleting since my sed doesn't seem to be enough for some reason :/
Comment 18 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 02:05:58 UTC
(In reply to comment #16)
> I'm sure it can be done in fewer lines, but for some reason or another the 2
> lines you used did not change the MesaGLU instances to GLU. I tried using the
> ebuild you posted and I no longer saw errors with respect to -lMesaGL, but I did
> get errors referencing -lMesaGLU. Adding the 2 additional sed commands
> eliminated these errors.

Grrr...don't you just hate the way things don't work sometimes? OK, so I've
obsoleted my version. If I don't hear any gripes about this revision soon (say
within 24 hours of its posting time) I'm going to go ahead and put this in the
tree and resolve this bug as fixed finally (thanks for the help Ben :)
Comment 19 David Li 2005-07-19 06:27:07 UTC
Yep, works here!
Comment 20 Ben Tucker 2005-07-19 09:44:18 UTC
> Grrr...don't you just hate the way things don't work sometimes? OK, so I've
> obsoleted my version. If I don't hear any gripes about this revision soon (say
> within 24 hours of its posting time) I'm going to go ahead and put this in the
> tree and resolve this bug as fixed finally (thanks for the help Ben :)
> 

Yes, very much so. Glad I could help =)

-Ben
Comment 21 Ben Tucker 2005-07-19 13:23:57 UTC
Created attachment 63808 [details]
working ebuild for gtk-perl-0.7009

(In reply to comment #16)
> (In reply to comment #15)
> > (In reply to comment #14)
> > > Created an attachment (id=63742) [edit] [edit] [edit]
> > > gtk-perl-0.7009-r3.ebuild
> > > 
> > > sed mesaglu to glu and mesagl to gl
> > 
> > OK, i'll bite - what's the difference when MesaGLU includes the stub I
used,
> > MesaGL? (not understanding why this needed to be broken into multiple
lines)
> 
> I'm sure it can be done in fewer lines

And it can be done in 2 lines by adding a g to your regexp.

changing

sed -i 's/MesaGL/GL/' GtkGLArea/Makefile.PL
sed -i 's/MesaGL/GL/' GtkGLArea/pkg.pl

to

sed -i 's/MesaGL/GL/g' GtkGLArea/Makefile.PL
sed -i 's/MesaGL/GL/g' GtkGLArea/pkg.pl

does it all. I never was great with regexp's.
Comment 22 Ben Tucker 2005-07-19 13:26:58 UTC
Created attachment 63809 [details]
working ebuild for gtk-perl-0.7009, minus unnecessary comments

oops, I forgot to remove the comments in the previous ebuild.

This one should be perfect.
Comment 23 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 13:39:57 UTC
(In reply to comment #21)
> And it can be done in 2 lines by adding a g to your regexp.
> 
> changing
> 
> sed -i 's/MesaGL/GL/' GtkGLArea/Makefile.PL
> sed -i 's/MesaGL/GL/' GtkGLArea/pkg.pl
> 
> to
> 
> sed -i 's/MesaGL/GL/g' GtkGLArea/Makefile.PL
> sed -i 's/MesaGL/GL/g' GtkGLArea/pkg.pl

see what vacation and road trips does to a regex skillset? take this as a lesson
kids (btw, anyone who has tested previous versions of this ebuild from this bug,
these fun games ben and i are playing won't change anything about your
[hopefully] successful installs).
Comment 24 Donnie Berkholz (RETIRED) gentoo-dev 2005-07-19 14:26:43 UTC
You plan to report this upstream as well, right?
Comment 25 Michael Cummings (RETIRED) gentoo-dev 2005-07-19 16:00:24 UTC
posted, ticket 13782 in rt.cpan.org. I'll post the ebuild in the morning
(localtime :)
Comment 26 Michael Cummings (RETIRED) gentoo-dev 2005-07-20 02:12:11 UTC
Marked, posted, closing :)
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2006-01-06 13:24:00 UTC
*** Bug 113144 has been marked as a duplicate of this bug. ***