Trouble scigraphica 2.1.1 compiling on Ubuntu 05.10/AMD64

Neilen Marais <[email protected]> Mon, 21 Nov 2005 13:09:57 +0200
Newsgroups gmane.comp.scigraphica.devel
Message-ID <[email protected]>
Hi

I'm running into some trouble compiling scigraphica under Ubuntu. The fir=
st
problem seems to be that the configure script can't find the arrayobject.=
h
file. It seems to be in usr/include/python2.4/Numeric/arrayobject.h on my
machine. I hacked the Makefiles to fix this, but now I run into the follo=
wing
compiler error (gcc-4.0 and gcc-3.4 give the same error):

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../scigraphica -Ipython -I../pi=
xmaps -I../scigraphica/widgets -I../scigraphica/dialogs -I../scigraphica/=
algorithms -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/inclu=
de/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/g=
lib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/local/include/gtkextra-2.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/pango-1.0   -I/usr/include/libxml2   -I/usr/include/python2=
.4   -I/usr/include/gnome-1.0  -DPYTHON_MODULE_PATH=3D\"\" -DSG_PREFIX=3D=
\""/usr/local"\" -DSG_DATADIR=3D\""/usr/local/share/scigraphica/2.1.0"\" =
-DSG_LIBDIR=3D\""/usr/local/lib/scigraphica/2.1.0"\" -DSG_PLUGINDIR=3D\""=
/usr/local/lib/scigraphica/2.1.0/plugins"\" -DSG_ICONDIR=3D\""/usr/local/=
share/pixmaps/scigraphica"\"                        -g -O -W -Wall -DWITH=
_WARNINGS -I/usr/include/gnome-1.0 -DWITH_LIBART -I/usr/include/python2.4=
/Numeric -MT testsheet.o -MD -MP -MF ".deps/testsheet.Tpo" \
  -c -o testsheet.o `test -f 'testsheet.c' || echo './'`testsheet.c; \
then mv -f ".deps/testsheet.Tpo" ".deps/testsheet.Po"; \
else rm -f ".deps/testsheet.Tpo"; exit 1; \
fi
sg_python_expr.c:213: warning: control reaches end of non-void function
sg_python_expr.c: At top level:
sg_python_expr.c:130: warning: unused parameter 'expect'
sg_python_expr.c:214: warning: type defaults to 'int' in declaration of '=
len'
sg_python_expr.c:214: error: 'expect' undeclared here (not in a function)
sg_python_expr.c:214: error: 'array' undeclared here (not in a function)
sg_python_expr.c:214: warning: data definition has no type or storage cla=
ss
sg_python_expr.c:215: error: syntax error before 'if'
sg_python_expr.c:218: error: syntax error before '&' token
sg_python_expr.c:218: warning: type defaults to 'int' in declaration of '=
g_array_append_vals'
sg_python_expr.c:218: error: conflicting types for 'g_array_append_vals'
/usr/include/glib-2.0/glib/garray.h:77: error: previous declaration of 'g=
_array_append_vals' was here
sg_python_expr.c:220: warning: type defaults to 'int' in declaration of '=
retarray'
sg_python_expr.c:220: warning: data definition has no type or storage cla=
ss
sg_python_expr.c:221: warning: type defaults to 'int' in declaration of '=
num'
sg_python_expr.c:221: warning: data definition has no type or storage cla=
ss
sg_python_expr.c:222: error: syntax error before '(' token
make[3]: *** [sg_python_expr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/python2.4/Python.h:8,
                 from ./sg_python.h:26,
                 from ./sg.h:44,
                 from testsheet.c:21:
/usr/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redef=
ined
In file included from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/limits.=
h:122,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/syslimi=
ts.h:7,                 from /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/=
limits.h:11,
                 from /usr/lib/glib-2.0/include/glibconfig.h:11,
                 from /usr/include/glib-2.0/glib/gtypes.h:30,
                 from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkcolor.h:31,
                 from /usr/include/gtk-2.0/gdk/gdkcairo.h:23,
                 from /usr/include/gtk-2.0/gdk/gdk.h:30,
                 from /usr/include/gtk-2.0/gtk/gtk.h:31,
                 from testsheet.c:19:
/usr/include/features.h:190:1: warning: this is the location of the previ=
ous definition
make[3]: Leaving directory `/usr/local/src/libscigraphica-2.1.1/scigraphi=
ca'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/libscigraphica-2.1.1/scigraphi=
ca'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libscigraphica-2.1.1'
make: *** [all] Error 2

Thanks
Neilen

--=20
you know its kind of tragic=20
we live in the new world
but we've lost the magic
-- Battery 9 (www.battery9.co.za)



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick