Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jul 2014 15:49:19 +0800
From:      Gregory Orange <gregory.orange@calorieking.com>
To:        User questions <freebsd-questions@freebsd.org>
Subject:   Re: mail/p5-Mail-ClamAV fails to build
Message-ID:  <53BCF3FF.7090400@calorieking.com>
In-Reply-To: <53BCE598.40102@calorieking.com>
References:  <53BCE598.40102@calorieking.com>

next in thread | previous in thread | raw e-mail | index | archive | help
After reading /var/obj/... Makefile and Makefile.PL and cc(1), we've 
discovered a workaround is to run the following:

# CPATH=/usr/local/include make -C /usr/ports/mail/p5-Mail-ClamAV

This isn't a solution, but hopefully will help get closer to it.


On 09/07/14 14:47, Gregory Orange wrote:
> I'm trying to build mail/p5-Mail-ClamAV and getting this error:
>
> /usr/local/bin/perl /usr/local/lib/perl5/5.14/ExtUtils/xsubpp  -typemap
> "/usr/local/lib/perl5/5.14/ExtUtils/typemap"  ClamAV.xs > ClamAV.xsc &&
> mv ClamAV.xsc ClamAV.c
> cc -c
> -I"/var/obj/usr/ports.local/mail/p5-Mail-ClamAV/work/Mail-ClamAV-0.29"
> -DAPPLLIB_EXP="/usr/local/lib/perl5/5.14/BSDPAN" -DHAS_FPSETMASK
> -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -O2
> -pipe -fno-strict-aliasing    -DVERSION=\"0.29\"  -DXS_VERSION=\"0.29\"
> -DPIC -fPIC "-I/usr/local/lib/perl5/5.14/mach/CORE"   ClamAV.c
> ClamAV.xs:11:20: error: clamav.h: No such file or directory
>
> There is more, but being unable to find clamav.h seems to be problem
> enough, and the other errors look related to this.
>
> security/clamav is installed, and /usr/local/include/clamav.h is
> present. A friend built it successfully on his machine, and gave me a
> screen grab. The only difference is that line, which also has
> "-I/usr/local/include" - which I think would make it work.
>
> I see /usr/ports/Mk/bsd.database.mk has this line:
> CPPFLAGS+=              -I${LOCALBASE}/include
>
> and /usr/ports/Mk/bsd.port.Mk has this line:
> bsd.port.mk:LOCALBASE?=         /usr/local
>
> but I don't know how and where these would be used.
>
> What should I do next, to troubleshoot this?
>
> TIA,
> Greg.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"


-- 
Gregory Orange
System Administrator
CalorieKing Wellness Solutions Incorporated
http://www.calorieking.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53BCF3FF.7090400>