[Geocoding] [OpenStreetMap] #4317: input.c:18: fatal error: bzlib.h: No such file or directory

OpenStreetMap trac at openstreetmap.org
Sat Mar 24 13:27:52 GMT 2012


#4317: input.c:18: fatal error: bzlib.h: No such file or directory
--------------------------------------+-------------------------------------
 Reporter:  f.v.claus@…               |       Owner:  geocoding@…                
     Type:  defect                    |      Status:  new                        
 Priority:  minor                     |   Milestone:                             
Component:  nominatim                 |     Version:  2.0                        
 Keywords:                            |  
--------------------------------------+-------------------------------------
 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
 }}}

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4317>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the Geocoding mailing list