Обсуждение: Pg 7.2.3 configure error

Поиск
Список
Период
Сортировка

Pg 7.2.3 configure error

От
Ed L.
Дата:
./configure fails for Pg 7.2.3 on HP-UX 11.11 with gcc version 2.95.2.  Any
clues?

Thanks,
Ed


loading cache ./config.cache
checking host system type... hppa1.1-hp-hpux11.11
checking which template to use... hpux
checking whether to build with locale support... no
checking whether to build with recode support... no
checking whether to build with multibyte character support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
using CFLAGS= -g
checking whether the C compiler (gcc  -g ) works... yes
checking whether the C compiler (gcc  -g ) is a cross-compiler... no

[...SNIP, SNIP...]

checking for struct sockcred... no
checking for struct sockaddr_un... yes
checking for int timezone... yes
checking types of arguments for accept()... configure: error: could not
determine argument types

$ gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/specs
gcc version 2.95.2 19991024 (release)

$ uname -a
HP-UX ... B.11.11 U 9000/803 ...

Re: Pg 7.2.3 configure error

От
Ed L.
Дата:
On Friday 04 October 2002 05:31 pm, Ed L. wrote:
> ./configure fails for Pg 7.2.3 on HP-UX 11.11 with gcc version 2.95.2.
> Any clues?

BTW, the HP C compiler (cc) seems to get past it fine.

Ed

>
>
> loading cache ./config.cache
> checking host system type... hppa1.1-hp-hpux11.11
> checking which template to use... hpux
> checking whether to build with locale support... no
> checking whether to build with recode support... no
> checking whether to build with multibyte character support... no
> checking whether NLS is wanted... no
> checking for default port number... 5432
> checking for default soft limit on number of connections... 32
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> using CFLAGS= -g
> checking whether the C compiler (gcc  -g ) works... yes
> checking whether the C compiler (gcc  -g ) is a cross-compiler... no
>
> [...SNIP, SNIP...]
>
> checking for struct sockcred... no
> checking for struct sockaddr_un... yes
> checking for int timezone... yes
> checking types of arguments for accept()... configure: error: could not
> determine argument types
>
> $ gcc -v
> Reading specs from
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/specs gcc version
> 2.95.2 19991024 (release)
>
> $ uname -a
> HP-UX ... B.11.11 U 9000/803 ...

Re: Pg 7.2.3 configure error

От
Tom Lane
Дата:
"Ed L." <pggeneral@bluepolka.net> writes:
>> ./configure fails for Pg 7.2.3 on HP-UX 11.11 with gcc version 2.95.2.
>> Any clues?

> BTW, the HP C compiler (cc) seems to get past it fine.

Hmmm.  There was some report very much like this a few weeks ago;
check the archives.  I think the conclusion was that gcc's "fixed"
includes didn't quite match the actual system headers, because the
complainant was using a gcc installation that had been copied verbatim
from a slightly different version of HPUX.

And indeed I note a comparable discrepancy in your report:

>> $ gcc -v
>> Reading specs from
>> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/specs gcc version
                                 ^^^^^^^^^^^^
>> 2.95.2 19991024 (release)
>>
>> $ uname -a
>> HP-UX ... B.11.11 U 9000/803 ...
               ^^^^^

I'd try building a fresh gcc installation from sources, and see if the
problem goes away ...

            regards, tom lane