Re: can't compile thread.c (PG7.4b1/Linux/GCC 3.3)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Janko Richter <jankorichter(at)yahoo(dot)de>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: can't compile thread.c (PG7.4b1/Linux/GCC 3.3)
Date: 2003-08-26 18:47:00
Message-ID: 200308261847.h7QIl0T09568@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports


We have fixed this in current sources. You can download that or wait
for beta2, which should be released shortly.

---------------------------------------------------------------------------

Janko Richter wrote:
>
>
> An error occurs while compiling src/port/threads.c :
>
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../src/include -I/usr/include -c -o threads.o threads.c
> threads.c: In function `pqGetpwuid':
> threads.c:49: error: too few arguments to function `getpwuid_r'
> threads.c:49: warning: assignment makes pointer from integer without a cast
> threads.c: In function `pqGethostbyname':
> threads.c:74: warning: passing arg 5 of `gethostbyname_r' from
> incompatible pointer type
> threads.c:74: error: too few arguments to function `gethostbyname_r'
> threads.c:74: warning: assignment makes pointer from integer without a cast
> make[2]: *** [threads.o] Error 1
> make[2]: Leaving directory `/usr/src/postgresql-7.4beta1/src/port'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/postgresql-7.4beta1/src'
> make: *** [all] Error 2
>
> PostgreSQL : 7.4 Beta 1
>
> Configure :
>
> ./configure --with-openssl=/usr --enable-integer-datetimes
> --enable-thread-safety
>
> System: SuSE Linux 8.2
>
> Used compiler:
> ip-58:/usr/src/postgresql-7.4beta1 # gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.3/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --libdir=/usr/lib
> --enable-languages=c,c++,f77,objc,java,ada --disable-checking
> --enable-libgcj --with-gxx-include-dir=/usr/include/g++
> --with-slibdir=/lib --with-system-zlib --enable-shared
> --enable-__cxa_atexit i486-suse-linux
> Thread model: posix
> gcc version 3.3 20030226 (prerelease) (SuSE Linux)
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Jason FB 2003-08-26 23:24:51 compilation errors PostgreSQL on Mac OS X -- readline library, other wows
Previous Message Chris M 2003-08-26 15:39:59 Re: Windows port