Hi! ----
While trying to build GNU coreutils using libast I hit the following build errors: -- snip -- $ wget 'http://src.opensolaris.org/source/raw/sfw/usr/src/cmd/coreutils/coreutils-6.7.tar.bz2' $ bzcat <coreutils-6.7.tar.bz2 | tar -xf - $ cd coreutils-6.7.tar.bz2 $ (CC=/opt/SUNWspro/bin/cc CFLAGS="-xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -xarch=v9 -I/usr/include/ast -last" ./configure) [snip] $ (CC=/opt/SUNWspro/bin/cc CFLAGS="-xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -xarch=v9 -I/usr/include/ast -last" gmake) [snip] gmake[2]: Entering directory `/home/test001/tmp/ast_coreutils/coreutils-6.7/lib' source='fnmatch.c' object='fnmatch.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ /opt/SUNWspro/bin/cc -I. -xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -xarch=v9 -I/usr/include/ast -last -c fnmatch.c "/usr/include/unistd.h", line 473: identifier redeclared: _ast_resolvepath current : function(pointer to const char, pointer to char, unsigned long) returning int previous: function(pointer to const char, pointer to char, unsigned long) returning pointer to char : "/usr/include/ast/ast_map.h", line 308 "/usr/include/sys/lc_core.h", line 162: warning: no explicit type given "/usr/include/sys/lc_core.h", line 162: syntax error before or at: * "/usr/include/sys/lc_core.h", line 163: syntax error before or at: mbstate_t "/usr/include/sys/lc_core.h", line 163: warning: undefined or missing type for: mbstate_t "/usr/include/sys/lc_core.h", line 165: syntax error before or at: mbstate_t "/usr/include/sys/lc_core.h", line 165: warning: undefined or missing type for: mbstate_t "/usr/include/sys/lc_core.h", line 166: syntax error before or at: mbstate_t "/usr/include/sys/lc_core.h", line 166: warning: undefined or missing type for: mbstate_t "/usr/include/sys/lc_core.h", line 168: syntax error before or at: mbstate_t "/usr/include/sys/lc_core.h", line 168: warning: undefined or missing type for: mbstate_t "/usr/include/sys/lc_core.h", line 170: syntax error before or at: mbstate_t "/usr/include/sys/lc_core.h", line 170: warning: undefined or missing type for: mbstate_t "/usr/include/sys/lc_core.h", line 429: warning: no explicit type given "/usr/include/sys/lc_core.h", line 429: syntax error before or at: * "/usr/include/sys/lc_core.h", line 430: syntax error before or at: * "/usr/include/sys/lc_core.h", line 430: warning: undefined or missing type for: char "/usr/include/sys/lc_core.h", line 431: warning: no explicit type given "/usr/include/sys/lc_core.h", line 431: syntax error before or at: * "/usr/include/sys/lc_core.h", line 431: warning: undefined or missing type for: char "/usr/include/sys/lc_core.h", line 432: warning: undefined or missing type for: size_t "/usr/include/sys/lc_core.h", line 432: warning: undefined or missing type for: size_t "/usr/include/sys/lc_core.h", line 433: syntax error before or at: * "/usr/include/sys/lc_core.h", line 433: warning: undefined or missing type for: const "/usr/include/sys/lc_core.h", line 434: warning: undefined or missing type for: size_t "/usr/include/sys/lc_core.h", line 434: warning: undefined or missing type for: size_t "/usr/include/sys/lc_core.h", line 435: warning: no explicit type given "/usr/include/sys/lc_core.h", line 435: syntax error before or at: * "/usr/include/sys/lc_core.h", line 436: syntax error before or at: * "/usr/include/sys/lc_core.h", line 436: warning: undefined or missing type for: const "/usr/include/ast/ast_stdio.h", line 361: warning: macro redefined: getline cc: acomp failed for fnmatch.c gmake[2]: *** [fnmatch.o] Error 2 gmake[2]: Leaving directory `/home/test001/tmp/ast_coreutils/coreutils-6.7/lib' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/home/test001/tmp/ast_coreutils/coreutils-6.7/lib' gmake: *** [all-recursive] Error 1 -- snip -- The first problem is that Solaris and AST |resolvepath()| prototypes seem to differ: AST defines |resolvepath()| like this: -- snip -- #undef resolvepath #define resolvepath _ast_resolvepath extern __MANGLE__ char* resolvepath __PROTO__((const char*, char*, size_t)); #undef setenv -- snip -- ... while Solaris uses this prototype: -- snip -- int resolvepath(const char *path, char *buf, size_t bufsiz); -- snip -- The 2nd problem is that |mbstate_t| can nowhere be found in the headers when -I/usr/include/ast/ comes first... ;-( ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
