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

Re: gEDA: Compilation problem



Hi Stuart,
Thanks for your answer. See some points below.

El mar, 27-12-2005 a las 17:40 -0500, Stuart Brorson escribió:
> This is just a stab in the dark . . . . 

> > 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.
>                               ^^^^^
> 
> Did you upgrade gcc from 4.0.2 to 4.0.3 at some point?  Is it possible
> your version of gcc is looking in the wrong place for its header files?
> 
> > Anyone has tried to compile geda with new versions of gcc?
> 
> I've gotten gEDA/gaf to compile just fine with gcc-4.0.2.  Other
> programs barfed, but gEDA/gaf worked fine for me.

~cnieves:~$ dpkg -l|grep gcc|grep 4.0
ii  gcc                              4.0.2-2                        The
GNU C compiler
ii  gcc-4.0                          4.0.2-5                        The
GNU C compiler
ii  gcc-4.0-base                     4.0.2-5                        The
GNU Compiler Collection (base package)
ii  libgcc1                          4.0.2-5                        GCC
support library

(gcc package version 4.0.2-2 depends on gcc-4.0 >= 4.0.2-5)

~cnieves:~$gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --program-suffix=-4.0
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)

So that's the answer: it's the prerelease of gcc 4.0.3...
There is only one directory under /usr/lib/gcc/i486-linux-gnu (4.0.3)...

Maybe I should wait until the real 4.0.3 release of gcc...

Thanks,

Carlos