Subject: 20010407-1.5T & postgresql
To: None <jlam@netbsd.org>
From: User Noud <noud@knot.nl>
List: tech-pkg
Date: 05/07/2001 21:47:51
i took the i386/snapshot/20010407-1.5T
and the current pkgsrc from april 22
containing postgresql 7.0.3

(cause i want to see if i can update my systems..,
i took a clean disk, so no old code could be in the way)

but i got stuck in postgresql giving me this error:

cc -I../../include -I../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I..   
-c -o stringinfo.o stringinfo.c
stringinfo.c: In function `appendStringInfo':
stringinfo.c:104: syntax error before `args'
stringinfo.c:121: `args' undeclared (first use in this function)
stringinfo.c:121: (Each undeclared identifier is reported only once
stringinfo.c:121: for each function it appears in.)
gmake[2]: *** [stringinfo.o] Error 1
gmake[2]: Leaving directory
`/usr/pkgsrc/databases/postgresql/work/postgresql-7.0.3/src/backend/lib'

*** Error code 2

this is the offending part:

void
appendStringInfo(StringInfo str, const char *fmt,...)
{
        va_list         args;

so i #include <stdarg.h> in include/postgres.h, to get the thingy build.
now i have build but starting gives me:

isdn1# su pgsql -c " /usr/pkg/bin/postmaster -i -S -D /usr/pkg/pgsql/data"
Bus error
isdn1# psql
Bus error (core dumped)

should i include some netbsd-arg.h iso the stdarg.h??
should i only include in stringinfo.c (and other appropriate places) iso in
postgres.h??
of f.i. is it a global manco, as in, that i forget to set something somewhere?
anyone can report a working pgsql 'out of the box'?

(looking ahead i see tcl-postgresql and tk-postgresql,
expecting tcl.h in /usr/pkg/lib/tcl iso in /usr/pkg/lib)

thanx again all!,
~n


----------------------------------
E-Mail: User Noud <noud@knot.nl>
Date: 07-May-01
Time: 21:43:01

This message was sent by XFMail
----------------------------------