too many arguments to function `getpwuid_r'

From: Wes Palmer <Wesley(dot)R(dot)Palmer(at)syntegra(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: too many arguments to function `getpwuid_r'
Date: 2004-03-24 20:44:26
Message-ID: BC874F4A.BC4E%Wesley.R.Palmer@syntegra.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In building Postgres 7.4.2 on Solaris 8, I get:

gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -fPIC -I. -I../../../src/include -DFRONTEND
-DSYSCONFDIR='"/home/wrp/local/etc/postgresql"' -c -o thread.o thread.c

thread.c: In function `pqGetpwuid':
thread.c:116: too many arguments to function `getpwuid_r'
make[3]: *** [thread.o] Error 1
make[3]: Leaving directory `/home/wrp/postgresql-7.4.2/src/interfaces/libpq'

The code comments show:

#if defined(FRONTEND) && defined(ENABLE_THREAD_SAFETY) &&
defined(NEED_REENTRANT_FUNCS) && defined(HAVE_GETPWUID_R)
/*
* Early POSIX draft of getpwuid_r() returns 'struct passwd *'.
* getpwuid_r(uid, resultbuf, buffer, buflen)
* Do we need to support it? bjm 2003-08-14
*/
/* POSIX version */
getpwuid_r(uid, resultbuf, buffer, buflen, result);

I think the answer is "yes, it needs to be supported"...

Wes

Browse pgsql-general by date

  From Date Subject
Next Message Markus Bertheau 2004-03-24 20:49:09 Re: unicode error and problem
Previous Message Kris Jurka 2004-03-24 20:41:58 Re: 7.4.2 on Solaris 9 - Error