1993.10.20 13:17 "flexfax bug on sun4-gcc?", by Lester Ingber

Hi. I'm trying to compile flexfax-v2.2 on my Sun SPARC-2/4.1.3 with gcc-2.4.4. I get stuck at:

port/generic -I../util -I../iv -I../libtiff -g -x c++ -c AtSyntax.c++
AtSyntax.c++: In function `int operator < (const struct tm&, const struct tm&)'
:
AtSyntax.c++:60: invalid use of undefined type `struct tm'
AtSyntax.c++:60: invalid use of undefined type `struct tm'
AtSyntax.c++:61: invalid use of undefined type `struct tm'
AtSyntax.c++:61: invalid use of undefined type `struct tm'
AtSyntax.c++:61: invalid use of undefined type `struct tm'
AtSyntax.c++:61: invalid use of undefined type `struct tm'
AtSyntax.c++:62: invalid use of undefined type `struct tm'
AtSyntax.c++:62: invalid use of undefined type `struct tm'
AtSyntax.c++:62: invalid use of undefined type `struct tm'
AtSyntax.c++:62: invalid use of undefined type `struct tm'
AtSyntax.c++:63: invalid use of undefined type `struct tm'
AtSyntax.c++:63: invalid use of undefined type `struct tm'
AtSyntax.c++:64: invalid use of undefined type `struct tm'
AtSyntax.c++:64: invalid use of undefined type `struct tm'
AtSyntax.c++:64: invalid use of undefined type `struct tm'
AtSyntax.c++:64: invalid use of undefined type `struct tm'
AtSyntax.c++:65: invalid use of undefined type `struct tm'
AtSyntax.c++:65: invalid use of undefined type `struct tm'
AtSyntax.c++:65: invalid use of undefined type `struct tm'
AtSyntax.c++:65: invalid use of undefined type `struct tm'
AtSyntax.c++:67: warning: control reaches end of non-void function
AtSyntax.c++: In function `int parseAtSyntax (const char *, const struct tm&, s
truct tm&, char *)':
AtSyntax.c++:77: variable `at' has initializer but incomplete type
AtSyntax.c++:77: aggregate `at' has incomplete type and cannot be initialized
AtSyntax.c++:77: storage size of `at' isn't known
AtSyntax.c++:130: `at' undeclared (first use this function)
AtSyntax.c++:130: (Each undeclared identifier is reported only once
AtSyntax.c++:130: for each function it appears in.)
AtSyntax.c++:154: cannot convert type `char *'
AtSyntax.c++:154: to type `struct tm&'
AtSyntax.c++:48: too few arguments to function `unsigned char parseMonthAndYear
 (const char *&, const struct tm&, struct tm&, char *)'
AtSyntax.c++:154: at this point in file
AtSyntax.c++:157: cannot convert type `int '
AtSyntax.c++:157: to type `struct tm&'
AtSyntax.c++:157: aggregate value used where an integer was expected
AtSyntax.c++:45: too few arguments to function `void adjustDay (struct tm&, int
, const struct tm&)'
AtSyntax.c++:157: at this point in file
AtSyntax.c++:177: cannot convert type `char *'
AtSyntax.c++:177: to type `struct tm&'
AtSyntax.c++:49: too few arguments to function `unsigned char parseMultiplier (
const char *, struct tm&, char *)'
AtSyntax.c++:177: at this point in file
AtSyntax.c++:51: too few arguments to function `void fixup (struct tm&)'
AtSyntax.c++:179: at this point in file
AtSyntax.c++: In function `void adjustDay (struct tm&, int, const struct tm&)':
AtSyntax.c++:242: invalid use of undefined type `struct tm'
AtSyntax.c++:243: invalid use of undefined type `struct tm'
AtSyntax.c++:243: invalid use of undefined type `struct tm'
AtSyntax.c++:244: invalid use of undefined type `struct tm'
AtSyntax.c++:245: invalid use of undefined type `struct tm'
AtSyntax.c++:245: invalid use of undefined type `struct tm'
AtSyntax.c++:247: invalid use of undefined type `struct tm'
AtSyntax.c++: In function `void adjustYDay (struct tm&)':
AtSyntax.c++:292: invalid use of undefined type `struct tm'
AtSyntax.c++:292: invalid use of undefined type `struct tm'
AtSyntax.c++:292: invalid use of undefined type `struct tm'
AtSyntax.c++:293: invalid use of undefined type `struct tm'
AtSyntax.c++:293: invalid use of undefined type `struct tm'
AtSyntax.c++:294: invalid use of undefined type `struct tm'
AtSyntax.c++:295: invalid use of undefined type `struct tm'
AtSyntax.c++: In function `unsigned char parseMonthAndYear (const char *&, cons
t struct tm&, struct tm&, char *)':
AtSyntax.c++:305: invalid use of undefined type `struct tm'
AtSyntax.c++:310: invalid use of undefined type `struct tm'
AtSyntax.c++:324: invalid use of undefined type `struct tm'
AtSyntax.c++:335: invalid use of undefined type `struct tm'
AtSyntax.c++:335: invalid use of undefined type `struct tm'
AtSyntax.c++:336: invalid use of undefined type `struct tm'
AtSyntax.c++:336: invalid use of undefined type `struct tm'
tSyntax.c++:336: invalid use of undefined type `struct tm'
AtSyntax.c++:336: invalid use of undefined type `struct tm'
AtSyntax.c++:337: invalid use of undefined type `struct tm'
AtSyntax.c++:341: invalid use of undefined type `struct tm'
AtSyntax.c++:341: invalid use of undefined type `struct tm'
AtSyntax.c++:341: invalid use of undefined type `struct tm'
AtSyntax.c++:342: invalid use of undefined type `struct tm'
AtSyntax.c++:342: invalid use of undefined type `struct tm'
AtSyntax.c++:344: invalid use of undefined type `struct tm'
AtSyntax.c++:344: invalid use of undefined type `struct tm'
AtSyntax.c++: In function `unsigned char parseMultiplier (const char *, struct
tm&, char *)':
AtSyntax.c++:371: invalid use of undefined type `struct tm'
AtSyntax.c++:373: invalid use of undefined type `struct tm'
AtSyntax.c++:375: invalid use of undefined type `struct tm'
AtSyntax.c++:377: invalid use of undefined type `struct tm'
AtSyntax.c++:379: invalid use of undefined type `struct tm'
AtSyntax.c++:380: invalid use of undefined type `struct tm'
AtSyntax.c++:381: invalid use of undefined type `struct tm'
AtSyntax.c++:381: invalid use of undefined type `struct tm'
AtSyntax.c++:384: invalid use of undefined type `struct tm'
AtSyntax.c++: In function `void fixup (struct tm&)':
AtSyntax.c++:402: invalid use of undefined type `struct tm'
AtSyntax.c++:403: invalid use of undefined type `struct tm'
AtSyntax.c++:403: invalid use of undefined type `struct tm'
AtSyntax.c++:404: invalid use of undefined type `struct tm'
AtSyntax.c++:405: invalid use of undefined type `struct tm'
AtSyntax.c++:405: invalid use of undefined type `struct tm'
AtSyntax.c++:409: invalid use of undefined type `struct tm'
AtSyntax.c++:409: invalid use of undefined type `struct tm'
AtSyntax.c++:409: invalid use of undefined type `struct tm'
AtSyntax.c++:411: invalid use of undefined type `struct tm'
AtSyntax.c++:413: invalid use of undefined type `struct tm'
AtSyntax.c++:413: invalid use of undefined type `struct tm'
AtSyntax.c++:420: invalid use of undefined type `struct tm'
AtSyntax.c++:420: invalid use of undefined type `struct tm'
AtSyntax.c++:421: invalid use of undefined type `struct tm'
AtSyntax.c++:421: invalid use of undefined type `struct tm'
AtSyntax.c++:421: invalid use of undefined type `struct tm'
AtSyntax.c++:421: invalid use of undefined type `struct tm'
AtSyntax.c++:422: invalid use of undefined type `struct tm'
AtSyntax.c++:422: invalid use of undefined type `struct tm'
AtSyntax.c++:423: invalid use of undefined type `struct tm'
AtSyntax.c++:425: invalid use of undefined type `struct tm'
AtSyntax.c++:426: invalid use of undefined type `struct tm'
AtSyntax.c++:428: invalid use of undefined type `struct tm'
*** Error code 1
make: Fatal error: Command failed for target `AtSyntax.o'
Current working directory /home/ingber/flexfax-v2.2/util
*** Error code 1
make: Fatal error: Command failed for target `default'
Current working directory /home/ingber/flexfax-v2.2/util
*** Error code 1
make: Fatal error: Command failed for target `dirs'
Current working directory /home/ingber/flexfax-v2.2
*** Error code 1
make: Fatal error: Command failed for target `default'

Thanks.

Lester

|| Prof. Lester Ingber                                 1-800-L-INGBER ||
|| Lester Ingber Research                  Fax: [10ATT]0-700-L-INGBER ||
|| P.O. Box 857                      EMail: ingber@alumni.caltech.edu ||
|| McLean, VA  22101             Archive: ftp.caltech.edu:/pub/ingber ||