Compilation Issue

Nicolas Breuer Nicolas.Breuer at belcenter.biz
Thu May 2 13:56:55 CEST 2019


Hello Alan,

Don't worry 😊 I want to try to build it on my server;

Indeed I can build it on an other Centos 6 but I still have this compile error on my "first" server.
I already tried to reinstall gcc, glibc*, etc. 

Any ideas what others packages can cause this ?
Stdlib.h is part of glibc-headers.


CC src/lib/cbuff.c
In file included from /usr/include/talloc.h:28:0,
                 from src/freeradius-devel/libradius.h:60,
                 from src/lib/cbuff.c:26:
/usr/include/stdlib.h:35:1: error: unknown type name â__BEGIN_DECLSâ
 __BEGIN_DECLS
 ^~~~~~~~~~~~~
/usr/include/stdlib.h:98:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ
 typedef struct
 ^~~~~~~
/usr/include/stdlib.h:140:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âexternâ
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
 ^~~~~~
/usr/include/stdlib.h:145:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âexternâ
 extern double atof (__const char *__nptr)
 ^~~~~~
/usr/include/stdlib.h: In function âatoiâ:
/usr/include/stdlib.h:149:6: error: unknown type name â__THROWâ
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
      ^~~~~~~
/usr/include/stdlib.h:149:33: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__nonnullâ
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
                                 ^~~~~~~~~
/usr/include/stdlib.h:152:6: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
      ^~~~~~~
/usr/include/stdlib.h:153:1: error: unknown type name â__END_NAMESPACE_STDâ
 __END_NAMESPACE_STD
 ^~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:165:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âexternâ
 extern double strtod (__const char *__restrict __nptr,
 ^~~~~~
/usr/include/stdlib.h:168:1: error: unknown type name â__END_NAMESPACE_STDâ
 __END_NAMESPACE_STD
 ^~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:184:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âexternâ
 extern long int strtol (__const char *__restrict __nptr,
 ^~~~~~
/usr/include/stdlib.h:190:6: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ
      __THROW __nonnull ((1)) __wur;
      ^~~~~~~
/usr/include/stdlib.h:191:1: error: unknown type name â__END_NAMESPACE_STDâ
 __END_NAMESPACE_STD
 ^~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:380:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âexternâ
 extern int rand (void) __THROW;
 ^~~~~~
/usr/include/stdlib.h:382:41: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ
 extern void srand (unsigned int __seed) __THROW;
                                         ^~~~~~~
/usr/include/stdlib.h:383:1: error: unknown type name â__END_NAMESPACE_STDâ
 __END_NAMESPACE_STD


-----Message d'origine-----
De : Freeradius-Users <freeradius-users-bounces+nicolas.breuer=belcenter.biz at lists.freeradius.org> De la part de Alan DeKok
Envoyé : jeudi 2 mai 2019 13:21
À : FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Objet : Re: Compilation Issue



> On May 2, 2019, at 7:17 AM, Nicolas Breuer <Nicolas.Breuer at belcenter.biz> wrote:
> 
> OK good Alan, we will compile with GCC 6 but you said that you did installs on Centos 6 all the time 😊

  As I said, we do *builds* on CentOS 6.  I don't *install* it on CentOS 6.

  We do builds for CentOS 6 so that people can install it.  Perhaps you could try installing the pre-built packages for CentOS 6 that I pointed to, instead of arguing?

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list