[yocto] [meta-security][PATCH] clamav: fix gcc 6.x build failure.

Khem Raj raj.khem at gmail.com
Sat Aug 20 11:36:53 PDT 2016


> On Aug 20, 2016, at 10:19 AM, Armin Kuster <akuster808 at gmail.com> wrote:
> 
> ./llvm/include/llvm/Support/AlignOf.h:57:24: error: expected unqualified-id before 'alignof'
> static inline unsigned alignof() { return AlignOf<T>::Alignment; }
>                        ^~~~~~~

For this error, perhaps its better to ifdef this function definition with

#if __cplusplus <= 199711L
#endif

since it has been added to standard after c++98, that patch (if works) can be upstreamed too.


> 
> compile with -std=gnu++98
> 
> alt in future is to us llvm3X and configure --with-system-llvm --with-llvm-linking=dynamic.
> 
> Signed-off-by: Armin Kuster <akuster808 at gmail.com>
> ---
> recipes-security/clamav/clamav_0.99.2.bb | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/recipes-security/clamav/clamav_0.99.2.bb b/recipes-security/clamav/clamav_0.99.2.bb
> index 184d605..73905a7 100644
> --- a/recipes-security/clamav/clamav_0.99.2.bb
> +++ b/recipes-security/clamav/clamav_0.99.2.bb
> @@ -50,6 +50,8 @@ EXTRA_OECONF += " --with-user=${UID}  --with-group=${GID} \
>             --disable-rpath \
>             "
> 
> +CXXFLAGS += "--std=gnu++98"
> +
> do_configure () {
>     cd ${S}
>     ./configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
> --
> 2.7.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160820/7b71a0ec/attachment.pgp>


More information about the yocto mailing list