Number: 202
Title: Compile Error (Solaris 8/gcc 2.95.3/Graphviz 1.8.9)
Submitter: Phillip Wu
Date: Tue Sep 17 19:18:39 2002
Subsys: Build/Installation
Version: 1.8.9
System: Sparc-Solaris-2.8
Severity: minor
Problem:
Compile error. After running configure and make it gets to this part of the compile:

gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../tools/sfio -g -O2 -Wall -Wno-u
nknown-pragmas -DNDEBUG -c sfdcdio.c  -fPIC -DPIC -o sfdcdio.lo
In file included from ../../../tools/sfio/sfio_t.h:29,
                 from ../../../tools/sfio/sfhdr.h:12,
                 from sfdchdr.h:1,
                 from sfdcdio.c:1:
../../../tools/sfio/sfio.h:93: parse error before `*'
../../../tools/sfio/sfio.h:94: parse error before `*'
../../../tools/sfio/sfio.h:95: parse error before `*'
../../../tools/sfio/sfio.h:96: parse error before `_ARG_'
../../../tools/sfio/sfio.h:100: parse error before `Sfread_f'
../../../tools/sfio/sfio.h:100: warning: no semicolon at end of struct or union
../../../tools/sfio/sfio.h:101: warning: type defaults to `int' in declaration o
f `writef'
../../../tools/sfio/sfio.h:101: warning: data definition has no type or storage
class
../../../tools/sfio/sfio.h:102: parse error before `seekf'
../../../tools/sfio/sfio.h:102: warning: type defaults to `int' in declaration o
f `seekf'
../../../tools/sfio/sfio.h:102: warning: data definition has no type or storage
class
../../../tools/sfio/sfio.h:103: parse error before `exceptf'

and many more error messages.

The relevant lines in sfio.h are:


typedef ssize_t         (*Sfread_f)_ARG_((Sfio_t*, Void_t*, size_t, Sfdisc_t*));
typedef ssize_t         (*Sfwrite_f)_ARG_((Sfio_t*, const Void_t*, size_t, Sfdisc_t*));
typedef Sfoff_t         (*Sfseek_f)_ARG_((Sfio_t*, Sfoff_t, int, Sfdisc_t*));
typedef int             (*Sfexcept_f)_ARG_((Sfio_t*, int, Void_t*, Sfdisc_t*));

My C is not all that good but is this trying to define a proforma procedure? Why is this compile failing?

Thanks for any help.

Phillip Wu pwu@qantas.com.au

ps. I resolved the configure problem that I previously reported.
Owner: ellson
Status: Fixed