[osmosis-dev] Problem with PBF reader

Martijn van Exel m at rtijn.org
Fri Jul 6 20:36:32 BST 2012


Hi,

On Fri, Jul 6, 2012 at 4:04 AM, Igor Podolskiy
<igor.podolskiy at vwi-stuttgart.de> wrote:
> Hi Martijn,
>
>
> On 06.07.2012 00:50, Martijn van Exel wrote:
>>
>> Thanks for that. My output is
>>
>> zlib header version 1.2.7
>> zlib runtime version 1.2.3.3
>>
>> so a bit of both.
>
> And exactly _that_ is why you're getting link errors. You see, you compile
> against 1.2.7 (ZLIB_VERSION is #defined in zlib.h) but then you try to link
> against 1.2.3.3 (zlibVersion() is an actual function in the library).
> 1.2.3.3 doesn't have gzbuffer and the linker can't resolve the symbol and
> fails.
>
> So you need to force gcc (or, more precisely, ld) to look for the library in
> /usr/local/lib or wherever your 1.2.7 zlib is.
>

Hi Igor,

Even after compiling and installing zlib 1.2.7 from source, the
default 'one-click' install for osmconvert did not work, but after
explicitly pointing to /usr/local/lib with the -L option, it did.
Thanks for your patient responses.
Apparently I have an older version of zlib hanging around in /usr/lib.
Is this something I should be worried about in general?

Best
Martijn

-- 
martijn van exel
http://oegeo.wordpress.com



More information about the osmosis-dev mailing list