Opened 7 weeks ago

Closed 7 weeks ago

#70487 closed defect (fixed)

pgbouncer build fails with gcc-4.2: error: redefinition of typedef ‘PktBuf’

Reported by: barracuda156 Owned by: Sergey Fedorov <barracuda@…>
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger, leopard, snowleopard Cc: herbygillot (Herby Gillot)
Port: pgbouncer

Description

--->  Building pgbouncer
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_pgbouncer/pgbouncer/work/pgbouncer-1.23.1" && /usr/bin/make -j6 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_pgbouncer/pgbouncer/work/pgbouncer-1.23.1'
     CC       src/admin.c
     CC       src/client.c
     CC       src/hba.c
     CC       src/dnslookup.c
     CC       src/janitor.c
     CC       src/loader.c
In file included from include/bouncer.h:167,
                 from src/client.c:23:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/client.c:23:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
In file included from include/bouncer.h:167,
                 from src/hba.c:19:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/hba.c:19:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
make: *** [.objs/pgbouncer/src/client.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [.objs/pgbouncer/src/hba.o] Error 1
In file included from include/bouncer.h:167,
                 from src/janitor.c:23:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/janitor.c:23:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
In file included from include/bouncer.h:167,
                 from src/admin.c:23:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/admin.c:23:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
make: *** [.objs/pgbouncer/src/janitor.o] Error 1
make: *** [.objs/pgbouncer/src/admin.o] Error 1
In file included from include/bouncer.h:167,
                 from src/dnslookup.c:19:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/dnslookup.c:19:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
make: *** [.objs/pgbouncer/src/dnslookup.o] Error 1
In file included from include/bouncer.h:167,
                 from src/loader.c:23:
include/pktbuf.h:23: error: redefinition of typedef ‘PktBuf’
include/bouncer.h:156: error: previous declaration of ‘PktBuf’ was here
In file included from include/bouncer.h:184,
                 from src/loader.c:23:
include/prepare.h:18: error: redefinition of typedef ‘PgPreparedStatement’
include/bouncer.h:158: error: previous declaration of ‘PgPreparedStatement’ was here
make: *** [.objs/pgbouncer/src/loader.o] Error 1

Change History (1)

comment:1 Changed 7 weeks ago by Sergey Fedorov <barracuda@…>

Owner: set to Sergey Fedorov <barracuda@…>
Resolution: fixed
Status: newclosed

In 966adff69409a24de89e5fd1e8d97dec766db5ae/macports-ports (master):

pgbouncer: fix for < 10.7

Fixes: #70487

Note: See TracTickets for help on using tickets.