ben@pluto ~/tmp/gaimnosd-0.7 $ make
/usr/bin/sed 's/#define PACKAGE/#define
GAIMNOSD_PACKAGE/g' pre_config.h > gaimnosd_config.h
make all-recursive
make[1]: Entering directory `/home/ben/tmp/gaimnosd-0.7'
Making all in src
make[2]: Entering directory
`/home/ben/tmp/gaimnosd-0.7/src'
if /bin/sh ../libtool --silent --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I..
-DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\"
-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/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gaim
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-march=pentium4 -O3 -pipe -Wall -I/usr/include -g -O2
-Wall -g3 -MT gaimnosd.lo -MD -MP -MF
".deps/gaimnosd.Tpo" -c -o gaimnosd.lo gaimnosd.c; \
then mv -f ".deps/gaimnosd.Tpo"
".deps/gaimnosd.Plo"; else rm -f ".deps/gaimnosd.Tpo";
exit 1; fi
gaimnosd.c:6:22: error: internal.h: No such file or
directory
Gaim version is 2.0.0_beta3
Logged In: YES
user_id=30120
Originator: NO
Same with Gaim 2.0.0 beta 5
Logged In: YES
user_id=30120
Originator: NO
At least something like the following patch helps to compile... although it seems it won't run out of ~/.gaim/plugins/gaimnosd.so
--- cvs/gaimnosd/src/gaimnosd.c 2005-03-25 01:43:17.000000000 +0100
+++ src/gaimnosd.c 2007-03-31 17:46:43.000000000 +0200
@@ -3,7 +3,7 @@
*
*/
-#include "internal.h"
+/*#include "internal.h" */
#include "util.h"
#include "connection.h"
#include "conversation.h"
@@ -20,8 +20,27 @@
#include <stdio.h>
#include <limits.h>
#include <time.h>
+#include <string.h>
#include "../gaimnosd_config.h"
+#ifdef ENABLE_NLS
+# include <locale.h>
+# include <libintl.h>
+# define _(String) ((const char *)gettext(String))
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# include <locale.h>
+# define N_(String) (String)
+# ifndef _
+# define _(String) ((const char *)String)
+# endif
+# define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
+#endif
+
static GaimPlugin *my_plugin = NULL;
xosd *osd = NULL;
time_t last_print = 0;
Logged In: YES
user_id=30120
Originator: NO
Hmm... ok, I think I found what's wrong... the internal.h file is not shipped in the library in Debian... the plugin was probably written for other setup where internal.h is installed in /usr/include/...
Anyway, I've finally successed in compiling the plugin and make it work, with the following patch.
Hope this helps.
--- cvs/gaimnosd/src/gaimnosd.c 2005-03-25 01:43:17.000000000 +0100
+++ src/gaimnosd.c 2007-03-31 19:26:44.000000000 +0200
@@ -3,25 +3,40 @@
*
*/
-#include "internal.h"
+#define GAIM_PLUGINS
+
+#include <glib.h>
+
+#include "notify.h"
+#include "plugin.h"
+#include "version.h"
#include "util.h"
-#include "connection.h"
-#include "conversation.h"
-#include "core.h"
#include "debug.h"
-#include "signals.h"
-#include "prefs.h"
-#include "version.h"
#include "xosd.h"
-#include "gtkimhtml.h"
#include "gtkplugin.h"
#include "gtkutils.h"
#include <X11/Xlib.h>
-#include <stdio.h>
-#include <limits.h>
-#include <time.h>
+#include <string.h>
#include "../gaimnosd_config.h"
+#ifdef ENABLE_NLS
+# include <locale.h>
+# include <libintl.h>
+# define _(String) ((const char *)gettext(String))
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+# include <locale.h>
+# define N_(String) (String)
+# ifndef _
+# define _(String) ((const char *)String)
+# endif
+# define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
+#endif
+
static GaimPlugin *my_plugin = NULL;
xosd *osd = NULL;
time_t last_print = 0;