virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

error compiling virtuoso stable 7.2.14 on CentOS 7 with gcc 8.3

Open dmkuzsib opened this issue 8 months ago • 2 comments

Hello,

compiling virtuoso stable 7.2.14 on CentOS 7 with gcc 8.3 [from SCL] produces error:

In file included from /usr/include/string.h:633,
                 from isql_log_normalize.c:26:
isql_log_normalize.c:59:7: error: expected identifier or '(' before '__extension__'
 char *strdup(const char *s);
       ^~~~~~

Any workaround ?

thanks

dmkuzsib avatar Apr 29 '25 09:04 dmkuzsib

Can you show me what CFLAGS you are using to compile ?

pkleef avatar Apr 29 '25 13:04 pkleef

I started using -O2 -m64, as suggested. Then also tried adding -fpermissive or -std=gnu89, but neither work. Also tried with gcc 9.3.1, without success.

thanks

dmkuzsib avatar Apr 29 '25 14:04 dmkuzsib