Ticket #4317 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

input.c:18: fatal error: bzlib.h: No such file or directory

Reported by: f.v.claus@… Owned by: geocoding@…
Priority: minor Milestone:
Component: nominatim Version: 2.0
Keywords: Cc:

Description

While trying to compile the files under nominatim I encountered the error from above. I installed all the dependencies mentioned here:  http://wiki.openstreetmap.org/wiki/Nominatim/Installation

Im running on Ubuntu 10.10 with 2.6.35-32-generic. I did not find a solution to this problem online, nor do I know where the bzlib.h should come from (I don't have a C background)- Any help is greatly appreciated.

gcc  -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION=\"0.1-exported\" -DHAVE_PTHREAD -DNOMINATIM_DATADIR=\"/usr/local/share/nominatim\"   -c -o export.o export.c
export.c: In function ‘nominatim_exportPlace’:
export.c:376: warning: format ‘%li’ expects type ‘long int’, but argument 4 has type ‘uint64_t’
export.c:410: warning: format ‘%li’ expects type ‘long int’, but argument 4 has type ‘uint64_t’
gcc  -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION=\"0.1-exported\" -DHAVE_PTHREAD -DNOMINATIM_DATADIR=\"/usr/local/share/nominatim\"   -c -o import.o import.c
import.c: In function ‘EndElement’:
import.c:489: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘xmlChar *’
import.c:541: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘xmlChar *’
import.c:544: warning: pointer targets in assignment differ in signedness
import.c:329: warning: unused parameter ‘reader’
gcc  -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION=\"0.1-exported\" -DHAVE_PTHREAD -DNOMINATIM_DATADIR=\"/usr/local/share/nominatim\"   -c -o index.o index.c
index.c: In function ‘nominatim_indexThread’:
index.c:341: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘uint64_t’
index.c:364: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘uint64_t’
index.c:378: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘uint64_t’
index.c: In function ‘nominatim_index’:
index.c:36: warning: ‘resPlaces’ may be used uninitialized in this function
gcc  -g -O2 -Wall -Wextra -I/usr/include/libxml2 -I/usr/include -I/usr/include/postgresql -DVERSION=\"0.1-exported\" -DHAVE_PTHREAD -DNOMINATIM_DATADIR=\"/usr/local/share/nominatim\"   -c -o input.o input.c
input.c:18: fatal error: bzlib.h: No such file or directory
compilation terminated.
make: *** [input.o] Error 1

checking for gcc... 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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

Change History

comment:1 Changed 2 years ago by lonvia

You are missing the development package of bzlib. Try

sudo apt-get install libbz2-dev

comment:2 Changed 2 years ago by datendelphin

  • Status changed from new to closed
  • Resolution set to fixed

Added dependency on wiki page.

please reopen the bug if it didn't fix your problem.

Note: See TracTickets for help on using tickets.