Re: Postgres failed to compile on debian x86 - Mailing list pgsql-ports

From Josh Fremer
Subject Re: Postgres failed to compile on debian x86
Date
Msg-id 4B8EC131-1671-4A91-965C-ACE4D25F6200@earthlink.net
Whole thread Raw
In response to Re: Postgres failed to compile on debian x86  (Seneca Cunningham <tentra@gmail.com>)
Responses Re: Postgres failed to compile on debian x86  (Seneca Cunningham <tentra@gmail.com>)
List pgsql-ports
I can't believe I forgot to mention this before, but the version of
postgresql I'm trying to install is 8.1.4.

On Sep 5, 2006, at 12:24 AM, Seneca Cunningham wrote:

> If you have a deb-src entry for main in your sources.list, you can
> use "apt-get build-dep" followed by a Debian postgres package name
> to find what development packages Debian considers to be required.
> I can't remember the full package list off hand, but expect there
> to be packages like libc6-dev, libreadline5-dev, cpp, perl-dev,
> libssl-dev, zlib-dev.

Thanks for this excellent tip; I had no idea the "build-dep"
functionality even existed.  I tried doing an "apt-get build-dep" on
the latest version of postgresql in stable (7.4 I believe) which
installed a whole bunch of stuff which probably helped, but didn't
solve the problem

I then opted to add the testing branch to my sources list and do an
"apt-get build-dep postgresql-8.1" since this is the same major
version of postgresql I'm trying to build.  This yields the same error.

> All this output is normal for a configure script that didn't fail.

Again, I'm sorry, but I really don't know what parts of this 660k log
file are the most useful.  Here's a snippet from the end of the first
section:

----------
configure:13454: gcc -c -O2 -Wall -Wmissing-prototypes -Wpointer-
arith -Winline -Wendif-labels -fno-strict-aliasing -D_GNU_SOURCE  -I/
usr/include/linux/ -I/usr/include conftest.c >&5
In file included from /usr/include/sys/types.h:266,
                  from /usr/include/sys/uio.h:24,
                  from /usr/include/sys/socket.h:27,
                  from conftest.c:54:
/usr/include/bits/pthreadtypes.h:50: error: syntax error before "size_t"
/usr/include/bits/pthreadtypes.h:53: error: syntax error before
"__stacksize"
In file included from /usr/include/sys/uio.h:29,
                  from /usr/include/sys/socket.h:27,
                  from conftest.c:54:
/usr/include/bits/uio.h:45: error: syntax error before "size_t"
In file included from /usr/include/sys/socket.h:35,
                  from conftest.c:54:
/usr/include/bits/socket.h:221: error: syntax error before "size_t"
/usr/include/bits/socket.h:224: error: syntax error before
"msg_controllen"
/usr/include/bits/socket.h:227: error: syntax error before '}' token
/usr/include/bits/socket.h:232: error: syntax error before "size_t"
/usr/include/bits/socket.h:239: error: syntax error before '}' token
/usr/include/bits/socket.h: In function `__cmsg_nxthdr':
/usr/include/bits/socket.h:266: error: `size_t' undeclared (first use
in this function)
/usr/include/bits/socket.h:266: error: (Each undeclared identifier is
reported only once
/usr/include/bits/socket.h:266: error: for each function it appears in.)
/usr/include/bits/socket.h:266: error: syntax error before "__cmsg"
/usr/include/bits/socket.h:271: error: dereferencing pointer to
incomplete type
/usr/include/bits/socket.h:271: error: syntax error before '~' token
/usr/include/bits/socket.h:271: error: syntax error before ')' token
/usr/include/bits/socket.h:272: error: invalid use of undefined type
`struct cmsghdr'
/usr/include/bits/socket.h:272: error: dereferencing pointer to
incomplete type
/usr/include/bits/socket.h:273: error: dereferencing pointer to
incomplete type
/usr/include/bits/socket.h:274: error: dereferencing pointer to
incomplete type
/usr/include/bits/socket.h:274: error: syntax error before '~' token
/usr/include/bits/socket.h:275: error: syntax error before '>' token
In file included from conftest.c:54:
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:136: error: syntax error before "size_t"
/usr/include/sys/socket.h:143: error: syntax error before "size_t"
/usr/include/sys/socket.h:150: error: syntax error before "size_t"
/usr/include/sys/socket.h:161: error: syntax error before "size_t"
conftest.c:56: error: syntax error before "accept"
conftest.c:56: warning: type defaults to `int' in declaration of
`accept'
conftest.c:56: error: conflicting types for `accept'
/usr/include/sys/socket.h:210: error: previous declaration of `accept'
conftest.c:56: warning: data definition has no type or storage class
/usr/include/bits/socket.h:237: warning: array `__cmsg_data' assumed
to have one element
configure:13460: $? = 1
configure: failed program was:
| /* confdefs.h.  */

<snip>

configure:13488: error: could not determine argument types
----------

Again, thanks very much for any suggestions.

pgsql-ports by date:

Previous
From: Seneca Cunningham
Date:
Subject: Re: Postgres failed to compile on debian x86
Next
From: Seneca Cunningham
Date:
Subject: Re: Postgres failed to compile on debian x86