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
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.
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.
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.
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.
> 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
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.
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?
Huh!! Comment #7 is right. Reopening the bug as per comment #7 This should obviously be fixed...
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.
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.
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.
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.
*** Bug 93882 has been marked as a duplicate of this bug. ***
Created attachment 63742 [details] gtk-perl-0.7009-r3.ebuild sed mesaglu to glu and mesagl to gl
(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)
(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 on attachment 63686 [details] sed mesagl to just gl Obsoleting since my sed doesn't seem to be enough for some reason :/
(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 :)
Yep, works here!
> 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
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.
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.
(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).
You plan to report this upstream as well, right?
posted, ticket 13782 in rt.cpan.org. I'll post the ebuild in the morning (localtime :)
Marked, posted, closing :)
*** Bug 113144 has been marked as a duplicate of this bug. ***