cccp.c compile error in 2.95.2
Bruce Korb
korb@datadesign.com
Fri Dec 31 08:26:00 GMT 1999
I suppose this is in the FAQ?
make[1]: Entering directory `/home/bkorb/gcc-2.95.2/gcc'
/import/CenterLine/bin/clcc -DIN_GCC -DHAIFA -DSVR4 -g -O2
-DHAVE_CONFIG_H -I. -I. -I./config -I./../include \
-DGCC_INCLUDE_DIR=\"/export5/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include\"
\
-DGPLUSPLUS_INCLUDE_DIR=\"/export5/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../..`echo
/export5/gcc | sed -e 's|^/export5/gcc||' -e 's|/[^/]*|/..|g'`/include/g++-3\" \
-DLOCAL_INCLUDE_DIR=\"/export5/gcc/include\" \
-DCROSS_INCLUDE_DIR=\"/export5/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../sparc-sun-solaris2.7/sys-include\"
\
-DTOOL_INCLUDE_DIR=\"/export5/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../sparc-sun-solaris2.7/include\"
\
-c `echo ./cccp.c | sed 's,^\./,,'`
"./system.h", line 333: warning: sbrk
| Symbol declaration is inconsistent with a previous declaration
| at "/usr/include/unistd.h",L690/C14.
| Type of previous name is `void *()' ("/usr/include/unistd.h",L690/C14);
that of new name is `char *()' ("./system.h",L333/C14).
"cccp.c", line 4815: (syntactic) unexpected symbol:'int'
REPAIR: ';' was inserted before 'int'@"cccp.c",L4815/C1
1 user error 1 warning
make[1]: *** [cccp.o] Error 8
make[1]: Leaving directory `/home/bkorb/gcc-2.95.2/gcc'
> /* Returns whether or not a given character is a directory separator.
> Used by simplify_filename. */
> static inline
> int
> is_dir_separator(ch)
> char ch;
> {
It looks to me like `inline' needs to be #defined away....
More information about the Gcc
mailing list