Hello! I'm trying to install the Nominatim service in a local Ubuntu 10.10 VM and came across some errors.
The PostgreSQL database is up, OSM data import went without problemes. Now I wanted to build the transliteration module, but I'm getting errors trying to compile the gazetteer scripts. There are header files missing or included wrong. I changed the first line in the gazeteer.c from #include "postgres.h" to #include <postgresql/postgres.h> and even created the fmgr.h since this file ist not included in the standard PostgreSQL 8.4 install... But now the compiler is finding wrong syntaxes... user@ubuntu:~/osm2pgsql/gazetteer$ make /bin/bash ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/postgresql/8.4/server -g -O2 -MT gazetteer_la-gazetteer.lo -MD -MP -MF .deps/gazetteer_la-gazetteer.Tpo -c -o gazetteer_la-gazetteer.lo `test -f 'gazetteer.c' || echo './'`gazetteer.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/postgresql/8.4/server -g -O2 -MT gazetteer_la-gazetteer.lo -MD -MP -MF .deps/gazetteer_la-gazetteer.Tpo -c gazetteer.c -fPIC -DPIC -o .libs/gazetteer_la-gazetteer.o gazetteer.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ gazetteer.c:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ gazetteer.c:198: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ make: *** [gazetteer_la-gazetteer.lo] Fehler 1 Changing include paths is one thing, but I can't fix the syntax... Can anyone help me with this? Thanks Simon _______________________________________________ Geocoding mailing list [email protected] http://lists.openstreetmap.org/listinfo/geocoding

