strerror_r int and char* return type mixup on FC2

Поиск
Список
Период
Сортировка
От Jeroen van Iddekinge
Тема strerror_r int and char* return type mixup on FC2
Дата
Msg-id 420F5C85.6020109@lycos.com
обсуждение исходный текст
Ответы Re: strerror_r int and char* return type mixup on FC2  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Hi,

I noticed that there where  strange symbols in the error message when I 
can't connect to a database.
This happends in PHP and pgsql and  in the 7.4.x and 8.0 version of 
postgesql

in pqStrError there is a 'if def' for 'char*' and 'int' return type 
strerror_r.
I'm have FC2 linux. This version has a 'int' return type strerror_r and 
not char*
I think the build system doesn't detect the return type of strerror_r 
correctly and is not using
the STRERROR_R_INT but the 'char*' part.

This happends in 7.4.x(wich is the offical FC2 release) and mine own 
build 8.0. The libc
version is the default 2.3.3
Is this problem known?

According config.log i have build 8.0 with the following swiches:
./configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-thre
ads=posix --disable-checking --disable-libunwind-exceptions 
--with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux


Regards
Jeroen






В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: creating the same table in 2 different sessions
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: strerror_r int and char* return type mixup on FC2