On Wed, Oct 2, 2013 at 8:03 AM, Zvi Kave <tz...@razlee.com> wrote:

> Dave,
>
> I think that I have bad include path.
> At least I solved it by replacing the line
>
> #include <time.h>
>
>
> in libclamav/asn1.c and shared/output.c with the absolute include:
>
> #include "/usr/include/time.h"
>
>
> Note: I opened it as case 9054 in ClamAV bugzilla, but now I do not know
> how to delete or close it there as solved.
>
> Best regards,
>
> Zvi
>
> On 01/10/13 21:37, David Raynor wrote:
>
> On Tue, Oct 1, 2013 at 2:31 PM, David Raynor <dray...@sourcefire.com>
> <dray...@sourcefire.com> wrote:
>
>
>  On Tue, Oct 1, 2013 at 11:47 AM, Zvi Kave <tz...@razlee.com>
> <tz...@razlee.com> wrote:
>
>
>  I hope that someone can help.
> I got the following error on make of clamav-0.98 in AIX:
>
>   CC     libclamav_la-version.lo
>      CC     libclamav_la-asn1.lo
>    asn1.c: In function `asn1_get_time':
>    asn1.c:293: error: storage size of `t' isn't known
>    make: The error code from the last command is 1.
>
>
>    Stop.
>
>  make: The error code from the last command is 1.
>
>
>  Stop.
>  make: The error code from the last command is 2.
>
>
>  Stop.
>  make: The error code from the last command is 1.
>
>
>  Stop.
>  make: The error code from the last command is 2.
>
>
>  Stop.
> _______________________________________________
> Help us build a comprehensive ClamAV
> guide:
> https://github.com/vrtadmin/clamav-faqhttp://www.clamav.net/support/ml
>
>  The t variable in that function is of type "struct tm". The asn1.c file
> includes time.h earlier in the file on line 25. From the Technical
> Reference part of the AIX documentation:
> "The tm structure is defined in the time.h file ..."
>
> Is your time.h file intact? Are you adding any defines that may conflict
> with it? Could there be another copy of time.h that is getting included
> somehow?
>
> Dave R.
>
> --
> ---
> Dave Raynor
> Sourcefire Vulnerability Research teamdray...@sourcefire.com
>
>  Try adding these lines to the asn1.c file on line 24, just before the
> include of time.h line 25:
>
> #ifndef _WIN32
> #include <sys/time.h>
> #endif
>
> See if that makes a difference.
>
> Dave R.
> _______________________________________________
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> http://www.clamav.net/support/ml
>

I can take care of the bug report. Thanks for chiming in.

Dave R.

-- 
---
Dave Raynor
Sourcefire Vulnerability Research Team
dray...@sourcefire.com
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml

Reply via email to