Hi,
I updated my Debian box some days ago, and since then I'm unable to
compile gnetlist.
It's strange, because gschem compiles just fine, but gnetlist fails when
including stdio.h...

The compilation line in gschem is:
if gcc -DLOCALEDIR=\"/home/cnieves/geda/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I../intl -I../include  -DXTHREADS
-I/home/cnieves/geda/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/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include     -Wall -g -O2 -MT a_pan.o -MD -MP -MF
".deps/a_pan.Tpo" \
  -c -o a_pan.o `test -f 'a_pan.c' || echo './'`a_pan.c; \
then mv -f ".deps/a_pan.Tpo" ".deps/a_pan.Po"; \
else rm -f ".deps/a_pan.Tpo"; exit 1; \
fi

and in gnetlist:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DXTHREADS
-I/home/cnieves/geda/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/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include     -Wall -g -O2 -MT g_netlist.o -MD -MP -MF
".deps/g_netlist.Tpo" \
  -c -o g_netlist.o `test -f 'g_netlist.c' || echo './'`g_netlist.c; \
then mv -f ".deps/g_netlist.Tpo" ".deps/g_netlist.Po"; \
else rm -f ".deps/g_netlist.Tpo"; exit 1; \
fi

They seem to include the same directories. I made a 'make
gnetlist_maint', and recompile gnetlist again, with no success. The
error I got is:

In file included from /usr/include/stdio.h:34,
                 from g_netlist.c:22:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/stddef.h:214: error: syntax
error before 'typedef'
make: *** [g_netlist.o] Error 1

The part of stddef.h is:
213: #if ! (defined (__GNUG__) && defined (size_t)) 
214: typedef __SIZE_TYPE__ size_t;
215: #ifdef __BEOS__
216: typedef long ssize_t;
217: #endif */ /* __BEOS__ */
218: #endif  /* !(defined (__GNUG__) && defined (size_t)) */

It's strange because stdio.h is also included in gschem, but it compiles
fine, and it is even more strange that gnetlist/src/i_vars.c (which also
includes stdio.h) is compiled ok before g_netlist.c ...

I'm using GTK 2.8.9 and gcc 4.0.2.

Anyone has tried to compile geda with new versions of gcc?

Thanks,

Carlos

Reply via email to