Hi -
I just joined this list today, and was wondering whether anyone might help :
Having built and installed vmalloc, cdt, sfio, in that order, in your
$X/Software
$AST directory, on a modern Linux or Solaris system, try:
$ cd $AST/Software/src/lib
$ mkdir -p test/features
$ cp -fp sfio/features/common test/features
$ cd test
$ ../../../bin/iffe - set cc $CC -I. -I../../../include : run features/sfio >
ast_common.h
Now, in test/ast_common.h, you have a file that cannot be included:
$ echo '#include "ast_common.h"' > t.c
$ gcc -Itest -I../../include -o t -c t.c
What has happened is that Software/include/stdio.h has '#include'd
./ast_common.h
AS IT IS BEING GENERATED, as demonstrated by this
$ ksh -x ../../../bin/iffe -d2 - set cc $CC -I. -I../../../include : run
features/sfio > ast_common.h
output extract:
+2965+ pre=$'#undef\tpthread'
+3043+ m=_hdr_pthread
+3602+ x=pthread.h
+3612+ echo $'\n\n#include <stdio.h>\n#include <sys/types.h>\n\n#include
<pthread.h>'
+3612+ 1> ./801055.c
+3617+ is hdr pthread.h
+3618+ compile gcc -I. -I../../../include -E ./801055.c
+3618+ 0<& 7 1>& 8
+19+ gcc -I. -I../../../include -E ./801055.c
+19+ 2> ./801055.err
+20+ _compile_status=1
+21+ test -s ./801055.err
+22+ cat ./801055.err
+22+ 1>& 2
In file included from ../../../include/sfio.h:38,
from ../../../include/sfio_t.h:52,
from ../../../include/stdio.h:26,
from ./801055.c:3:
./ast_common.h:2:1: error: unterminated #ifndef
+25+ egrep -i -c 'terminated with signal|core dump|segmentation fault'
./801055.err
+25+ 1>& 8
+40+ return 1
+3637+ failure
+169+ result=FAILURE
+3638+ gothdr=' + sys/types.h - pthread.h'
+3647+ eval _hdr_pthread=0
+1+ _hdr_pthread=0
+3653+ continue
Anyone able reproduce this / got any ideas about best way to fix ?
I'm "working around" this currently by ensuring that no sub-package ever
attempts to generate
its own ast-common.h .
Thanks for any responses,
Jason Vas Dias <[EMAIL PROTECTED]>
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers