On Sun, 6 May 2012 03:14:20 +0200 Dan Shelton wrote:
> We're trying to compile a piece of software from Cray on Suse 12.1
> which requires libast and libshell but the compilation fails because
> /usr/include/prototype.h is missing:
> > cc -I/usr/include/ast -L/lib64/ast -lshell -last -ldl 
> > test_net_gemini_rdma.c -o test_net_gemini_rdma
> In file included from /usr/include/ast/shell.h:25:0,
>                  from test_net_gemini_rdma.c:2:
> /usr/include/ast/prototyped.h:1:27: fatal error: ../prototyped.h: No
> such file or directory
> compilation terminated.

> How can I solve this issue? Cray support said that Suse Linux is not a
> supported configuration for the test tool but we'd like to run it
> there instead of installing a separate Fedora box with a Mellanox card
> just to run a single diagnostic tool.

[ prototyped.h is a fairly old header that aided in the transition from K&R to 
ansi C
  and also handles unified C and C++ ast headers ]

if the ast installation has the ast proto(1) command you can generate 
prototyped.h
        proto -f /dev/null > prototyped.h
its also in any ast binary package
or its right here
[ most ast chunks of code that are generated will contain a " : : generated 
by/from FOO : : " comment ]
--
/* : : generated by proto : : */

#if !defined(__PROTO__)
#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || 
defined(c_plusplus)
#    if defined(__cplusplus)
#      define __LINKAGE__       "C"
#    else
#      define __LINKAGE__
#    endif
#    define __STDARG__
#    define __PROTO__(x)        x
#    define __OTORP__(x)
#    define __PARAM__(n,o)      n
#    if !defined(__STDC__) && !defined(__cplusplus)
#      if !defined(c_plusplus)
#       define const
#      endif
#      define signed
#      define void              int
#      define volatile
#      define __V_              char
#    else
#      define __V_              void
#    endif
#  else
#    define __PROTO__(x)        ()
#    define __OTORP__(x)        x
#    define __PARAM__(n,o)      o
#    define __LINKAGE__
#    define __V_                char
#    define const
#    define signed
#    define void                int
#    define volatile
#  endif
#  define __MANGLE__    __LINKAGE__
#  if defined(__cplusplus) || defined(c_plusplus)
#    define __VARARG__  ...
#  else
#    define __VARARG__
#  endif
#  if defined(__STDARG__)
#    define __VA_START__(p,a)   va_start(p,a)
#  else
#    define __VA_START__(p,a)   va_start(p)
#  endif
#  if !defined(__INLINE__)
#    if defined(__cplusplus)
#      define __INLINE__        extern __MANGLE__ inline
#    else
#      if defined(_WIN32) && !defined(__GNUC__)
#       define __INLINE__       __inline
#      endif
#    endif
#  endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__             /* 2004-08-11 transition */
#endif

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to