[hipl-users] Re: [PATCH] Compiling bazaar checkout 2010-01-20

  • From: Miika Komu <miika.komu@xxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Wed, 20 Jan 2010 19:26:03 +0200

tkilappa@xxxxxxxxx wrote:

Hi,

I found actually a cleaner way to deal with the USE_GNU in revno 3481.

Hello again. Thanks for the updates yesterday, I switched to the bazaar release to get them immediately.

Unfortunately, there's still two minor things with the compilation process, please bear with me:

1) lib/core/hashtree.c is specified twice in the build process for same library, which results in duplicate symbols.

2) When compiling lib/core/misc.c, an error about undefined strnlen is printed. This is because it's a GNU extension, and not declared unless __USE_GNU is defined before including string.h.

First issue is obvious, but I don't know what'd be the most elegant solution to the latter. I just added an #ifdef to misc.c to declare strnlen as extern if __USE_GNU was not defined up to that point.

Patch for the above included, you may use it freely however you see fit.

I'll try to look up the other error message from yesterday and check whether it was an user error on my part or something else.



Other related posts: