Hi,

Still digging through the Makefiles to confirm how building currently works
before I try to rearrange it.  I'll reply to that bit when I have more ideas.
But...

pancake wrote:
> I have finally decided to import file(1) from openbsd. I have refactorized 
> thr code and now its 6000 loc instead of 8000. Quite acceptable.
> 
> Now libmagic dependency has been removed.

A couple of problems with this version:

* The types for file_signextend() differ between apprentice.c and file.h .

This only causes an error on my x86_64 system, and the fix is trivial.

* strlcpy and strlcat aren't in glibc.

This seems to be a common complaint for people porting to linux - I see no
fewer than 9 reimplementations of strlcpy in my /usr/include dir from other
libraries that have needed it.

Options are presumably to add one into magic/ inside some #ifdefs, or to
rewrite those bits of code so they're safe with strncpy/strncat.

Glyn
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to