[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#293972: libgtk-perl: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment



Package: libgtk-perl
Severity: normal
Tags: patch

When building 'libgtk-perl' on amd64 with gcc-4.0,
I get the following error:

cc -c  -I/libgtk-perl-0.7009/Gnome/../Gtk/../blib/arch/Gtk/Install/ -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT  -I. -I./build -I/libgtk-perl-0.7009/Gnome/../GdkImlib/blib/arch/Gtk/Gdk/ImlibImage/Install/ -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64    -DVERSION=\"0.7009\" -DXS_VERSION=\"0.7009\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -DPERL_POLLUTE -DLAZY_LOAD -DPGTK_THREADS -DGTK_HVER=0x01020a -DGNOME_HVER=0x010402 xs/Gnome.c
Gnome.xs: In function 'get_options':
Gnome.xs:249: error: invalid lvalue in assignment
make[2]: *** [xs/Gnome.o] Error 1
make[2]: Leaving directory `/libgtk-perl-0.7009/Gnome'

With the attached patch 'libgtk-perl' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libgtk-perl-0.7009/Gnome/xs/Gnome.xs ./Gnome/xs/Gnome.xs
--- ../tmp-orig/libgtk-perl-0.7009/Gnome/xs/Gnome.xs	2005-02-07 08:48:15.227865339 +0100
+++ ./Gnome/xs/Gnome.xs	2005-02-07 08:45:19.480981418 +0100
@@ -245,8 +245,8 @@
 		SV **s;
 
 		o->argInfo = POPT_ARG_NONE;
-		if ((s=av_fetch(av, i, 0)) && SvOK(*s))
-			longopt = (char*) o->longName = g_strdup(SvPV(*s, PL_na));
+		if ((s=av_fetch(av, i, 0)) && SvOK(*s)) 
+			longopt = o->longName = g_strdup(SvPV(*s, PL_na));
 		if (longopt && (p=strchr(longopt, '|'))) { /* short option */
 			*p++ = 0;
 			o->shortName = *p;



Reply to: