Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114977 - dev-libs/libpqxx-2.5.5 configure unable to find pg_config
Summary: dev-libs/libpqxx-2.5.5 configure unable to find pg_config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 140813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-09 05:19 UTC by Florian Steinel
Modified: 2006-11-07 15:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/libpqxx-2.5.5/work/libpqxx-2.5.5/config.log (config.log,41.26 KB, text/plain)
2005-12-15 06:16 UTC, Florian Steinel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2005-12-09 05:19:46 UTC
only the the postgresql.ebuild installs /usr/bin/pg_config.
libpq.ebuild should install it too.


Reproducible: Always
Steps to Reproduce:
1. emerge libpq
2. emerge libpqxx

Actual Results:  
configure script can't find pg_config because it dosn't exist on the system.

Expected Results:  
libpq installs pg_config and so libpxx configure script can build.

Portage 2.0.51.22-r3 (default-linux/x86/no-nptl/2.4, gcc-3.4.4, glibc-2.3.5-r2,
2.4.28-gentoo-r9 i686)
=================================================================
System uname: 2.4.28-gentoo-r9 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="de_DE.UTF-8"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb bzip2 crypt encode expat fortran gdbm gmp ipv6 libg++ libwww
ncurses nls pam perl python readline ssl tcpd udev unicode xml2 zlib linguas_de
linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-09 06:50:35 UTC
(In reply to comment #0)
> only the the postgresql.ebuild installs /usr/bin/pg_config.
> libpq.ebuild should install it too.

Please, post some error messages and ebuild version. Multiple ebuilds cannot
install the same file, it would cause collision-protect error.
Comment 2 Florian Steinel 2005-12-09 10:08:54 UTC
The ebuild versions:
libpqxx-2.5.5
libpq-8.1.0
(postgresql-8.1.0 for the pg_config file)

The libpqxx ebuild fails at the configure check for pg_config, because libpq
don't provide one. So ether libpq should provide it and postgresql don't or the
libpqxx configure file should be patched.
I will provide exact the ebuild error next Monday.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-09 10:27:39 UTC
(In reply to comment #2)
> I will provide exact the ebuild error next Monday.

Please, file bugs when ready... 

Comment 4 Florian Steinel 2005-12-15 06:16:26 UTC
Created attachment 74804 [details]
/var/tmp/portage/libpqxx-2.5.5/work/libpqxx-2.5.5/config.log

the config.log
Comment 5 Florian Steinel 2005-12-15 06:17:01 UTC
# emerge -Dup world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] dev-db/libpq-8.1.0 [8.0.3]
[ebuild     U ] dev-libs/libpqxx-2.5.5 [2.5.1]

emerge --oneshot dev-libs/libpqxx


Calculating dependencies ...done!
>>> emerge (1 of 1) dev-libs/libpqxx-2.5.5 to /
>>> md5 files   ;-) libpqxx-2.5.5.ebuild
>>> md5 files   ;-) libpqxx-2.4.4.ebuild
>>> md5 files   ;-) libpqxx-1.5.1.ebuild
>>> md5 files   ;-) libpqxx-2.4.3.ebuild
>>> md5 files   ;-) libpqxx-2.5.0.ebuild
>>> md5 files   ;-) libpqxx-2.4.2.ebuild
>>> md5 files   ;-) libpqxx-2.5.1.ebuild
>>> md5 files   ;-) files/digest-libpqxx-2.5.0
>>> md5 files   ;-) files/digest-libpqxx-2.5.1
>>> md5 files   ;-) files/digest-libpqxx-1.5.1
>>> md5 files   ;-) files/digest-libpqxx-2.4.3
>>> md5 files   ;-) files/digest-libpqxx-2.5.5
>>> md5 files   ;-) files/digest-libpqxx-2.4.2
>>> md5 files   ;-) files/digest-libpqxx-2.4.4
>>> md5 files   ;-) files/libpqxx-2.5.1-gentoo.patch
>>> md5 src_uri ;-) libpqxx-2.5.5.tar.gz
>>> Unpacking source...
>>> Unpacking libpqxx-2.5.5.tar.gz to /var/tmp/portage/libpqxx-2.5.5/work
>>> Source unpacked.
 * econf: updating libpqxx-2.5.5/config/config.sub with
/usr/share/gnuconfig/config.sub
 * econf: updating libpqxx-2.5.5/config/config.guess with
/usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-shared
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-g++... gcc3
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/i686-pc-linux-gnu-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for i686-pc-linux-gnu-g77... i686-pc-linux-gnu-g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether i686-pc-linux-gnu-g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from
i686-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking if i686-pc-linux-gnu-gcc static flag  works... yes
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-gcc linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the i686-pc-linux-gnu-g++ linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-g++ linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for i686-pc-linux-gnu-g77 option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-g77 PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-g77 supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-g77 linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether make sets $(MAKE)... (cached) yes
checking for mkdir... /bin/mkdir
checking for doxygen... no
checking for dot... NO
checking for xmlto... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking maintainer mode...
checking g++ visibility attribute... yes
checking whether i686-pc-linux-gnu-g++ accepts -fvisibility-inlines-hidden... yes
checking thread safety... yes
checking name of standard library namespace... std
checking ios usability... yes
checking ios presence... yes
checking for ios... yes
checking streambuf usability... yes
checking streambuf presence... yes
checking for streambuf... yes
checking locale usability... yes
checking locale presence... yes
checking for locale... yes
checking char_traits template... yes
checking "warning" preprocessor directive... no
checking "message" preprocessor pragma... yes
checking for pg_config... no
configure: error:
PostgreSQL configuration script pg_config not found.  Make sure this is in your
command path before configuring.  Without it, the configure script has no way to
find the right location for the libpq library and its headers.
Comment 6 Gregor Kališnik 2006-07-12 14:29:34 UTC
I have the same problem.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-07-23 08:20:34 UTC
*** Bug 140813 has been marked as a duplicate of this bug. ***
Comment 8 Tiziano Müller (RETIRED) gentoo-dev 2006-11-07 15:16:23 UTC
Fixed with the latest version bump(s) of libpq and postgresql: libpq now installs pg_config.