MODULE-scan doesn't build



	I'm attempting to use gtk-doc in an independent project,
but I can't get MODULE-scan to build. My MODULE-types file is:

#include <gtk/gtk.h>
#include <hexmap.h>

hex_animation_get_type
hex_data_get_type
hex_display_get_type
hex_follow_get_type
hex_grid_get_type
hex_object_get_type
hex_obstacle_get_type
hex_tile_get_type
hex_walker_get_type

The build of MODULE-scan fails with the errors:

*** Scanning header files ***
if grep -l '^..*$' ./hexmap.types > /dev/null ; then \
    CC="/bin/sh ../../libtool --mode=compile gcc" LD="/bin/sh ../../libtool --mode=link gcc" CFLAGS="-I/home/rsteinke/include/gtk-2.0 -I/home/rsteinke/lib/gtk-2.0/include -I/home/rsteinke/include/glib-2.0 -I/home/rsteinke/lib/glib-2.0/include -I/home/rsteinke/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/home/rsteinke/include/atk-1.0   -g -O2 -I../.. -I../.." LDFLAGS="-L/home/rsteinke/lib -L/usr/X11R6/lib -L/usr/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3  " gtkdoc-scanobj --module=hexmap --output-dir=. ; \
else \
    cd . ; \
    for i in hexmap.args 		hexmap.hierarchy 	hexmap.signals ; do \
               test -f $i || touch $i ; \
    done \
fi
gcc -I/home/rsteinke/include/gtk-2.0 -I/home/rsteinke/lib/gtk-2.0/include -I/home/rsteinke/include/glib-2.0 -I/home/rsteinke/lib/glib-2.0/include -I/home/rsteinke/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/home/rsteinke/include/atk-1.0 -g -O2 -I../.. -I../.. -c hexmap-scan.c  -fPIC -DPIC -o .libs/hexmap-scan.o
hexmap-scan.c: In function `output_widget_signals':
hexmap-scan.c:102: structure has no member named `nsignals'
hexmap-scan.c:105: warning: assignment discards qualifiers from pointer target type
hexmap-scan.c:107: structure has no member named `nsignals'
hexmap-scan.c:109: structure has no member named `signals'
hexmap-scan.c:116: structure has no member named `signals'
hexmap-scan.c: In function `output_widget_signal':
hexmap-scan.c:128: `GtkSignalQuery' undeclared (first use in this function)
hexmap-scan.c:128: (Each undeclared identifier is reported only once
hexmap-scan.c:128: for each function it appears in.)
hexmap-scan.c:128: `query_info' undeclared (first use in this function)
hexmap-scan.c:129: parse error before `*'
hexmap-scan.c:142: `param_num' undeclared (first use in this function)
hexmap-scan.c:143: `widget_num' undeclared (first use in this function)
hexmap-scan.c:143: `event_num' undeclared (first use in this function)
hexmap-scan.c:143: `callback_num' undeclared (first use in this function)
hexmap-scan.c:153: `ret_type' undeclared (first use in this function)
hexmap-scan.c:153: `is_pointer' undeclared (first use in this function)
hexmap-scan.c:154: `ret_type_buffer' undeclared (first use in this function)
hexmap-scan.c:159: `pos' undeclared (first use in this function)
hexmap-scan.c:159: `buffer' undeclared (first use in this function)
hexmap-scan.c:164: `object_arg' undeclared (first use in this function)
hexmap-scan.c:170: `object_arg_start' undeclared (first use in this function)
hexmap-scan.c:178: `signal_name' undeclared (first use in this function)
hexmap-scan.c:179: `i' undeclared (first use in this function)
hexmap-scan.c:186: `arg_names' undeclared (first use in this function)
hexmap-scan.c:188: `param' undeclared (first use in this function)
hexmap-scan.c:197: `type_name' undeclared (first use in this function)
hexmap-scan.c:205: `arg_name' undeclared (first use in this function)
hexmap-scan.c:206: `arg_num' undeclared (first use in this function)
hexmap-scan.c: In function `get_type_name':
hexmap-scan.c:257: warning: assignment discards qualifiers from pointer target type
hexmap-scan.c:289: `GTK_TYPE_SIGNAL' undeclared (first use in this function)
hexmap-scan.c:290: `GTK_TYPE_ARGS' undeclared (first use in this function)
hexmap-scan.c:291: `GTK_TYPE_FOREIGN' undeclared (first use in this function)
hexmap-scan.c:292: `GTK_TYPE_CALLBACK' undeclared (first use in this function)
hexmap-scan.c:293: `GTK_TYPE_C_CALLBACK' undeclared (first use in this function)
hexmap-scan.c: In function `output_hierarchy':
hexmap-scan.c:621: warning: assignment makes pointer from integer without a cast
hexmap-scan.c: In function `output_widget_args':
hexmap-scan.c:667: warning: assignment discards qualifiers from pointer target type
hexmap-scan.c:669: structure has no member named `type'
hexmap-scan.c:669: warning: assignment makes pointer from integer without a cast
Compilation of scanner failed
make: *** [scan-build.stamp] Error 1

Any idea why this is happening? I'm passing @GTK_CFLAGS@ to GTKDOC_CFLAGS
in the Makefile.am, so it should be able to see gtk+, at least for
compilation purposes.

Ron Steinke




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]