<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>99954</bug_id>
          
          <creation_ts>2005-07-22 14:01 0000</creation_ts>
          <short_desc>dev-perl/DBD-Pg-1.22 won&apos;t compile after upgrade to postgresql-8.0.3</short_desc>
          <delta_ts>2007-09-22 23:41:58 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Development</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>robin@smidsrod.no</reporter>
          <assigned_to>perl@gentoo.org</assigned_to>
          <cc>esigra@gmail.com</cc>
    
    <cc>pgsql-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>robin@smidsrod.no</who>
            <bug_when>2005-07-22 14:01:41 0000</bug_when>
            <thetext>I&apos;ve upgraded both libpq and postgresl from 7.4.x to 8.0.x and it seems like
DBD-Pg isn&apos;t quite able to handle it, or I&apos;ve run into a weird dependency bug.
I&apos;ve tried the usual stuff, and the location /usr/include/postgresql does NOT
contain the requested libpq-fe.h file, it seems to be located in
/usr/include/postgresql/libpq-4/ instead. It seems to me that pg_config is
giving out wrong information regarding the location of include files (and
possible libraries), because I had a similar problem when I tried to compile the
pguuid.so custom datatype for postgresql too.

Reproducible: Always
Steps to Reproduce:
1. emerge libpq postgresl
2. emerge unmerge &apos;=dev-db/libpq-7.4.8&apos; &apos;=dev-db/postgresql-7.4.8&apos;
3. emerge DBD-Pg

Actual Results:  
/usr/bin/perl5.8.6 /usr/lib/perl5/5.8.6/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.6/ExtUtils/typemap  Pg.xs &gt; Pg.xsc &amp;&amp; mv Pg.xsc Pg.c
i686-pc-linux-gnu-gcc -c  -I/usr/include/postgresql/
-I/usr/lib/perl5/vendor_perl/5.8.6/i686-linux-thread-multi/auto/DBI/
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=pentium3 -O3 -pipe  
-DVERSION=\&quot;1.22\&quot; -DXS_VERSION=\&quot;1.22\&quot; -fPIC
&quot;-I/usr/lib/perl5/5.8.6/i686-linux-thread-multi/CORE&quot;   Pg.c
In file included from Pg.xs:13:
Pg.h:17:22: libpq-fe.h: No such file or directory
In file included from Pg.h:41,
                 from Pg.xs:13:
dbdimp.h:24: error: syntax error before &quot;PGconn&quot;
dbdimp.h:24: warning: no semicolon at end of struct or union
dbdimp.h:31: error: syntax error before &apos;}&apos; token
dbdimp.h:37: error: syntax error before &quot;PGresult&quot;
dbdimp.h:37: warning: no semicolon at end of struct or union
dbdimp.h:50: error: syntax error before &apos;}&apos; token
Pg.xs: In function `XS_DBD__Pg__db_commit&apos;:
Pg.xs:142: error: dereferencing pointer to incomplete type
Pg.xs: In function `XS_DBD__Pg__db_rollback&apos;:
Pg.xs:153: error: dereferencing pointer to incomplete type
Pg.xs: In function `XS_DBD__Pg__db_disconnect&apos;:
Pg.xs:164: error: dereferencing pointer to incomplete type
Pg.xs:168: error: dereferencing pointer to incomplete type
Pg.xs:169: error: dereferencing pointer to incomplete type
Pg.xs:170: error: dereferencing pointer to incomplete type
Pg.xs:174: error: dereferencing pointer to incomplete type
Pg.xs:174: error: dereferencing pointer to incomplete type


Expected Results:  
Fully functional DBD-Pg, as it was working with pg 7.4.x

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11.7 i686)
=================================================================
System uname: 2.6.11.7 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.13
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-mcpu=pentium3 -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks fixpackages sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;ftp://mir.zyrianes.net/gentoo/ http://mir.zyrianes.net/gentoo/
http://ftp.linux.ee/pub/gentoo/distfiles/
http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.du.se/pub/os/gentoo&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X509 acl acpi acpi4linux alsa apache2 apm bash-completion berkdb
bitmap-fonts clamav crypt cups curl doc emboss ethereal expat ext-png ext-zlib
fam firebird foomaticdb freetype gd gd-external gdbm gif idea imap imlib imlib2
innodb ipv6 ithreads java jbig jce jpeg junit kerberos lcms ldap libclamav
libg++ libwww lmtp ltsp mad maildir mbox mcal md5sum memlimit mikmod mmx mp3
mpeg mysql ncurses nls nptl oav odbc ogg oggvorbis pam passfile pcap pcre pdflib
perl pg-vacuumdelay php png postgres ppds procmail pwdb python quicktime
readline samba sasl skey slang slp snmp socks5 sox speedo sse ssl tcpd threads
tiff truetype truetype-fonts type1 type1-fonts unicode vda videos vorbis winbind
wmf xml xml2 xmlrpc xsl xvid zeo zlib userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2005-07-24 06:31:43 0000</bug_when>
            <thetext>Emerge sync. The DBD-Pg tree was falling behind in keyword unmasking. I&apos;ve
tested and used 1.43, and so have bumped to stable. Give it an hour or so to
propogate to the mirrors and you should be all set.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robin@smidsrod.no</who>
            <bug_when>2005-07-25 05:10:10 0000</bug_when>
            <thetext>I&apos;ve tried the new version 1.43 and I still get the same error. Trying to
recompile libpq and postgresql to check if it is a dependency bug. Will report
back after it&apos;s finished.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robin@smidsrod.no</who>
            <bug_when>2005-07-25 08:10:51 0000</bug_when>
            <thetext>Re-emerging libpq-8.0.3 and postgresql-8.0.3 and then finally re-emerging
DBD-Pg-1.43 works like it should. It seems like the upgrade from postgres 7.4.x
wasn&apos;t completely stable. I manually removed libpq-7.4 and postgresql-7.4 before
I recompiled libpq-8 and postgresql-8, and then it seemed to work. Of course I
had to recompile a whole lot of other programs too, since libpq.so.3 no longer
was available (postfix, courier-mta, mod_php etc.). Revdep-rebuild -vp took care
of this quite well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2005-07-25 10:53:15 0000</bug_when>
            <thetext>good to hear :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>