All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-security][PATCH] clamav: fix gcc 6.x build failure.
@ 2016-08-20 17:19 Armin Kuster
  2016-08-20 18:36 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Armin Kuster @ 2016-08-20 17:19 UTC (permalink / raw)
  To: yocto

./llvm/include/llvm/Support/AlignOf.h:57:24: error: expected unqualified-id before 'alignof'
 static inline unsigned alignof() { return AlignOf<T>::Alignment; }
                        ^~~~~~~

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@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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-security][PATCH] clamav: fix gcc 6.x build failure.
  2016-08-20 17:19 [meta-security][PATCH] clamav: fix gcc 6.x build failure Armin Kuster
@ 2016-08-20 18:36 ` Khem Raj
  2016-08-23 17:14   ` akuster808
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2016-08-20 18:36 UTC (permalink / raw)
  To: Armin Kuster; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]


> On Aug 20, 2016, at 10:19 AM, Armin Kuster <akuster808@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@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-security][PATCH] clamav: fix gcc 6.x build failure.
  2016-08-20 18:36 ` Khem Raj
@ 2016-08-23 17:14   ` akuster808
  0 siblings, 0 replies; 3+ messages in thread
From: akuster808 @ 2016-08-23 17:14 UTC (permalink / raw)
  To: Khem Raj, Armin Kuster; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]



On 08/20/2016 11:36 AM, Khem Raj wrote:
>> On Aug 20, 2016, at 10:19 AM, Armin Kuster <akuster808@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.

Ok. I will look into to that. I heard there was an upstream fixed but no 
update released. I will see how easy it is to backport.

- armin
>
>
>> 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@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@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>


[-- Attachment #2: Type: text/html, Size: 2802 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-23 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-20 17:19 [meta-security][PATCH] clamav: fix gcc 6.x build failure Armin Kuster
2016-08-20 18:36 ` Khem Raj
2016-08-23 17:14   ` akuster808

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.