Package: libglib1.2-dev
Version: 1.2.10-10
Severity: serious

gabber fails to build because the g_htons and g_htonl macros use
__const__ after __asm__:

> source='TCPTransmitter.cc' object='TCPTransmitter.o' libtool=no \
> depfile='.deps/TCPTransmitter.Po' tmpdepfile='.deps/TCPTransmitter.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../jabberoo/libjudo/src/expat 
> -I../jabberoo/libjudo/src -I../jabberoo/include -I/usr/include/libglade-1.0 
> -I/usr/include/gnome-xml -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 -I/usr/lib/gnomemm/include -I/usr/include/orbit-1.0 
> -I/usr/lib/sigc++-1.0/include -I/usr/include/sigc++-1.0 
> -I/usr/lib/gtkmm/include -I/usr/include/gal-1.0 -I/usr/include/gdk-pixbuf-1.0 
> -I/usr/include/freetype2  -DWITH_SSL -DOPENSSL_NO_KRB5 
> -DG_LOG_DOMAIN=\"Gabber\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" 
> -DDATADIR=\"/usr/share\" -I../intl  -I/usr/include/gtk-1.2 
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include  -g -Wall -O2 -Wall 
> -Wno-unused  -s -c -o TCPTransmitter.o `test -f 'TCPTransmitter.cc' || echo 
> './'`TCPTransmitter.cc
> TCPTransmitter.cc: In member function 'void TCPTransmitter::connect(const 
> std::string&, guint, bool, bool)':
> TCPTransmitter.cc:179: error: expected `(' before 'const'
> TCPTransmitter.cc:179: error: expected primary-expression before 'const'
> TCPTransmitter.cc:179: error: expected `;' before 'const'
> TCPTransmitter.cc: In member function 'void TCPTransmitter::listen(const 
> std::string&, guint)':
> TCPTransmitter.cc:213: error: expected `(' before 'const'
> TCPTransmitter.cc:213: error: expected primary-expression before 'const'
> TCPTransmitter.cc:213: error: expected `;' before 'const'
> TCPTransmitter.cc:214: error: expected `(' before 'const'
> TCPTransmitter.cc:214: error: expected primary-expression before 'const'
> TCPTransmitter.cc:214: error: expected `;' before 'const'

Upstream removed the __const__s in 2002 with the following comment:

        * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
        qualifier from __asm__ statements... GCC since at least
        2.96 has assumed no side effects automaticaly, and gcc-3.1
        will warn about this usage. (#73308, Cody Russell)

-- 
Matt

Attachment: signature.asc
Description: Digital signature

Reply via email to