xchat fails to compile from package sources

Bug #324855 reported by LT-P
4
Affects Status Importance Assigned to Milestone
xchat (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: xchat

Package: xchat
Version: 2.8.6-2ubuntu1
Severity: serious
Justification: no longer builds from source

While doing :
___
$ apt-get build-dep xchat
$ apt-get source xchat
$ cd SOURCE
$ dpkg-buildpackage -rfakeroot
___

Compilation fails with :
___
 gcc -DHAVE_CONFIG_H -I. -I../.. -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
-DPNG_NO_MMX_CODE -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2
-DG_DISABLE_CAST_CHECKS -DLOCALEDIR=\"/usr/share/locale\" -g -O2
-Wall -pipe -Wno-pointer-sign -funsigned-char -MT fe-gtk.o -MD -MP
-MF $depbase.Tpo -c -o fe-gtk.o fe-gtk.c &&\
 mv -f $depbase.Tpo $depbase.Po
In file included from fe-gtk.c:48:
xtext.h:273: erreur: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘gtk_xtext_get_type’
fe-gtk.c: In function ‘fe_ctrl_gui’:
fe-gtk.c:786: attention : implicit declaration of function
‘setup_apply_real’
fe-gtk.c: In function ‘try_browser’:
fe-gtk.c:925: attention : passing argument 1 of ‘xchat_execv’ from
incompatible pointer type
make[4]: *** [fe-gtk.o] Erreur 1
make[4]: quittant le répertoire «
/home/USER/xchat/xchat-2.8.6/src/fe-gtk »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire «
/home/USER/xchat/xchat-2.8.6/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire «
/home/USER/xchat/xchat-2.8.6 »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire «
/home/USER/xchat/xchat-2.8.6 »
make: *** [build-stamp] Erreur 2
dpkg-buildpackage: échec: debian/rules build a produit une erreur de
sortie de type 2

___

-- System Information:
Debian Release: lenny/sid
  APT prefers intrepid-updates
  APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500, 'intrepid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xchat depends on:
ii libatk1.0-0 1.25.2-0ubuntu1 The ATK accessibility toolkit
ii libc6 2.8~20080505-0ubuntu8 GNU C Library: Shared libraries
ii libcairo2 1.8.6-1ubuntu1 The Cairo 2D vector graphics libra
ii libdbus-1-3 1.2.4-0ubuntu1 simple interprocess messaging syst
ii libdbus-glib-1- 0.76-1 simple interprocess messaging syst
ii libfontconfig1 2.6.0-1ubuntu4 generic font configuration library
ii libfreetype6 2.3.7-2ubuntu1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.18.2-0ubuntu2 The GLib library of C routines
ii libgtk2.0-0 2.14.5-1ubuntu2 The GTK+ graphical user interface
ii liblaunchpad-in 0.1.21 library for launchpad integration
ii libpango1.0-0 1.22.4-1 Layout and rendering of internatio
ii libperl5.10 5.10.0-11.1ubuntu2.2 Shared Perl library
ii libpixman-1-0 0.13.2-1 pixel-manipulation library for X a
ii libpng12-0 1.2.27-2ubuntu1 PNG library - runtime
ii libsexy2 0.1.11-2 collection of additional GTK+ widg
ii libssl0.9.8 0.9.8g-10.1ubuntu2.1 SSL shared libraries
ii libx11-6 2:1.1.5-2ubuntu1.1 X11 client-side library
ii libxcb-render-u 0.2.1+git1-1 utility libraries for X C Binding
ii libxcb-render0 1.1-1.1 X C Binding, render extension
ii libxcb1 1.1-1.1 X C Binding
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio
ii libxi6 2:1.1.3-2build1 X11 Input extension library
ii libxinerama1 2:1.0.3-2 X11 Xinerama extension library
ii libxml2 2.6.32.dfsg-4ubuntu1.1 GNOME XML library
ii libxrandr2 2:1.2.99.4-1 X11 RandR extension library
ii libxrender1 1:0.9.4-2 X Rendering Extension client libra
ii python2.5 2.5.2-11.1ubuntu1 An interactive high-level object-o
ii tcl8.4 8.4.19-2 Tcl (the Tool Command Language) v8
ii xchat-common 2.8.6-2ubuntu1 Common files for X-Chat
ii zlib1g 1:1.2.3.3.dfsg-12ubuntu1 compression library - runtime

Versions of packages xchat recommends:
ii alsa-utils 1.0.17-0ubuntu3 ALSA utilities
ii libnotify-bin 0.4.4-3build1 sends desktop notifications to a n
ii libnotify1 0.4.4-3build1 sends desktop notifications to a n
ii xdg-utils 1.0.2-6 desktop integration utilities from

-- no debconf information

Revision history for this message
LT-P (lt-p) wrote :

Compilation works fine on another 32 bits system, so maybe it is a 64 bits architecture problem?

Revision history for this message
hype (hypeuser-lp) wrote :

Same error on Jaunty 32 bit.

Revision history for this message
Durzo (durzo) wrote :

Apparently this has been fixed in xchat CVS, but this works just fine (64bit also)

sed -i 's/GtkType/GType/' src/fe-gtk/xtext.{c,h}

Revision history for this message
C de-Avillez (hggdh2) wrote :

@all: I have just built xchat 2.8.6-2.1ubuntu4 on an AMD64 Jaunty up-to-date, no errors.The Help/About has the following: Compiled: Mar 19 2009.

Looking at the ./debian/patches directory, I see 60_gtktype_removal.dpatch, which seems to do exactly what Jordan listed.

./debian/changelog has this entry:

xchat (2.8.6-2ubuntu2) jaunty; urgency=low

  * Switch to GType to fix the build with the latest gtk versions.
    - debian/patches/60_gtktype_removal.dpatch
    - said to be fixed in CVS already.

 -- James Westby <email address hidden> Thu, 15 Jan 2009 16:46:55 +0000

As such, closing FIX RELEASED.

Changed in xchat (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.