← Back to team overview

dulwich-users team mailing list archive

Re: dulwich 0.7.2: OS X Lion compilation

 

Hi,

On 04/08/11 09:55, Daniele Sluijters wrote:
Hello there, Mac guy back again.

I'm still running into compiler issues with dulwich 0.7.2.

The old strnlen issue doesn't seem to have been solved yet as I just got hit with that one again trying to build dulwich:
dulwich/_objects.c:30: error: conflicting types for ‘strnlen’
/usr/include/string.h:143: error: previous declaration of ‘strnlen’ was here

Additionally, I know see these too:
dulwich/_objects.c: In function ‘py_parse_tree’:
dulwich/_objects.c:97: warning: implicit conversion shortens 64-bit value into a 32-bit value
dulwich/_objects.c: In function ‘cmp_tree_item’:
dulwich/_objects.c:144: warning: implicit conversion shortens 64-bit value into a 32-bit value dulwich/_objects.c:148: warning: implicit conversion shortens 64-bit value into a 32-bit value
dulwich/_objects.c: In function ‘py_sorted_tree_items’:
dulwich/_objects.c:188: warning: implicit conversion shortens 64-bit value into a 32-bit value dulwich/_objects.c:220: warning: implicit conversion shortens 64-bit value into a 32-bit value

Of course it's just a warning so it shouldn't matter much but still, could be a bit dangerous.

0.7.2 does not have the recent fixes for strnlen on Lion - have you tried trunk?

See also

https://bugs.launchpad.net/dulwich/+bug/794543

Cheers,

Jelmer