Subject: Re: zoularis problems
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 03/29/2001 19:26:46
In article <20010328120749.B6109@caligula.cs.umn.edu>,
 <dokas@cs.umn.edu> wrote:
>
>I'm attempting to compile the zoularis package on a Solaris 5.7 machine
>and I'm having some problems.
>
>First, the zoularis-20001003 tar ball does not contain sys/ansi.h   I
>copied it over from a -current machine.
>
>More significantly, none of the compiles that I have access to recognize
>__builtin_va_list.  I've tried EGCS 1.1, GCC 2.95.2, GCC 2.95.3 and Sun's
>compilers.  Here's an example of the error:
>
>/soft/egcs-1.1/sunos56/bin/gcc -O   -I/export/pkg/include
>-D__EXTENSIONS__ -D_XPG4_2 -DSUNOS_5_7
>-I/export/pkg/zoularis-20001003/lib/libbsdcompat
>-I/export/pkg/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE
>-DOLD_GETCWD -DSUNOS_5_7 -c /export/pkg/usr/src/lib/libc/gen/_err.c
>In file included from /export/pkg/usr/src/lib/libc/gen/err.c:48,
>                 from /export/pkg/usr/src/lib/libc/gen/_err.c:18:
>/export/pkg/include/err.h:54: parse error before `__builtin_va_list'
>/export/pkg/include/err.h:58: parse error before `__builtin_va_list'
>/export/pkg/include/err.h:62: parse error before `__builtin_va_list'
>/export/pkg/include/err.h:66: parse error before `__builtin_va_list'
>*** Error code 1
>
>Stop.
>
>
>
>Are my GCC compilers compiled wrongly?  I kinda doubt it since I can't
>find __builtin_va_list in the GCC manuals or even in the GCC source...
>
>Hrumpf.  All to get SUP to build.  Maybe I'll just put a bullet in SUP
>and just concentrate on turning ftp.cs.umn.edu into an AnonCVS server
>instead...
>

Does your ansi.h.in contain:

#ifdef __GNUC__
#ifdef __GCC_NEW_VARARGS__
#ifndef __GNUC_VA_LIST
#define __GNUC_VA_LIST
typedef char *__gnuc_va_list;
#endif
#define _BSD_VA_LIST_   __gnuc_va_list          /* va_list */
#else
#define _BSD_VA_LIST_   __builtin_va_list       /* va_list */
#endif
#elif defined(__STDC__) && !defined(__i386__)
#define _BSD_VA_LIST_   void *                  /* va_list */
#else
#define _BSD_VA_LIST_   char *                  /* va_list */
#endif
#endif

christos