[OSM-talk] Using osm2pgsql to keep up with dailies?

Andreas Putzo andreas at putzo.net
Sun Aug 3 21:13:24 BST 2008


On Aug 03  10:55, Michal Migurski wrote:
> >> Interesting, thanks everyone.
> >>
> >> I checked the version, and it appears to be 0.52-20080413 $Rev:  
> >> 7141 $.
> >>
> >> Any idea if the version in Lenny will soon be upgraded to the one  
> >> that
> >> supports --slim, or would it be better to compile directly out of  
> >> SVN?
> >
> > Lenny is frozen, and thus, it will most likely be released with this
> > version of osm2pgsql.
> > Your best bet is to compile from SVN.
> 
> 
> So, when I attempt to do that, I get a failure here:
> 
> 	...
> 	g++ -g -O2 -Wall -DGEOS_INLINE -g -O2 -Wall -Wextra -I/usr/include/ 
> libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION= 
> \"0.55-20080803\" -DHAVE_PTHREAD -I/usr/include   -c -o  
> build_geometry.o build_geometry.cpp
> 	build_geometry.cpp: In function 'char* get_wkt(size_t)':
> 	build_geometry.cpp:155: error: 'malloc' is not a member of 'std'
> 	make: *** [build_geometry.o] Error 1
> 
> This is after installing the dependencies mentioned on the OSM wiki:  
> build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev. Does  
> this error look familiar to anyone?

#include <cstdlib> missing in build_geometry.cpp which is needed for gcc
4.3. I just commited this change to svn, so it should work now.

Regards,
Andreas




More information about the talk mailing list