This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Problem compiling bin/kawapath.c
- From: Dean Ferreyra <dferreyra at igc dot org>
- To: 'Kawa List' <kawa at sources dot redhat dot com>
- Date: Mon, 14 Nov 2005 15:40:29 -0800
- Subject: Problem compiling bin/kawapath.c
I got an error compiling bin/kawapath.c from CVS (see error below).
Maybe I've conifgured something wrong? In any case, I just swapped
two lines to get it to compile (attached diff).
Dean
----------
% gcc --version
2.95.4
----------
Making all in bin
make[1]: Entering directory `/home/dferreyra/kawa/cvs/kawa-pure/bin'
source='kawapath.c' object='kawapath.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
gcc -DJAVA='"java"'
-DKAWALIB='"/tmp/kawa/share/java/kawa-1.8.1alpha.jar"'
-DKAWAJAR='"kawa-1.8.1alpha.jar"' -I. -I. -g -O2 -c kawapath.c
kawapath.c: In function `get_classpath':
kawapath.c:19: parse error before `const'
kawapath.c:20: `rp' undeclared (first use in this function)
kawapath.c:20: (Each undeclared identifier is reported only once
kawapath.c:20: for each function it appears in.)
make[1]: *** [kawapath.o] Error 1
Index: bin/kawapath.c
===================================================================
RCS file: /cvs/kawa/kawa/bin/kawapath.c,v
retrieving revision 1.3
diff -a -u -r1.3 kawapath.c
--- bin/kawapath.c 27 Sep 2005 02:57:39 -0000 1.3
+++ bin/kawapath.c 14 Nov 2005 23:13:12 -0000
@@ -15,8 +15,8 @@
const char *path = getenv("KAWALIB");
if (path == NULL)
{
- path = kawalib;
const char *rp = progname == NULL ? NULL : strrchr(progname, '/');
+ path = kawalib;
if (rp != NULL)
{
/* If kawa is executed "in place" as $builddir/bin/kawa