On 2009-12-21 16:30, Renato Botelho wrote:
> On Mon, Dec 21, 2009 at 10:21 AM, Renato Botelho <[email protected]> wrote:
>   
>> I'm still having problems building clamav recent snapshots on
>> FreeBSD hosts, this time on FreeBSD  6.4 and 7.2 (x86 and
>> x86_64)
>>
>> Here is the log:
>>
>> /bin/sh ../libtool --silent --tag=CC   --mode=compile cc
>> -DHAVE_CONFIG_H -I. -I..  -I.. -I./nsis -I../libltdl
>> -DWARN_DLOPEN_FAIL -I/usr/local/include    -O2 -fno-strict-aliasing
>> -pipe -c -o bytecode_nojit.lo bytecode_nojit.c
>> In file included from bytecode.h:27,
>>                 from bytecode_nojit.c:26:
>> fmap.h:45: error: syntax error before "off_t"
>> gmake[4]: *** [bytecode_nojit.lo] Error 1
>> gmake[4]: *** Waiting for unfinished jobs....
>> gmake[4]: Leaving directory
>> `/work/a/ports/security/clamav-devel/work/clamav-devel-20091221/libclamav'
>> gmake[3]: *** [all-recursive] Error 1
>> gmake[3]: Leaving directory
>> `/work/a/ports/security/clamav-devel/work/clamav-devel-20091221/libclamav'
>> gmake[2]: *** [all] Error 2
>> gmake[2]: Leaving directory
>> `/work/a/ports/security/clamav-devel/work/clamav-devel-20091221/libclamav'
>> gmake[1]: *** [all-recursive] Error 1
>> gmake[1]: Leaving directory
>> `/work/a/ports/security/clamav-devel/work/clamav-devel-20091221'
>> gmake: *** [all] Error 2
>> *** Error code 1
>>     
>
> Attached patch fixed the problem
>   

Hi Renato,

Thanks for the patch, what if you only wrap the include by #ifdef
HAVE_UNISTD_H?

Something like:
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

We have a similar bug for OS X
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1776, which I haven't
had time to look into yet.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to