Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
On 2009-12-21 16:57, Renato Botelho wrote: > 2009/12/21 Török Edwin : > >> 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 >> #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. >> > > FYI, I've attached this patch on bug 1776 asking someone to test it on OSX > > Thanks, I applied the patch here: http://git.clamav.net/gitweb?p=clamav-devel.git;a=commit;h=ce0c204a7ebcd6075cd58daeb5a5c2909343556c Best regards, --Edwin ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
> Thanks for the patch, what if you only wrap the include by #ifdef > HAVE_UNISTD_H? > > Something like: > #ifdef HAVE_UNISTD_H > #include > #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. BTW, is there a real need to check for FreeBSD and its version? Just unconditionally including unistd.h (well, as long as HAVE_UNISTD_H is defined of course) looks like a safe proposition... On the other hand, including *instead of* unistd.h should be sufficient, and more "correct"... I don't know how these things are arranged on FreeBSD, though. Eugene signature.asc Description: OpenPGP digital signature ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
2009/12/21 Török Edwin : > 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 > #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. FYI, I've attached this patch on bug 1776 asking someone to test it on OSX -- Renato Botelho ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
2009/12/21 Török Edwin : > On 2009-12-21 16:30, Renato Botelho wrote: >> On Mon, Dec 21, 2009 at 10:21 AM, Renato Botelho 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 > #endif Worked fine, see patch attached. -- Renato Botelho clamav-devel.diff Description: Binary data ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
On 2009-12-21 16:30, Renato Botelho wrote: > On Mon, Dec 21, 2009 at 10:21 AM, Renato Botelho 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 #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
Re: [Clamav-devel] Prblems building snapshots on FreeBSD [FIXED]
On Mon, Dec 21, 2009 at 10:21 AM, Renato Botelho 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 -- Renato Botelho clamav-devel.diff Description: Binary data ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net
[Clamav-devel] Prblems building snapshots on FreeBSD
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 Regards -- Renato Botelho ___ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net