Discussion:
problem compiling 7.4.3
(too old to reply)
Renney Thomas
2004-06-16 22:33:09 UTC
Permalink
While compiling 7.4.3 on Solaris 8 (sparc) I got:

rm -f thread.c && ln -s ../../../src/port/thread.c .
gcc -pthreads -O3 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declar
ations -fPIC -I. -I../../../src/include -I/usr/local/include
-I/usr/local/ssl/incl
ude -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND
-DSYSCONFDIR='"/usr/local/p
gsql/etc"' -c -o thread.o thread.c
thread.c: In function `pqGetpwuid':
thread.c:119: error: too few arguments to function `getpwuid_r'
thread.c:119: warning: assignment makes pointer from integer without a cast
gmake[3]: *** [thread.o] Error 1
gmake[3]: Leaving directory `/opt/sft/postgresql-7.4.3/src/interfaces/libpq'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/sft/postgresql-7.4.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/sft/postgresql-7.4.3/src'


GCC:
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld
--disable-nls
Thread model: posix
gcc version 3.4.0


SunOS 5.8 Generic_117350-02 sun4u sparc SUNW,Ultra-1

Any patch files for this?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Jim Seymour
2004-06-16 23:09:31 UTC
Permalink
[snip]
Post by Renney Thomas
Any patch files for this?
Yes. Bruce Momjian <***@candle.pha.pa.us> posted a patch for
this to the [GENERAL] mailing list earlier today. I've saved a
copy, for your convenience, to:

ftp://jimsun.LinxNet.com/pub/misc/pgsql-7.4.3_config_thread.patch

Jim

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Bruce Momjian
2004-06-16 23:58:08 UTC
Permalink
The attached patch fixes the problem. You need to re-run configure and
recompile the code. This will be fixed in 7.4.4 too.

---------------------------------------------------------------------------
Post by Renney Thomas
rm -f thread.c && ln -s ../../../src/port/thread.c .
gcc -pthreads -O3 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declar
ations -fPIC -I. -I../../../src/include -I/usr/local/include
-I/usr/local/ssl/incl
ude -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DFRONTEND
-DSYSCONFDIR='"/usr/local/p
gsql/etc"' -c -o thread.o thread.c
thread.c:119: error: too few arguments to function `getpwuid_r'
thread.c:119: warning: assignment makes pointer from integer without a cast
gmake[3]: *** [thread.o] Error 1
gmake[3]: Leaving directory `/opt/sft/postgresql-7.4.3/src/interfaces/libpq'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/sft/postgresql-7.4.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/sft/postgresql-7.4.3/src'
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld
--disable-nls
Thread model: posix
gcc version 3.4.0
SunOS 5.8 Generic_117350-02 sun4u sparc SUNW,Ultra-1
Any patch files for this?
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
--
Bruce Momjian | http://candle.pha.pa.us
***@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Loading...