Thread: Debian build prob

Debian build prob

From
Patrick Welche
Date:
Believe it or not, I'm trying to compile today's cvs pgsql on a
Debian 2.2.19 system. Compilation dies while compiling pg_dump with

../../../src/interfaces/libpq/libpq.so: undefined reference to `atexit'

In the mail archives there is a mention of upgrading libc to
libc6-dev_2.2.5-3_i386.deb. As far as I can tell, that should read
libc6_2.2.5-3_i386.deb, and again AFAICT this system already has
libc6_2.2.5-6_i386.deb on it. I can see atexit is undefined in libpq, and it
is defined in /usr/lib/libc.a. For some reason /lib/libc*.so are stripped,
so it is hard to tell, but I assume it must be the same as for
/usr/lib/libc.a.

Have any of you managed to compile postgresql on an oldstable Debian system?

Cheers,

Patrick


Re: Debian build prob

From
Tom Lane
Date:
Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> Believe it or not, I'm trying to compile today's cvs pgsql on a
> Debian 2.2.19 system. Compilation dies while compiling pg_dump with
> ../../../src/interfaces/libpq/libpq.so: undefined reference to `atexit'

<blink>  Did you run configure?  AFAICT that call only gets compiled if
configure found atexit(), so this is more than a tad surprising ...
        regards, tom lane


Re: Debian build prob

From
"Nigel J. Andrews"
Date:
On Thu, 14 Nov 2002, Patrick Welche wrote:

> Believe it or not, I'm trying to compile today's cvs pgsql on a
> Debian 2.2.19 system. Compilation dies while compiling pg_dump with
> 
> ../../../src/interfaces/libpq/libpq.so: undefined reference to `atexit'
> 
> In the mail archives there is a mention of upgrading libc to
> libc6-dev_2.2.5-3_i386.deb. As far as I can tell, that should read
> libc6_2.2.5-3_i386.deb, and again AFAICT this system already has
> libc6_2.2.5-6_i386.deb on it. I can see atexit is undefined in libpq, and it
> is defined in /usr/lib/libc.a. For some reason /lib/libc*.so are stripped,
> so it is hard to tell, but I assume it must be the same as for
> /usr/lib/libc.a.
> 
> Have any of you managed to compile postgresql on an oldstable Debian system?
> 

The latest I've built was from somewhere like the beta 3 mark but yes, built it
on a Debian 2.2 installation with no library upgrades or anything. Now of
course one would need a new bison.


-- 
Nigel J. Andrews



Re: Debian build prob

From
Patrick Welche
Date:
On Thu, Nov 14, 2002 at 08:55:22PM +0000, Patrick Welche wrote:
> Believe it or not, I'm trying to compile today's cvs pgsql on a
> Debian 2.2.19 system. Compilation dies while compiling pg_dump with
> 
> ../../../src/interfaces/libpq/libpq.so: undefined reference to `atexit'
> 
> In the mail archives there is a mention of upgrading libc to
> libc6-dev_2.2.5-3_i386.deb. As far as I can tell, that should read
> libc6_2.2.5-3_i386.deb, and again AFAICT this system already has
> libc6_2.2.5-6_i386.deb on it. I can see atexit is undefined in libpq, and it
> is defined in /usr/lib/libc.a. For some reason /lib/libc*.so are stripped,
> so it is hard to tell, but I assume it must be the same as for
> /usr/lib/libc.a.
> 
> Have any of you managed to compile postgresql on an oldstable Debian system?

Adam Buraczewski tells me its a linux i386 gcc<=2.95.3 problem. Upgrading gcc
to

gcc version 2.95.4 20011002 (Debian prerelease)

yielded a working postgresql!
PostgreSQL 7.4devel on i686-pc-linux-gnu, compiled by GCC 2.95.4


Cheers,

Patrick