On Wed, 6 Jun 2012 13:18:14 -0500 Peter Fales wrote:
> sa_family_t is defined in sys/socket.h and doesn't have any guards
> other than _SYS_SOCKET_H_ at the start of the file. However, it's
> defined as
> typedef u_char sa_family_t;
> and u_char is defined in sys/types.h and guarded with #ifndef _POSIX_SOURCE
I had to modify src/lib/libast/misc/proclib.h for a gnu/linux sys/sockets.h
problem
that area is a mess
try this
edit src/lib/libast/misc/proclib.h
and change
#include <ast_standards.h>
to
#include <ast_standards.h>
#if __MACH__
#undef _POSIX_SOURCE
#endif
> On Wed, Jun 06, 2012 at 01:56:58PM -0400, Glenn Fowler wrote:
> >
> > can you see what header defines sa_family_t
> > and if it has any macro guards
> >
> > On Tue, 5 Jun 2012 13:36:41 -0500 Peter Fales wrote:
> > > New build error with this release on our Darwin 10.3 (darwin7.ppc)
> > > machine:
> >
> > > + silent test -d .
> > > + /bin/cp FEATURE/wait ast_wait.h
> > > + cc -D_BLD_DLL -dynamic -D_BLD_ast -O2 -I.
> > > -I/Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast
> > > -Icomp
> > > -I/Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/comp
> > > -Imisc
> > > -I/Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/misc
> > > -Iinclude
> > > -I/Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/include
> > > -Istd
> > > -I/Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/std
> > > -D_PACKAGE_ast -c
> > > /Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/misc/procopen.c
> > >
> > > In file included from
> > > /Volumes/UFS_exp2/exptools/expmake/build/astsrc/build/src/lib/libast/misc/procopen.c:60:
> > > /usr/include/sys/socket.h:77: error: parse error before "sa_family_t"
> > > /usr/include/sys/socket.h:213: error: parse error before "u_char"
> > > /usr/include/sys/socket.h:216: error: parse error before '}' token
> > > /usr/include/sys/socket.h:224: error: parse error before "u_short"
> > > /usr/include/sys/socket.h:238: error: parse error before "u_char"
> > > /usr/include/sys/socket.h:240: error: _char' undeclared here (not in a
> > > function)
> > > /usr/include/sys/socket.h:242: error: _char' undeclared here (not in a
> > > function)
> > > /usr/include/sys/socket.h:242: error: _char' undeclared here (not in a
> > > function)
> > > /usr/include/sys/socket.h:243: error: parse error before '}' token
> > > /usr/include/sys/socket.h:376: error: parse error before "u_int"
> > > /usr/include/sys/socket.h:380: error: parse error before '}' token
> > > /usr/include/sys/socket.h:471: error: parse error before "u_short"
> > > /usr/include/sys/socket.h:473: error: parse error before '}' token
> > > mamake [lib/libast]: *** exit code 1 making procopen.o
> --
> Peter Fales
> Alcatel-Lucent
> Member of Technical Staff
> 1960 Lucent Lane
> Room: 9H-505
> Naperville, IL 60566-7033
> Email: [email protected]
> Phone: 630 979 8031
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users