Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

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

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: f.v.claus[at]googlemail.com
[Submitted to the original trac issue database at 9.21am, Saturday, 24th March 2012]

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
@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 1.40pm, Saturday, 24th March 2012]

You are missing the development package of bzlib. Try

sudo apt-get install libbz2-dev

@openstreetmap-trac
Copy link
Author

Author: datendelphin
[Added to the original trac issue at 5.21pm, Sunday, 15th April 2012]

Added dependency on wiki page.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant