I am compiling the latest AST source (2011-february) code and I get a
couple of warnings or errors. I am on a Solaris-9 Sparc platform.
One of the compilation errors looks like it could possibly lead to some
potential trouble (if aggravated). It is a C #define redefinition
conflict that appears to arise due to trying to compile in both
LARGEFILE-64-source compilation mode along with the 3d-fs feature.
The redefinition conflict occurs between the following two files:
line 96 of file: ${PACKAGEROOT}/src/lib/libast/ast_fcntl.h
#define fstat fstat64
clashes with (creates redefinition conflict) with
line 27 of file: ${PACKAGEROOT}/src/cmd/3d/fstat3d.c
#define fstat ______fstat
This conflict shows up in the 'make.out' file as (line numbers may not be
exact):
+ cc -O -D_BLD_DLL -fPIC -I. -I/home/guest/rje/astpkg/src/cmd/3d
-I../../../include/ast -I- -I. -I../../../include/ast -DFS -DDEBUG
-DVCS -D_BLD_cs -D_BLD_ast -D_PACKAGE_ast -D_BLD_3d -D_BLD_dll -c
/home/guest/rje/astpkg/src/cmd/3d/fstatfs3d.c
In file included from ../../../include/ast/ast_std.h:76,
from /home/guest/rje/astpkg/src/cmd/3d/3d.h:69,
from /home/guest/rje/astpkg/src/cmd/3d/fstat3d.c:33:
../../../include/ast/ast_fcntl.h:117:1: warning: "fstat" redefined
/home/guest/rje/astpkg/src/cmd/3d/fstat3d.c:28:1: warning: this is the
location of the previous definition
This appears to be a problem that only affects 3d-fs operation, and
only then when on a platform that uses the LARGEFILE-64-source mode of
compilation. Can this warning be safely ignored for all code operation
(including when using the 3d-fs feature)?
Thanks for any information.
----
David Morano
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers