[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Problem compiling gnetman . . . .
- To: geda-user@seul.org
- Subject: Re: gEDA-user: Problem compiling gnetman . . . .
- From: sdb@cloud9.net (Stuart Brorson)
- Date: Sun, 16 Nov 2003 20:46:06 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: geda-user-outgoing@seul.org
- Delivered-to: geda-user@seul.org
- Delivery-date: Sun, 16 Nov 2003 20:46:30 -0500
- In-reply-to: <no.id> from "Bill Cox" at Nov 15, 2003 08:22:23 PM
- Reply-to: geda-user@seul.org
- Sender: owner-geda-user@seul.org
Hi Bill,
I installed the new version of guile. Now the compilation barfs when it
can't find a typedef. Here's the output of "make":
[root@Fermat batch]# make
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/utbox.c -o obj/utbox.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/uthtbl.c -o obj/uthtbl.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/util.c -o obj/util.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/utmem.c -o obj/utmem.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/utunix.c -o obj/utunix.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/utrand.c -o obj/utrand.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../util/utvalue.c -o obj/utvalue.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../cir/cirddr.c -o obj/cirddr.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../cir/cirlex.c -o obj/cirlex.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../cir/cirmain.c -o obj/cirmain.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../cir/cirytab.c -o obj/cirytab.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../guile/gumain.c -o obj/gumain.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schbuild.c -o obj/schbuild.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schddr.c -o obj/schddr.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schgensym.c -o obj/schgensym.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schpost.c -o obj/schpost.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schmain.c -o obj/schmain.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schnetlist.c -o obj/schnetlist.o
gcc -c -g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDDR_DEBUG -I../include ../sch/schread.c -o obj/schread.o
../sch/schread.c: In function `readLine':
../sch/schread.c:67: parse error before `c'
../sch/schread.c:70: `c' undeclared (first use in this function)
../sch/schread.c:70: (Each undeclared identifier is reported only once
../sch/schread.c:70: for each function it appears in.)
make: *** [obj/schread.o] Error 1
[root@Fermat batch]#
I checked it out, and it turns out that the problem is the UTINT
declaration in:
static char *readLine(void)
{
schLineLength = 0;
UTINT c;
[. . . . etc . . . .]
UTINT is defined in ${SRCDIR}/gnetman/src/include/uttypes.h, but
somehow that typedef never percolates up to schread.c via the #include
chain.
I tried to edit schread.c to incorporate a #include, but the file is
apparenently read-only, even after I did a chmod on everything I could
lay my hands on. It must have something to do with the CVS system. I
am unfamiliar with working with CVS; perhaps I should learn it.
Therefore, if you could provide some advice about how to edit your
stuff, I would very much appreciate it. Also, perhaps a clear
definition of the way you have architected your #include chain would
be a very good thing.
Thanks for your help,
Stuart
> Hi, Stuart.
>
> The problem is the old version of guile. If you get the latest stuff, I
> think it will compile correctly. The gEDA tools seem to use an old
> version, but I'm not sure why.
>