Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486540 - sci-geosciences/osm2pgsql-99999999 with sci-libs/geos-3.4.1 - In file included build_geometry.cpp:42: /usr/include/geos/geom/Coordinate.h:19:51: fatal error: geos/platform.h: No such file or directory
Summary: sci-geosciences/osm2pgsql-99999999 with sci-libs/geos-3.4.1 - In file include...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-30 04:07 UTC by Thomas Beutin
Modified: 2013-11-23 18:13 UTC (History)
1 user (show)

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


Attachments
build log (build.log,17.90 KB, text/plain)
2013-09-30 04:07 UTC, Thomas Beutin
Details
source patch to fix the relevant files (3.4.1-missing-include.patch,843 bytes, patch)
2013-10-01 05:29 UTC, Thomas Beutin
Details | Diff
ebuild patch to include and apply the source patch (geos-3.4.1-r1.ebuild.patch,377 bytes, patch)
2013-10-01 05:32 UTC, Thomas Beutin
Details | Diff
3.4.1-missing-include.patch (3.4.1-missing-include.patch,618 bytes, patch)
2013-10-01 05:42 UTC, Thomas Beutin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Beutin 2013-09-30 04:07:03 UTC
Since v3.4.1 of sci-libs/geos the osm2pgsql package failed to compile because of the missing include file geos/platform.h

Reproducible: Always




kodama ~ # emerge --info '=sci-geosciences/osm2pgsql-99999999::gentoo'
Portage 2.2.1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E31220_@_3.10GHz-with-gentoo-2.2
KiB Mem:    32917016 total,    354408 free
KiB Swap:   16776116 total,  15674408 free
Timestamp of tree: Mon, 30 Sep 2013 00:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo sunrise science barzog-overlay x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @FREE Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /var/bind /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/barzog-overlay /usr/local/portage"
USE="X509 aac aacplus aalib accounting acl adns aim amd64 ansi apache2 automount autotrace bacula-console bash-completion bcmath bidi bind-mysql bittorrent bzip2 calendar caps ccache cdb cgi chipcard chroot command-args corefonts cpudetection cpulimit cracklib cramfs crypt cscope css csv ctype curl curlwrappers customlog cvsgraph cxx cyrus dba dbi dbm dbx devmap dhcp djvu dlopen dnsdb ecc emf encode enscript exif expat fam fastcgi ffmpeg fftw fits flac flash flatfile fontconfig fpm fpx ftp gd gdal gdbm geoip geos gif gmp graphviz gs gssapi gzip hardened hardenedphp hdf5 hdri hpn http i18n iconv icq icu idea idled idn imagemagick imap imlib imlib2 inifile innodb ipalias ipv6 jabber jbig jpeg jpeg2k json lapack lcms ldap less libwww lm_sensors lmtp logrotate logwatch lzma lzo mbox mcal memlimit mgetty mhash milter mime mimencode ming mmap mmx mp3 mpeg mpm-prefork mppe-mppc multilib mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses netboot netcdf network nfs nis nls nntp nptl nptlonly oav odbc ogg oggvorbis opencl openexr openmp openssh openssl pam pam_chroot pam_timestamp pango parse-clocks pcntl pcre pdf pdfkit pdflib perl php pic plotutils png posix postfix postgis postgres postscript procmail proj pwdb python qdbm qemu quotas radius raw readline recode reiserfs rmtp rrdtool rss sample sasl screen sendfile sensord session sftp sftplogging shaper shared sharedext sieve simplexml slang slp smartcard smime smp sms smtp snmp snortsam soap sockets socks5 spamassassin spell spl sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssl ssse3 stream subversion svg sysfs syslog sysvipc szip tcpd theora tidy tiff tls tokenizer transparent-proxy truetype truetype-fonts type1-fonts udev unicode userlocales utf8 uuid vhosts vim-syntax virtual-users virus-scan vorbis vpx wddx webp withsamplescripts wmf x264 xattr xfs xinetd xls xml xml2 xmlrpc xpm xsl xslt xvid yahoo yaz zlib" ABI_X86="64" APACHE2_MODULES="access auth auth_basic authn_dbm dbd ident imagemap authn_dbd authn_file authn_default authz_groupfile authn_alias authn_anon authz_dbm authz_owner authz_default authz_user auth_digest authz_host alias file_cache echo charset_lite cache disk_cache mem_cache ext_filter case_filter case-filter-in deflate filter mime_magic cern_meta proxy_ajp proxy_balancer expires headers usertrack proxy proxy_connect proxy_ftp proxy_http info include cgi cgid dav dav_lock dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status substitute autoindex asis negotiation dir imap actions userdir so unique_id" APACHE2_MPMS="prefork" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en" PHP_TARGETS="php5-3 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU" VIDEO_CARDS="vga"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

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

sci-geosciences/osm2pgsql-99999999 was built with the following:
USE="(multilib) pbf" ABI_X86="64"
Comment 1 Thomas Beutin 2013-09-30 04:07:40 UTC
Created attachment 359766 [details]
build log
Comment 2 Thomas Beutin 2013-09-30 09:27:33 UTC
FreeBSD guys have the same issue and published a patch for their ports system:

http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2013-August/260770.html

Maybe this can be helpful for gentoo?
Comment 3 Thomas Beutin 2013-10-01 05:29:54 UTC
Created attachment 359844 [details, diff]
source patch to fix the relevant files

This patch installs the missing include file again.
Comment 4 Thomas Beutin 2013-10-01 05:32:32 UTC
Created attachment 359846 [details, diff]
ebuild patch to include and apply the source patch

using this ebuild and the already attached patch sci-geosciences/osm2pgsql-99999999 compiles fine.

I know that this is probably a short term solution only, and the examination should go into the effort to fix osm2pgsql, but it helped me for now.
Comment 5 Thomas Beutin 2013-10-01 05:42:07 UTC
Created attachment 359848 [details, diff]
3.4.1-missing-include.patch

source patch to fix the relevant files.

corrected one line patched too much
Comment 6 Raphaël Droz 2013-10-12 19:22:37 UTC
confirmed, geos installation overlook platform.h
could the geos ebuild be patched please ?
Comment 7 Juan Luis 2013-11-07 21:30:06 UTC
 Confirmed, same thing, had to downgrade Geos
Comment 8 Thomas Beutin 2013-11-23 18:13:26 UTC
Fixed, see bug 487068