[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] smalltalk-2.0.3 on freebsd/snprintfv(3)?
From: |
clemens fischer |
Subject: |
[Help-smalltalk] smalltalk-2.0.3 on freebsd/snprintfv(3)? |
Date: |
19 Jul 2002 21:48:23 +0200 |
this is an i386 freebsd-4.3 i'm trying to install smalltalk-2.0.3 on.
there's trouble with undeclared types in ./snprintfv/format.c and
./snprintfv/snprintfv.c. unfortunately i don't know if snprintfv() must be
declared on a system having vsnprintf(3).
static intmax_t fetch_intmax PARAMS((snv_parser *pparser,
int index));
static uintmax_t fetch_uintmax PARAMS((snv_parser *pparser,
int index));
the types [u]intmax_t are declared in compat.h, but the #ifdefs don't
include them. there are also some float definitions missing, but the
compiler lets me know which in that case:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -O -pipe -L/usr/local/ssl/lib
-I/usr/local/ssl/include -c snprintfv.c -Wp,-MD,.deps/snprintfv.TPlo -o
snprintfv.o
In file included from ../snprintfv/compat.h:55,
from snprintfv.h:43,
from snprintfv.c:47:
/usr/include/values.h:2: warning: #warning "this file includes <values.h>
which is obsoleted, use <limits.h> or <float.h> instead"
snprintfv.c: In function `print_float':
snprintfv.c:359: `DBL_MANT_DIG' undeclared (first use in this function)
snprintfv.c:359: (Each undeclared identifier is reported only once
snprintfv.c:359: for each function it appears in.)
snprintfv.c:466: `DBL_MIN_EXP' undeclared (first use in this function)
snprintfv.c:473: `DBL_MAX_EXP' undeclared (first use in this function)
snprintfv.c: In function `float_specifier_handler':
snprintfv.c:961: `DBL_MAX_10_EXP' undeclared (first use in this function)
snprintfv.c:961: size of array `buffer' has non-integer type
this can't be such a big issue, but it's too big for me. btw, freebsd
includes contain:
#include <stdarg.h>
int
vprintf(const char *format, va_list ap);
int
vfprintf(FILE *stream, const char *format, va_list ap);
int
vsprintf(char *str, const char *format, va_list ap);
int
vsnprintf(char *str, size_t size, const char *format, va_list ap);
int
vasprintf(char **ret, const char *format, va_list ap);
wouldn't these functions do?
--
clemens fischer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-smalltalk] smalltalk-2.0.3 on freebsd/snprintfv(3)?,
clemens fischer <=