Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372991 - app-misc/gpsdrive-2.11-r1 configure does not find Postgresql includes
Summary: app-misc/gpsdrive-2.11-r1 configure does not find Postgresql includes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-25 13:46 UTC by Jan-Erik Skata
Modified: 2011-07-29 04:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Erik Skata 2011-06-25 13:46:15 UTC
I need to re-emerge GPSDrive but it does not find the Postgresql includes (are in /usr/include/postgresql-8.3) and I have postgresql-base-8.3.15-r2 and postgresql-server-8.3.15-r1 installed.

Reproducible: Always

Actual Results:  
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POSTGRESQL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11/src

-- Configuring incomplete, errors occurred!
* ERROR: app-misc/gpsdrive-2.11-r1 failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 56: Called src_configure
* environment, line 3158: Called cmake-utils_src_configure
* environment, line 894: Called _execute_optionaly 'src_configure'
* environment, line 356: Called enable_cmake-utils_src_configure
* environment, line 1210: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
*
* If you need support, post the output of 'emerge --info =app-misc/gpsdrive-2.11-r1',
* the complete build log and the output of 'emerge -pqv =app-misc/gpsdrive-2.11-r1'.
* The complete build log is located at '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/environment'.
* S: '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11'
Comment 1 Aaron W. Swenson gentoo-dev 2011-06-25 16:21:21 UTC
(In reply to comment #0)
> * If you need support, post the output of 'emerge --info
> =app-misc/gpsdrive-2.11-r1',
> * the complete build log and the output of 'emerge -pqv
> =app-misc/gpsdrive-2.11-r1'.
> * The complete build log is located at
> '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/build.log'.
> * The ebuild environment file is located at
> '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/environment'.
> * S: '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11'

Those are instructions, not suggestions. Please post that information.
Comment 2 Jan-Erik Skata 2011-06-28 19:09:40 UTC
# emerge --info =app-misc/gpsdrive-2.11-r1
Portage 2.1.10.3 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.37-gentoo-r1 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-r1-i686-Intel-R-_Pentium-R-_M_processor_1.50GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 25 Jun 2011 13:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.7.9-r1, 1.9.6-r2, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ "
LANG="sv_FI@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa berkdb bluetooth branding bzip2 cdr cli cracklib crypt cxx dlloader dri dvd dvdread exif firefox fortran gdbm gif gimp gpm gps gtk hdaps iconv icq ipv6 java jpeg jpg kde mad mmx modules mp3 msn mudflap ncurses nls nptl nptlonly nsplugin offensive opengl openmp pam pcre perl pic png pppd python qt3support qt4 readline session sse sse2 ssl sysfs tcpd theora threads tiff unicode usb wifi win32codecs x86 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-misc/gpsdrive-2.11-r1 was built with the following:
USE="gdal libgda mapnik scripts -dbus -debug -kismet -speech"



# emerge -pqv =app-misc/gpsdrive-2.11-r1
[ebuild   R   ] app-misc/gpsdrive-2.11-r1  USE="gdal libgda mapnik scripts -dbus -debug -kismet -speech" 

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.



# cat /var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/build.log
 * Package:    app-misc/gpsdrive-2.11-r1
 * Repository: gentoo
 * Maintainer: nerdboy@gentoo.org mobile@gentoo.org
 * USE:        elibc_glibc gdal kernel_linux libgda mapnik scripts userland_GNU x86
 * FEATURES:   distcc sandbox
>>> Unpacking source...
>>> Unpacking gpsdrive-2.11.tar.gz to /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work
>>> Source unpacked in /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work
>>> Preparing source in /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11 ...
 * Applying gpsdrive-2.11_DefineOptions_gpsd.patch ...                   [ ok ]
 * Applying gpsdrive-2.11-add-gdk-pixbuf2.patch ...                      [ ok ]
 * Applying gpsdrive-2.11-gpsd-2.96.patch ...                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_SCRIPTS=ON -DWITH_MAPNIK=ON -DWITH_POSTGIS=ON -DWITH_KISMET=OFF -DWITH_DBUS=OFF -DWITH_GDA3=ON -DWITH_SPEECH=OFF -DWITH_GDAL=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/gentoo_rules.cmake  /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/distcc/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/distcc/bin/i686-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/distcc/bin/i686-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/distcc/bin/i686-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning (dev) at CMakeLists.txt:31 (include):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11/cmake/Modules/DefineProjectDefaults.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include files HAVE_LIBINTL_H
-- Looking for include files HAVE_LIBINTL_H - found
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Looking for include files HAVE_CRYPT_H
-- Looking for include files HAVE_CRYPT_H - found
-- Looking for include files HAVE_LINUX_INET_H
-- Looking for include files HAVE_LINUX_INET_H - not found.
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for include files HAVE_LOCALE_H
-- Looking for include files HAVE_LOCALE_H - found
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- checking for module 'gtk+-2.0'
--   found gtk+-2.0, version 2.24.5
-- checking for module 'glib-2.0'
--   found glib-2.0, version 2.28.8
-- checking for module 'gmodule-2.0'
--   found gmodule-2.0, version 2.28.8
-- checking for module 'pango'
--   found pango, version 1.28.4
-- checking for module 'gdk-2.0'
--   found gdk-2.0, version 2.24.5
-- checking for module 'cairo'
--   found cairo, version 1.10.2
-- checking for module 'atk'
--   found atk, version 1.32.0
-- checking for module 'gdk-pixbuf-2.0'
--   found gdk-pixbuf-2.0, version 2.22.1
-- Found GTK2: /usr/lib/libgtk-x11-2.0.so;/usr/lib/libgdk-x11-2.0.so;/usr/lib/libglib-2.0.so
-- checking for module 'libxml-2.0'
--   found libxml-2.0, version 2.7.8
-- Found XML2: /usr/lib/libxml2.so
-- checking for module 'freetype2'
--   found freetype2, version 12.2.6
-- Found Freetype2: /usr/lib/libfreetype.so
-- checking for module 'sqlite3'
--   found sqlite3, version 3.7.6.3
-- Found Sqlite3: /usr/lib/libsqlite3.so
-- Found CURL: /usr/lib/libcurl.so 
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found GPS: /usr/lib/libgps.so
-- PostgreSQL not found.
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   filesystem
-- Found Mapnik: /usr/lib/libmapnik.so
-- Found GDAL: /usr/lib/libgdal.so
mapnik datadir: /usr/share/gpsdrive/mapnik
-- Found Perl: /usr/bin/perl 
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=pentium-m -O2 -pipe -fomit-frame-pointer 
C++             -march=pentium-m -O2 -pipe -fomit-frame-pointer 
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
POSTGRESQL_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11/src

-- Configuring incomplete, errors occurred!
 * ERROR: app-misc/gpsdrive-2.11-r1 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 3175:  Called cmake-utils_src_configure
 *   environment, line  911:  Called _execute_optionaly 'src_configure'
 *   environment, line  373:  Called enable_cmake-utils_src_configure
 *   environment, line 1227:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =app-misc/gpsdrive-2.11-r1',
 * the complete build log and the output of 'emerge -pqv =app-misc/gpsdrive-2.11-r1'.
 * The complete build log is located at '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/temp/environment'.
 * S: '/var/tmp/portage/app-misc/gpsdrive-2.11-r1/work/gpsdrive-2.11'
Comment 3 Aaron W. Swenson gentoo-dev 2011-06-28 21:28:05 UTC
Paste the output of 'postgresql-config show' as well, please.
Comment 4 Jan-Erik Skata 2011-07-03 13:00:53 UTC
# postgresql-config show
8.3
Comment 5 Steve Arnold archtester gentoo-dev 2011-07-29 04:01:22 UTC
This is now fixed, but gpsdrive depends on a correctly built mapnik.so library and the old boost filesystem interface (both of which are now fixed again as well).  In general, if you have missing symbols in mapnik causing problems with gpsdrive, then it's a mapnik build problem (not gpsdrive).