Re: PostgreSQL 8.2.0 and ip4r? - Mailing list pgsql-general

From Harald Fuchs
Subject Re: PostgreSQL 8.2.0 and ip4r?
Date
Msg-id pulklhcmst.fsf@srv.protecting.net
Whole thread Raw
In response to PostgreSQL 8.2.0 and ip4r?  (Harald Fuchs <hf1110x@protecting.net>)
Responses Re: PostgreSQL 8.2.0 and ip4r?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
In article <20061209112944.GB1528@svana.org>,
Martijn van Oosterhout <kleptog@svana.org> writes:

> On Sat, Dec 09, 2006 at 12:10:16PM +0100, Harald Fuchs wrote:
>> I would like to upgrade to PostgreSQL 8.2.0, but there's one thing
>> stopping me: the need for ip4r (http://pgfoundry.org/projects/ip4r).
>> Has anyone managed to fix that?

> What exactly is the problem? Does it not compile or something?

Yes:

$ make USE_PGXS=1
sed 's,MODULE_PATHNAME,$libdir/ip4r,g' ip4r.sql.in >ip4r.sql
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
-fno-strict-aliasing-fpic -DIP4R_PGVER=8002000 -I. -I/usr/include/postgresql/server -I/usr/include/postgresql/internal
-D_GNU_SOURCE  -c -o ip4r.o ip4r.c 
ip4r.c: In function 'ip4_cast_to_cidr':
ip4r.c:627: error: 'struct <anonymous>' has no member named 'type'
ip4r.c: In function 'ip4r_cast_from_cidr':
ip4r.c:967: error: 'struct <anonymous>' has no member named 'type'
ip4r.c: In function 'ip4r_cast_to_cidr':
ip4r.c:1004: error: 'struct <anonymous>' has no member named 'type'
make: *** [ip4r.o] Error 1
$

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: PostgreSQL 8.2.0 and ip4r?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: PostgreSQL 8.2.0 and ip4r?