Bug#554372: FTBFS with binutils-gold

View: New views
5 Messages — Rating Filter:   Alert me  

Parent Message unknown Bug#554372: FTBFS with binutils-gold

by Daniel Leidert (dale) :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi Peter,

Can you please send me the full buildlog?

Hi Carlos,

Do you have an idea here?

Am Mittwoch, den 04.11.2009, 10:34 +0100 schrieb Peter Fritzsche:

> Tried to build your package and it fails to build with GNU binutils-gold. The
> important difference is that --no-add-needed is the default behavior of of GNU
> binutils-gold. Please provide all needed libraries to the linker when building
> your executables.

Hm, I'm a bit surprised:

> More informations can be found at
>  http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking
>
> gcc [..] -lgtkglext-x11-1.0 [..]
> /usr/bin/ld: gamgi_mesa_area.o: in function
> gamgi_mesa_area_create:./mesa/gamgi_mesa_area.c:324: error: undefined
> reference to 'gdk_gl_config_new_by_mode'

This function reference should be solved by linking with
libgtkglext-x11-1.0.so.

This is defined as

> #ifndef GDK_MULTIHEAD_SAFE
> GdkGLConfig *gdk_gl_config_new_by_mode            (GdkGLConfigMode  mode);
> #endif /* GDK_MULTIHEAD_SAFE */

With

nm -Dg /usr/lib/libgdkglext-x11-1.0.so | awk '$2 ~ /T/ { print $3; }'

I see this function in the library.

Not sure, what's the real problem here.

Regards, Daniel




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#554372: FTBFS with binutils-gold

by Peter Fritzsche :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Daniel Leidert wrote:
> Can you please send me the full buildlog?
Yes, I will generate a full build log and attach it to this mail.

[...]

> > gcc [..] -lgtkglext-x11-1.0 [..]
> > /usr/bin/ld: gamgi_mesa_area.o: in function
> > gamgi_mesa_area_create:./mesa/gamgi_mesa_area.c:324: error: undefined
> > reference to 'gdk_gl_config_new_by_mode'
>
> This function reference should be solved by linking with
> libgtkglext-x11-1.0.so.
>
> This is defined as
>
> > #ifndef GDK_MULTIHEAD_SAFE
> > GdkGLConfig *gdk_gl_config_new_by_mode            (GdkGLConfigMode
> > mode); #endif /* GDK_MULTIHEAD_SAFE */
You are linking against following libraries:
gtkglext-x11-1.0 GLU GL gtk-x11-2.0 gdk-x11-2.0 atk-1.0 gdk_pixbuf-2.0
pangocairo-1.0 pango-1.0 cairo gobject-2.0 gmodule-2.0 glib-2.0 Xext X11 Xi
Xmu freetype expat m dl

and your binary says:
gtkglext-x11-1.0 GLU GL gtk-x11-2.0 gdk-x11-2.0 gobject-2.0 glib-2.0 freetype
expat m gdkglext-x11-1.0

The most important difference is gdkglext-x11-1.0. So adding
 -lgdkglext-x11-1.0 fixes the problem as this is the library which provides
these symbols and not gtkglext-x11-1.0 (which is a "layer" above it).

Best regards,
        Peter


[missing_library.patch]

--- a/src/make_rules.orig 2009-11-04 21:01:49.337795522 +0100
+++ b/src/make_rules 2009-11-04 21:02:29.453790527 +0100
@@ -33,7 +33,7 @@
 LIBS = -lgtkglext-x11-1.0 -lGLU -lGL -lgtk-x11-2.0 -lgdk-x11-2.0 \
  -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 \
  -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXext -lX11 \
- -lXi -lXmu -lfreetype -lexpat -lm -ldl
+ -lXi -lXmu -lfreetype -lexpat -lm -ldl -lgdkglext-x11-1.0
 
 #================================ full paths ===============================
 


failed-gamgi.gz (16K) Download Attachment

Bug#554372: FTBFS with binutils-gold

by Carlos Pereira-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Daniel Leidert wrote:
> Hi Peter,
>
> Can you please send me the full buildlog?
>
> Hi Carlos,
>
> Do you have an idea here?
>
>  
Hi Daniel, hi Peter,

1) GAMGI 0.14.2, the last release, compiles without warnings on Ubuntu
9.10 (GTK 2.18.3, I think), so I am a bit surprised. Moreover, I did not
change the file mesa/gamgi_mesa_area.c in the last couple of releases.

2) The function gdk_gl_config_new_by_mode is mentioned in the oficial
manual for gtkglext:
http://gtkglext.sourceforge.net/reference/gtkglext/gtkglext-gdkglconfig.html#gdk-gl-config-new-by-mode
and apparently is not deprecated...

In the GAMGI file src/make_rules, if you comment -DGTK_DISABLE_DEPRECATED
do you get the same error?

3) I don't know about GDK_MULTIHEAD_SAFE... I will ask on the gtk-devel
list, perhaps someone knows about this...

If there is a problem with this function, of course I will try to
replace it, but untill this day I never saw the slightest hint that
there was a problem with gdk_gl_config_new_by_mode...

Cheers,
Carlos

> Am Mittwoch, den 04.11.2009, 10:34 +0100 schrieb Peter Fritzsche:
>
>  
>> Tried to build your package and it fails to build with GNU binutils-gold. The
>> important difference is that --no-add-needed is the default behavior of of GNU
>> binutils-gold. Please provide all needed libraries to the linker when building
>> your executables.
>>    
>
> Hm, I'm a bit surprised:
>
>  
>> More informations can be found at
>>  http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking
>>
>> gcc [..] -lgtkglext-x11-1.0 [..]
>> /usr/bin/ld: gamgi_mesa_area.o: in function
>> gamgi_mesa_area_create:./mesa/gamgi_mesa_area.c:324: error: undefined
>> reference to 'gdk_gl_config_new_by_mode'
>>    
>
> This function reference should be solved by linking with
> libgtkglext-x11-1.0.so.
>
> This is defined as
>
>  
>> #ifndef GDK_MULTIHEAD_SAFE
>> GdkGLConfig *gdk_gl_config_new_by_mode            (GdkGLConfigMode  mode);
>> #endif /* GDK_MULTIHEAD_SAFE */
>>    
>
> With
>
> nm -Dg /usr/lib/libgdkglext-x11-1.0.so | awk '$2 ~ /T/ { print $3; }'
>
> I see this function in the library.
>
> Not sure, what's the real problem here.
>
> Regards, Daniel
>
>
>  




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#554372: FTBFS with binutils-gold

by Carlos Pereira-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi Daniel, hi Peter,

It's my fault then. I am sorry. Interesting that this issue never
surfaced before.

I just added -lgdkglext-x11-1.0 to my list of libraries, in the file
make_rules:

LIBS = -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL -lgtk-x11-2.0 \
        -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0
-lpango-1.0 \
        -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXext -lX11 \
        -lXi -lXmu -lfreetype -lexpat -lm -ldl

I suppose this solves the problem. Thank you very much Peter, for
finding this.

Best regards,
Carlos
>
> The most important difference is gdkglext-x11-1.0. So adding
>  -lgdkglext-x11-1.0 fixes the problem as this is the library which provides
> these symbols and not gtkglext-x11-1.0 (which is a "layer" above it).
>
> Best regards,
> Peter
>  




--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#554372: FTBFS with binutils-gold

by Peter Fritzsche :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Carlos Pereira wrote:
> Hi Daniel, hi Peter,
>
> It's my fault then. I am sorry. Interesting that this issue never
> surfaced before.
Yes, this is more the fault of the old GNU ld which is used by most
distributions right now (like Ubuntu 9.10). It has a quite messy way of
finding the symbols, but there are different other linkers around used by
other Unix systems and maybe GNU gold will replace the old ld in the future on
Linux too. As this didn't happened yet it is a minor bug for Debian right.

Thanks for fixing it right now.

I think that it is just a matter of time until the transition will happen. The
design and optimization features of the linker (read about global
optimizations and plugin interface only some weeks ago). Yes, it is in some
parts different then the old linker, but in a sane way.

Best regards,
        Peter



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...