Gilles Filippini a écrit le 24/04/2020 à 15:08 :
> On Sun, 26 Jan 2020 12:39:01 +0000 ael <witwa...@disroot.org> wrote:
>> On Sat, Jan 25, 2020 at 06:26:35PM -0800, Joseph Herlant wrote:
>>> Hi,
>>>
>>>
>>> You mention in the bug there that you were able to run your pbf by
>>> compiling maptool from the git repo. What compilation flags did you
>>> use?
>>
>> I just realised that I answered the wrong question :-)
>>
>> I used the simplest defaults I think.
>>
>> In my history I just have
>> cmake ../navit/
>> make maptool
> 
> I can confirm I have the same error as reported by Joseph when using the
> Debian maptool package, but it works as described by ael when built as
> specified above. I used the very same version of navit in both cases.

When building maptool with the default configuration, the selected build
profile is 'Release' where the compiler flag '-DNDEBUG' is set.

The Debian build uses the 'Debian' profile which doesn't define this flag.

From the assert(3) manpage:
> If the macro NDEBUG is defined at the moment <assert.h> was last included, 
> the macro assert() generates no code, and hence does nothing at all.

So, the error is there actually, but silently ignored when maptool is
built with the default configuration.

I propose to add '-DDEBUG' to the 'Debian' cmake profile to workaround
this issue for now.

_g.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to