Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 397877

Summary: sci-geosciences/osm2pgsql-20100413 with sci-libs/geos-3.3.1 - x86_64-pc-linux-gnu-gcc: directory": No such file or directory
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, cruzki123, kripton, sci-geosciences, tb, titanofold
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=421325
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/temp/build.log
osm2pgsql-99999999.ebuild.diff
Example OSM data used for testing.
/var/tmp/portage/sci-geosciences/osm2pgsql-20100413/temp/build.log
osm2pgsql-20121124.ebuild (REV="28974")

Description Juergen Rose 2012-01-06 12:05:54 UTC
Created attachment 298085 [details]
/var/tmp/portage/sci-geosciences/osm2pgsql-20100413/temp/build.log

'emerge osm2pgsql' fails with:
...
config.status: creating config.h
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work/osm2pgsql ...
make -j5 
x86_64-pc-linux-gnu-gcc: directory": No such file or directory
x86_64-pc-linux-gnu-gcc: directory": No such file or directory
x86_64-pc-linux-gnu-gcc: directory": No such file or directory
...
x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/include -I/usr/include/postgresql-9.1 -DVERSION=\"0.69-Unversioned directory\" -DHAVE_PTHREAD -DDATADIR=\"/usr/share/osm2pgsql\"   -c -o input.o input.c
make: *** [pgsql.o] Error 1


root@moose:/root(8)# emerge --info =sci-geosciences/osm2pgsql-20100413
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.1.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.7-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Fri, 06 Jan 2012 08:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3::sage-on-gentoo, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x11 arcon qting-edge bicatali sage-on-gentoo java-overlay sunrise science x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /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/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j5"
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="/var/lib/layman/x11 /var/lib/layman/arcon /var/lib/layman/qting-edge /var/lib/layman/bicatali /var/lib/layman/sage-on-gentoo /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/science /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter vaapi video virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sci-geosciences/osm2pgsql-20100413 was built with the following:
USE="(multilib)"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"



root@moose:/root(9)# emerge -pqv =sci-geosciences/osm2pgsql-20100413
[ebuild   R   ] sci-geosciences/osm2pgsql-20100413
Comment 1 Juergen Rose 2012-01-23 12:43:24 UTC
Any news?
Comment 2 Juergen Rose 2012-02-11 16:09:42 UTC
ping
Comment 3 Juergen Rose 2012-02-25 10:44:05 UTC
Hello,

anybody is reading this?
Comment 4 Andreas Sturmlechner gentoo-dev 2012-02-25 15:40:11 UTC
Is it not fixed with geos-3.3.2?
Comment 5 Andreas Sturmlechner gentoo-dev 2012-02-25 16:04:53 UTC
Found a patch to make it build with >=geos-3.3.0 and it applies to 20100413, but that didn't help either:
https://github.com/openstreetmap/osm2pgsql/commit/a22c8d646337788d61cfe39a3eeb17a45134dc65

I am getting the same error as you but it doesn't seem to be geos related.
Comment 6 Andreas Sturmlechner gentoo-dev 2012-02-25 16:09:17 UTC
Created attachment 303185 [details, diff]
osm2pgsql-99999999.ebuild.diff

small fix (README.txt was renamed to README)

Builds fine here.
Comment 7 Andreas Sturmlechner gentoo-dev 2012-02-25 17:22:26 UTC
It probably doesn't make sense anymore to get an outdated 2010* package patched and build successfully. What about trying to get the current revision 27939 tested for inclusion? I am not a osm2pgsql user myself, just stumbled over this by chance.

Put my osm2pgsql-99999999 ebuild into your local overlay and

ESVN_REVISION="27939" emerge -1v osm2pgsql
Comment 8 Mark Gannon 2012-03-31 20:41:28 UTC
I'm experiencing this problem and happy to work through the issues around a recent release, but I'm having difficulty getting the overlay to work.  I've taken the following steps:

i.  Made sure the following line is included in my /etc/make.conf:
PORTDIR_OVERLAY="/usr/local/portage"

ii.  Created the following directory:
/usr/local/portage/sci-geosciences/osm2pgsql

iii.  Copied the file osm2pgsql-99999999.ebuild into the new directory.

iv.  Applied the diff with patch:
patch </home/markg/osm2pgsql-99999999.ebuild.diff

v.  Build a manifest file with the following command:
ebuild osm2pgsql-99999999.ebuild manifest

vi.  Test the emerge with the following command:
ESVN_REVISION="27939" emerge -1vp osm2pgsql

Which results in the following output:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sci-geosciences/osm2pgsql-20100413  0 kB

I tried changing the build number to the most recent number (28171), but get the same results.  Here is the output from emerge --info:


Portage 2.1.10.52 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.3.0-gentoo x86_64)
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-AMD_A6-3650_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.1
Timestamp of tree: Sat, 31 Mar 2012 18:30:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome dlj-1.1 sun-bcla-java-vm googleearth AdobeFlash-10.3 PUEL Oracle-BCLA-JavaSE skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr embedded emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="kexi words flow plan sheets stage tables krita karbon braindump" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Andreas Sturmlechner gentoo-dev 2012-03-31 20:53:18 UTC
osm2pgsql-99999999 is masked by missing keyword, you need to put this into some /etc/portage/package.keywords file:

sci-geosciences/osm2pgsql **
Comment 10 Mark Gannon 2012-04-11 17:59:03 UTC
Created attachment 308549 [details]
Example OSM data used for testing.
Comment 11 Mark Gannon 2012-04-11 18:13:37 UTC
I'm sorry for the delay, but the whole planet.osm file is quite large and delayed testing.  I'm able to emerge using version 28171 of osm2pgsql.  I let it try and load planet.osm for a week, but it looked like it was going to take another week.  This appears to be normal from the documentation.

Today, I upgraded to postgis 2.0.0 and downloaded a very small sample of the OSM data (see map.osm attached) to test with.  Two issues appeared:

i.  The first time I tried to load data into the database using osm2pgsql I got the following message:

osm2pgsql SVN version 0.80.0 (32bit id space)

Using projection SRS 900913 (Spherical Mercator)
Applying Bounding box: -121.745453,38.350273 to -120.973663,38.908133
Setting up table: planet_osm_point
NOTICE:  table "planet_osm_point" does not exist, skipping
NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
SELECT AddGeometryColumn('planet_osm_point', 'way', 900913, 'POINT', 2 );
 failed: ERROR:  AddGeometryColumn() - invalid SRID
CONTEXT:  SQL statement "SELECT AddGeometryColumn('','',$1,$2,$3,$4,$5, $6)"
PL/pgSQL function "addgeometrycolumn" line 4 at SQL statement

Following the instructions at http://wiki.openstreetmap.org/wiki/Mapnik

I downloaded and loaded the following file: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/900913.sql

After that, I was able to normally load the sample map.osm file and view it in Quantum GIS.

ii.  Osm2pgsql offers a choice of 32 or 64 bit address space for processing files.  By default in the builds I did using the 9999999 ebuild file, it uses 32 bit.  I compared the performance difference on the sample file and got the following results:

32 bit
Osm2pgsql took 2s overall

real    0m1.469s
user    0m0.096s
sys     0m0.047s

64bit 
real    0m1.391s
user    0m0.112s
sys     0m0.028s

While a modest real improvement, spread over a week or two of processing it amounts to a useful improvement.  The instructions for makeing the change are here: http://wiki.openstreetmap.org/wiki/Osm2pgsql

I'm happy to do some more testing, but I'm not proficient with the ebuilds to address the two issues on my own.
Comment 12 Juergen Rose 2012-04-12 11:11:23 UTC
I just tried the patched osm2pgsql-99999999.ebuild, but it fails with:

root@moose:/usr/local/portage/sci-geosciences/osm2pgsql(35)# ESVN_REVISION="27939" emerge -1v osm2pgsql

These are the packages that would be merged, in order:

Calculating dependencies - * Digest verification failed:
 * /usr/local/portage/sci-geosciences/osm2pgsql/osm2pgsql-99999999.ebuild
 * Reason: Filesize does not match recorded size
 * Got: 765
 * Expected: 769
... done!
[ebuild     U *] sci-geosciences/osm2pgsql-99999999 [20100413] 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-geosciences/osm2pgsql-99999999
>>> Unpacking source...
 * subversion check out start -->
 *      repository: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@27939
svn: E175002: Unable to connect to a repository at URL 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql'
svn: E175002: OPTIONS of 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql': could not connect to server (http://svn.openstreetmap.org)
 * ERROR: sci-geosciences/osm2pgsql-99999999 failed (unpack phase):
 *   subversion: can't fetch to /usr/portage_moose/distfiles/svn-src/osm2pgsql/osm2pgsql from http://svn.openstreetmap.org/applications/utils/export/osm2pgsql.
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
Comment 13 Mark Gannon 2012-04-12 19:48:11 UTC
You might consider changing the ESVN number to a more recent version.  I tested with 28171, but the latest version is 28254 (which builds for me).
Comment 14 Juergen Rose 2012-04-16 10:03:24 UTC
ESVN=28254 fails too. At the first system it fails, I assume, because subversion does not pass the firewall, even if proxy is set for subversion:

root@moose:/usr/local/portage/sci-geosciences/osm2pgsql(4)# ESVN_REVISION="28254" emerge -1v osm2pgsql

These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     U *] sci-geosciences/osm2pgsql-99999999::x-portage [20100413::gentoo] 0 kB
Total: 1 package (1 upgrade), Size of downloads: 0 kB
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sci-geosciences/osm2pgsql-99999999 from x-portage
>>> Unpacking source...
 * subversion check out start -->
 *      repository: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@28254
svn: E175002: Unable to connect to a repository at URL 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql'
svn: E175002: OPTIONS of 'http://svn.openstreetmap.org/applications/utils/export/osm2pgsql': could not connect to server (http://svn.openstreetmap.org)
 * ERROR: sci-geosciences/osm2pgsql-99999999 failed (unpack phase):

root@moose:/usr/local/portage/sci-geosciences/osm2pgsql(7)# ping svn.openstreetmap.org
PING svn.openstreetmap.org (89.16.179.150) 56(84) bytes of data.
64 bytes from shenron.openstreetmap.org (89.16.179.150): icmp_req=1 ttl=49 time=42.7 ms
64 bytes from shenron.openstreetmap.org (89.16.179.150): icmp_req=2 ttl=49 time=42.7 ms
64 bytes from shenron.openstreetmap.org (89.16.179.150): icmp_req=3 ttl=49 time=42.4 ms
^C
root@moose:/usr/local/portage/sci-geosciences/osm2pgsql(8)# grep -i proxy ~/.subversion/servers 
...
http-proxy-host = 10.101.10.254
https-proxy-host = 10.101.10.254
..
http-proxy-port = 3128
https-proxy-port = 3128


At the next system (outside the firewall) it fails with:

root@orca:/root(1)# ESVN_REVISION="28254" emerge -1v osm2pgsql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sci-geosciences/osm2pgsql-20100413  15,619 kB

Total: 1 package (1 new), Size of downloads: 15,619 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sci-geosciences/osm2pgsql-20100413
>>> Downloading 'http://distfiles.gentoo.org/distfiles/osm2pgsql-20100413svn.tar.bz2'
--2012-04-16 11:46:45--  http://distfiles.gentoo.org/distfiles/osm2pgsql-20100413svn.tar.bz2
Resolving distfiles.gentoo.org (distfiles.gentoo.org)... 140.211.166.134, 156.56.247.195, 216.165.129.135, ...
Connecting to distfiles.gentoo.org (distfiles.gentoo.org)|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15993739 (15M) [application/x-bzip2]
Saving to: `/usr/portage_orca/distfiles/osm2pgsql-20100413svn.tar.bz2'

100%[======================================>] 15,993,739  3.68M/s   in 5.4s    

2012-04-16 11:46:51 (2.80 MB/s) - `/usr/portage_orca/distfiles/osm2pgsql-20100413svn.tar.bz2' saved [15993739/15993739]

 * osm2pgsql-20100413svn.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                            [ ok ]
>>> Unpacking source...
>>> Unpacking osm2pgsql-20100413svn.tar.bz2 to /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work
>>> Source unpacked in /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work
>>> Preparing source in /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work/osm2pgsql ...
 * Running eautoreconf in '/var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work/osm2pgsql' ...
 * Running aclocal ...                                                                                      [ ok ]
 * Running autoconf ...                                                                                     [ ok ]
 * Running autoheader ...                                                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work/osm2pgsql ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-geosciences/osm2pgsql-20100413/work/osm2pgsql ...
make -j9 
x86_64-pc-linux-gnu-gcc: directory": No such file or directory






Portage 2.1.10.56 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.3.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.1-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3520_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Mon, 16 Apr 2012 08:35:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x11 science bicatali java-overlay sunrise x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.3 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /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/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/x11 /var/lib/layman/science /var/lib/layman/bicatali /var/lib/layman/java-overlay /var/lib/layman/sunrise /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boo boost branding bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mkl mmx mmxext mng modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thinkpad threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter vaapi video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps lvm mdraid 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 15 Juergen Rose 2012-04-16 10:04:36 UTC
Created attachment 309129 [details]
/var/tmp/portage/sci-geosciences/osm2pgsql-20100413/temp/build.log
Comment 16 Juergen Rose 2012-07-26 15:26:16 UTC
Three month later osm2pgsql-20100413 still fails to compile.
Comment 17 Juergen Rose 2012-08-25 11:53:22 UTC
And a further month later it still failes.
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-17 02:50:40 UTC
Same here on the tinderbox, guys can you please work on this?
Comment 19 Andreas Sturmlechner gentoo-dev 2012-11-24 18:07:49 UTC
Created attachment 330480 [details, diff]
osm2pgsql-20121124.ebuild (REV="28974")

Now, I'm merely a spectator here, but a test build of r28974 was fine again, having geos-3.3.6 already installed. Attaching an ebuild that's emerging r28974 from svn, slightly altered with an optional protobuf-c dep via USE="pbf" which I didn't test though.

One note though, "/usr/share/gazetteer/" has vanished from the build.
Comment 20 Jeremy Stent 2013-10-30 16:04:26 UTC
I have found that the Makefile ends up with \"$(VERSION)-$(SVN)\".  However the SVN expands to "Unversioned directory".  If I change this to replace $(SVN) with something that does not have a space, it seems to get a lot further.
Comment 21 Jeremy Stent 2013-10-30 16:27:59 UTC
I also needed the "patch-build_geometry.cpp" from "https://trac.openstreetmap.org/ticket/3299"
Comment 22 Aaron W. Swenson gentoo-dev 2014-01-29 00:11:38 UTC
*osm2pgsql-0.84.0 (29 Jan 2014)

  29 Jan 2014; Aaron W. Swenson <titanofold@gentoo.org>
  +osm2pgsql-0.84.0.ebuild, osm2pgsql-99999999.ebuild, metadata.xml:
  Fix bug 421325: Fixed by version bump
  Fix bug 427668: Thanks Christoph Brill
  Fix bug 469374: Added lua USE flag
  Fix bug 397877: Fixed by version bump
  Fix bug 490788: Fixed by version bump

Please give 0.84.0 a go. I'll remove the old version in a couple days.