Using

Scripting

Compile Errors

Fails to compile with an error in fe-gtk.c

In GTK 2.14, the GtkType typedef was deprecated in favor of GType. If you have the following error while in the build process:

In file included from fe-gtk.c:48:
xtext.h:273: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gtk_xtext_get_type'

you are probably using GTK 2.14. To fix this, modify xtext.h and xtext.c, replacing GtkType with GType. The following line will make these changes for you from within the XChat directory:

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

This problem has been fixed in CVS.

Fails to compile with GTK_WIDGET_VISIBLE, GTK_WIDGET_IS_SENSITIVE, and GTK_WIDGET_HAS_FOCUS undefined

If while compiling XChat, it appears that the GTK_WIDGET_VISIBLE, GTK_WIDGET_IS_SENSITIVE, and GTK_WIDGET_HAS_FOCUS symbols are undefined, this may be due to using a new version of Gtk which removed what it considers deprecated symbols. In order to build on GTK 2.19.7 and newer, you need to apply this patch

Source: Sourceforge Bug Report

Error while building Perl

If you have the following error in your build process:

/usr/bin/ld: cannot find -lperl

you do not have all of the Perl developer files installed on your system. Install the Perl Developer package for your system. On debian based distributions, this can be done with:

apt-get install libperl-dev


Print - Recent Changes - Search
Page last modified on March 31, 2010, at 03:58 PM