From owner-freebsd-ports@FreeBSD.ORG Thu May 15 11:33:04 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6857419 for ; Thu, 15 May 2014 11:33:04 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 811172DCA for ; Thu, 15 May 2014 11:33:04 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id hn18so7770303igb.0 for ; Thu, 15 May 2014 04:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=m1zlRhFcH9wxyJTmCaAYWQqIc60orV7NQ153ul6d+08=; b=wlxgiW/EzM3Pj1cmFVQPlvKR6/xAbDn6aW/5LctX/Hsbo7x9/jw8aCuQyltnuYXGYh d2ntfVDzZupLrOgDDb8jgbOIREO2W2JTFt/tuuJuYHajuB3Xd++R8RK/bEvAWXGa4MFP bZ7WsOTeTPoDW4T9de6kXamR+jijMN8QjOYV7BVaDrSPBGtv7UVEdsiMrrrvxtZgBO3B mE8PFT4nixzigKLO3F41BGg00tAORTiYfXDyf68+KWvAPqDKZHvX24lWBVmJFr4rUbnQ dvpryya7QEKGm6aUi/CiwV4D0qo5Vs1VodXjmTm1ZWHoHIf9eqZ8Gt60CYDvkL/n1u3W Tynw== X-Received: by 10.43.141.12 with SMTP id jc12mr9205772icc.21.1400153583979; Thu, 15 May 2014 04:33:03 -0700 (PDT) Received: from tp-localdomain.localnet ([24.114.252.234]) by mx.google.com with ESMTPSA id nk1sm11208454igb.0.2014.05.15.04.33.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 May 2014 04:33:02 -0700 (PDT) Sender: Renato Botelho From: Renato Botelho To: FreeBSD Ports Subject: Re: Unable to update to clamav 0.98.3 Date: Thu, 15 May 2014 07:33:01 -0400 Message-ID: <87521174.AX6GNMqAKX@tp-localdomain> Organization: The FreeBSD Project User-Agent: KMail/4.12.5 (Linux/3.14.3-200.fc20.x86_64; KDE/4.12.5; x86_64; ; ) In-Reply-To: <20140513055504.7994439d@scorpio> References: <20140508163511.7f8d2423@scorpio> <7497690.qHyIaiNdql@tp-localdomain> <20140513055504.7994439d@scorpio> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: Larry Baird X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2014 11:33:04 -0000 On Tuesday, May 13, 2014 05:55:04 AM Jerry wrote: > On Mon, 12 May 2014 11:03:50 -0300, Renato Botelho stated: > > On Thursday, May 08, 2014 04:35:11 PM Jerry wrote: > > > FreeBSD 10.0-RELEASE > > > > > > I am unable to update to "clamav-0.98.3". It terminates with the > > > following error message: > > > > > > clamd.c:335:59: warning: format specifies type 'unsigned int' but the > > > argument has type 'off_t' (aka 'long') [-Wformat] logg("#Log file size > > > limited to %u bytes.\n", logg_size); ~~ ^~~~~~~~~ %ld > > > 1 warning generated. > > > > > > CC tcpserver.o > > > CC localserver.o > > > CC session.o > > > CC thrmgr.o > > > CC server-th.o > > > CC scanner.o > > > > > > scanner.c:105:25: warning: passing 'const unsigned char *' to parameter > > > of type 'const char *' converts between pointers to integer types with > > > different sign [-Wpointer-sign] > > > > > > strncpy(c->virhash, md5, 32); > > > > > > ^~~ > > > > > > /usr/include/string.h:101:57: note: passing argument to parameter here > > > char *strncpy(char * __restrict, const char * __restrict, size_t); > > > > > > ^ > > > > > > 1 warning generated. > > > > > > CC others.o > > > CC fan.o > > > CCLD clamd > > > > > > gmake[3]: Leaving directory > > > `/usr/ports/security/clamav/work/clamav-0.98.3/clamd' Making all in > > > clamdscan > > > gmake[3]: 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 > > > > > > ../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 clamdscan.o > > > CC proto.o > > > CC client.o > > > CCLD clamdscan > > > > > > gmake[3]: Leaving directory > > > `/usr/ports/security/clamav/work/clamav-0.98.3/clamdscan' Making all in > > > freshclam > > > gmake[3]: 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 > > > > > > ../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 freshclam.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; > > > ^ > > > > > > ../libclamav/others.h:323:5: error: unknown type name > > > 'clcb_stats_add_sample' clcb_stats_add_sample cb_stats_add_sample; > > > > > > ^ > > > > > > ../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[3]: *** [freshclam.o] Error 1 > > > gmake[3]: Leaving directory > > > `/usr/ports/security/clamav/work/clamav-0.98.3/freshclam' gmake[2]: *** > > > [all-recursive] Error 1 > > > gmake[2]: Leaving directory > > > `/usr/ports/security/clamav/work/clamav-0.98.3' gmake[1]: *** [all] > > > Error 2 gmake[1]: Leaving directory > > > `/usr/ports/security/clamav/work/clamav-0.98.3' *** Error code 1 > > > > > > Stop. > > > make: stopped in /usr/ports/security/clamav > > > > > > The full build log is available here: > > > http://www/seibercom.net/logs/clamav.txt > > > > Hello, > > > > I was not able to reproduce the issue, but, I restored a patch that I > > accidentally removed during the update process. Could you please try > > 0.98.3_1 and check if it helps? > > Updating did not correct the problem. I followed Larry's advice and first > deleted the application then re-installed it. There are still a lot of error > messages emitted; however, it does compile and install and apparently is > working correctly. I still do not know what the actual problem is though. > > This might be worth a note in "UPDATING" if others are experiencing this > phenomenon. Do you remember what was the version you had installed when tried to build the new version? I'm still trying to reproduce the issue to be able to fix it. -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc