I'm running FreeBSD 10.0-RELEASE-p1
Update of ClamAV is failing, why?
Tried
Who can help me out?
Regards,
Donald.
Last couple of lines:
Update of ClamAV is failing, why?
Tried
make clean
and make distclean
, then make reinstall
( make install
doesn't make any difference). Tested on two FreeBSD servers, both on 10.0-RELEASE-p1, same error, same package.Who can help me out?
Regards,
Donald.
Last couple of lines:
Code:
/usr/include/string.h:101:57: note: passing argument to parameter here
char *strncpy(char * __restrict, const char * __restrict, size_t);
^
CC fan.o
1 warning generated.
CCLD clamd
gmake[5]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/clamd'
Making all in clamdscan
gmake[5]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/clamdscan'
CC output.o
CC optparser.o
CC misc.o
CC getopt.o
CC actions.o
CC clamdcom.o
CC clamdscan.o
../shared/clamdcom.c:42:13: warning: implicit declaration of function 'send' is invalid in C99 [-Wimplicit-function-declaration]
int sent = send(sockd, line, len, 0);
^
../shared/clamdcom.c:75:13: warning: implicit declaration of function 'recv' is invalid in C99 [-Wimplicit-function-declaration]
s->r = recv(s->sockd, s->cur, sizeof(s->buf) - (s->cur - s->buf), 0);
^
2 warnings generated.
CC proto.o
CC client.o
CCLD clamdscan
gmake[5]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/clamdscan'
Making all in freshclam
gmake[5]: Entering directory `/usr/ports/security/clamav/work/clamav-0.98.3/freshclam'
CC output.o
CC optparser.o
CC getopt.o
CC misc.o
CC cdiff.o
CC tar.o
CC clamdcom.o
CC freshclam.o
../shared/clamdcom.c:42:13: warning: implicit declaration of function 'send' is invalid in C99 [-Wimplicit-function-declaration]
int sent = send(sockd, line, len, 0);
^
../shared/clamdcom.c:75:13: warning: implicit declaration of function 'recv' is invalid in C99 [-Wimplicit-function-declaration]
s->r = recv(s->sockd, s->cur, sizeof(s->buf) - (s->cur - s->buf), 0);
^
2 warnings generated.
CC manager.o
CC notify.o
CC dns.o
In file included from freshclam.c:57:
In file included from ../libclamav/others.h:21:
In file included from ../libclamav/matcher.h:28:
../libclamav/others.h:154:5: error: unknown type name 'stats_section_t'
stats_section_t *sections;
^
CC execute.o
../libclamav/others.h:323:5: error: unknown type name 'clcb_stats_add_sample'
clcb_stats_add_sample cb_stats_add_sample;
^
CC nonblock.o
CC mirman.o
../libclamav/others.h:324:5: error: unknown type name 'clcb_stats_remove_sample'
clcb_stats_remove_sample cb_stats_remove_sample;
^
../libclamav/others.h:325:5: error: unknown type name 'clcb_stats_decrement_count'
clcb_stats_decrement_count cb_stats_decrement_count;
^
../libclamav/others.h:326:5: error: unknown type name 'clcb_stats_submit'
clcb_stats_submit cb_stats_submit;
^
../libclamav/others.h:327:5: error: unknown type name 'clcb_stats_flush'
clcb_stats_flush cb_stats_flush;
^
../libclamav/others.h:328:5: error: unknown type name 'clcb_stats_get_num'
clcb_stats_get_num cb_stats_get_num;
^
../libclamav/others.h:329:5: error: unknown type name 'clcb_stats_get_size'
clcb_stats_get_size cb_stats_get_size;
^
../libclamav/others.h:330:5: error: unknown type name 'clcb_stats_get_hostid'
clcb_stats_get_hostid cb_stats_get_hostid;
^
../libclamav/others.h:380:5: error: unknown type name 'clcb_stats_add_sample'
clcb_stats_add_sample cb_stats_add_sample;
^
../libclamav/others.h:381:5: error: unknown type name 'clcb_stats_remove_sample'
clcb_stats_remove_sample cb_stats_remove_sample;
^
../libclamav/others.h:382:5: error: unknown type name 'clcb_stats_decrement_count'
clcb_stats_decrement_count cb_stats_decrement_count;
^
../libclamav/others.h:383:5: error: unknown type name 'clcb_stats_submit'
clcb_stats_submit cb_stats_submit;
^
../libclamav/others.h:384:5: error: unknown type name 'clcb_stats_flush'
clcb_stats_flush cb_stats_flush;
^
../libclamav/others.h:385:5: error: unknown type name 'clcb_stats_get_num'
clcb_stats_get_num cb_stats_get_num;
^
../libclamav/others.h:386:5: error: unknown type name 'clcb_stats_get_size'
clcb_stats_get_size cb_stats_get_size;
^
../libclamav/others.h:387:5: error: unknown type name 'clcb_stats_get_hostid'
clcb_stats_get_hostid cb_stats_get_hostid;
^
freshclam.c:762:5: warning: implicit declaration of function 'cl_engine_stats_enable' is invalid in C99 [-Wimplicit-function-declaration]
cl_engine_stats_enable(engine);
^
freshclam.c:781:9: warning: implicit declaration of function 'cl_engine_set_clcb_stats_get_hostid' is invalid in C99 [-Wimplicit-function-declaration]
cl_engine_set_clcb_stats_get_hostid(engine, NULL);
^
freshclam.c:786:35: error: use of undeclared identifier 'CL_ENGINE_STATS_TIMEOUT'; did you mean 'CL_ENGINE_BYTECODE_TIMEOUT'?
cl_engine_set_num(engine, CL_ENGINE_STATS_TIMEOUT, optget(opts, "StatsTimeout")->numarg);
^~~~~~~~~~~~~~~~~~~~~~~
CL_ENGINE_BYTECODE_TIMEOUT
/usr/local/include/clamav.h:192:5: note: 'CL_ENGINE_BYTECODE_TIMEOUT' declared here
CL_ENGINE_BYTECODE_TIMEOUT, /* uint32_t */
^
2 warnings and 18 errors generated.
gmake[5]: *** [freshclam.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
gmake[5]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3/freshclam'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/ports/security/clamav/work/clamav-0.98.3'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/security/clamav
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/security/clamav
*** Error code 1
Stop.
make: stopped in /usr/ports/security/clamav
root@backup:/usr/ports/security/clamav #