Menu

#76 datastore_db.c:211: parse error before `*'

closed
nobody
None
5
2004-02-23
2004-02-23
Mivens
No

Hi David,

With bogofilter 0.17.2 compiling against BerkeleyDB
(4.2.52) and GSL 1.4 with gcc-2.95.3 on Solaris 2.8
x86. No arguments when calling configure script.
88 shaft [...src/bogofilter/bogofilter-0.17.2] %
./configure
[snip]
89 shaft [...src/bogofilter/bogofilter-0.17.2] % make
[snip]
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../gnugetopt
-I../trio -I- -I. -I. -I/usr/local/include
-I../gsl/specfunc -I.. -DBOGOFILTER -g -O2 -Wall -W
-Wstrict-prototypes -Wmissing-prototypes -Wshadow
-Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Waggregate-return
-Wmissing-declarations -Wnested-externs -fno-common
-Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type
-Wformat -Wformat=2 -c datastore_db.c
datastore_db.c: In function `db_open':
datastore_db.c:211: parse error before `*'
datastore_db.c:227: `opt_flags' undeclared (first use
in this function)
datastore_db.c:227: (Each undeclared identifier is
reported only once
datastore_db.c:227: for each function it appears in.)
datastore_db.c:235: `idx' undeclared (first use in this
function)
datastore_db.c:235: `retryflags' undeclared (first use
in this function)
datastore_db.c:240: `handle' undeclared (first use in
this function)

No such problem exists with bogofilter 0.17.1.

Let me know what further help I can be.

Discussion

  • David Relson

    David Relson - 2004-02-23

    Logged In: YES
    user_id=30510

    Hi Mark,

    There's a code line intermixed in the declarations of that
    function and gcc-2.95 doesn't like it. The problem was
    reported yesterday and has been patched. See file
    patch.0222.datastore_db.c for the fix.

    David

     
  • David Relson

    David Relson - 2004-02-23
    • status: open --> closed
     

Log in to post a comment.