Trying to compile a module, and I'm getting the following error:
[riffraff@ral-eng-calvin-01 G3]$ pike -x module ** Old style module ** Running make PIKE_INCLUDES=-I/usr/local/pike/7.8.469/include/pike PIKE_SRC_DIR=/usr/local/pike/7.8.469/include/pike BUILD_BASE=/usr/local/pike/7.8.469/include/pike MODULE_BASE=/usr/local/pike/7.8.469/include/pike/modules TMP_BINDIR=/usr/local/pike/7.8.469/include/pike SRCDIR=. FULL_SRCDIR=/home/riffraff/Projects/G3/ TMP_MODULE_BASE=. PIKE_EXTERNAL_MODULE=pike_external_module CORE_AUTODOC_PATH=/usr/local/pike/7.8.469/doc/src/core_autodoc.xml SYSTEM_DOC_PATH=/usr/local/pike/7.8.469/doc/ SYSTEM_MODULE_PATH=/usr/local/pike/7.8.469/lib/modules LOCAL_MODULE_PATH=/home/riffraff/lib/pike/modules RUNPIKE=pike make[1]: Entering directory `/home/riffraff/Projects/G3' Linking G3 In file included from gobject.c:1: g3object.h:5:25: error: pike/global.h: No such file or directory g3object.h:6:21: error: program.h: No such file or directory g3object.h:7:23: error: interpret.h: No such file or directory g3object.h:8:22: error: stralloc.h: No such file or directory g3object.h:9:20: error: object.h: No such file or directory
(pike/global.h) was just to test if the if had to do the subdirectory.
It looks like the pike include directory isn't being passed. This is my Makefile.in:
@make_variables@ VPATH=@srcdir@ OBJS=gobject.c support.c base.c MODDIR= MODNAME=G3 DEST=@prefix@/lib/pike/modules AUTODOC_SRC_IN=gobject.c MODULE_PMOD_IN=module.pmod.in MODULE_LDFLAGS=@LDFLAGS@ @LIBS@ @G3_LIBS@ @GTK_LIBS@ MODULE_CFLAGS=@CFLAGS@ @G3_CFLAGS@ CONFIG_HEADERS=@CONFIG_HEADERS@ @dynamic_module_makefile@ @dependencies@
Relevant parts of configure.in:
AC_INIT([G3], [0.1], [riffraff riffraff169@yahoo.com], [G3])
AC_MODULE_INIT() AC_CONFIG_HEADERS(g3_config.h)
PIKE_FEATURE_WITHOUT(G3)
AC_DEFINE(FUNCPROTO) AC_HEADER_STDC
AC_CHECK_FUNCS( gethrtime signal sigaction )
AC_PATH_PROG(PKG_CONFIG,${ac_tool_prefix}pkg-config,no) # other stuff removed that doesn't seem relevant
LIBS="$OLD_LIBS" CFLAGS="$OLD_CFLAGS"
AC_SUBST(WITH_GTK) G3_CFLAGS="$GTK_CFLAGS" G3_LIBS="$GTK_LIBS" CFLAGS="$MODULE_CFLAGS $CFLAGS $GTK_CFLAGS" LIBS="$MODULE_LDFLAGS $LIBS" CMOD_LIBS="$LIBS" CMOD_CFLAGS="$CFLAGS" #"-g -std=gnu99 -DUSE_WCHAR_SCANF"
AC_SUBST(CMOD_CFLAGS) AC_SUBST(CMOD_LIBS) AC_SUBST(G3_LIBS) AC_SUBST(G3_CFLAGS) AC_SUBST(CFLAGS) AC_SUBST(LIBS) AC_SUBST(GTK_LIBS) #AC_CHECK_HEADER([libnotify/notify.h]) AC_OUTPUT(Makefile)
I'm trying to compare with other modules, mostly GTK2, but they compile fine, but mine isn't getting the pike include dir of /usr/local/pike/7.8.469/include/pike.
From config.log:
G3_CFLAGS=' -pthread -DORBIT2=1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/includ e -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/in clude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/includ e/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnome-2.0 -I/usr/include/o rbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vf s-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/db us-1.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 - I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/libg nomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/panel-2.0 ' G3_LIBS=' -pthread -lglade-2.0 -lxml2 -lgnomeui-2 -lSM -lICE -lgnomevfs-2 -lpane l-applet-2 -lgconf-2 -lbonoboui-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activatio n -lORBit-2 -lgnomecanvas-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 - lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -l freetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 ' CPPFLAGS=' -I/home/riffraff/src/Pike/7.8/build/linux-2.6.32.12-115.fc12.i686-i68 6/bundles/include -I/usr/local/include' CMOD_CFLAGS=' -g -ggdb3 -mtune=i686 -pthread -DORBIT2=1 -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/i nclude/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/incl ude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/lib gnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-v fs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/incl ude/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/bonobo-activation-2.0 -I /usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 - I/usr/include/libart-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonobo ui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/ panel-2.0 ' CFLAGS=' -g -ggdb3 -mtune=i686 -pthread -DORBIT2=1 -I/usr/include/gtk-2.0 -I/u sr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/includ e/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/p ixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libgnome -2.0 -I/usr/include/orbit-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2. 0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/d bus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/ include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr /include/libart-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2. 0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/panel -2.0 '
Not sure where the problem lies. Does anybody have any ideas, or need more information to provide a solution? I'm still trying different things, but I've tried a lot of different combinations of stuff trying to get it to work so far.
Thanks -lsd
pike-devel@lists.lysator.liu.se