cea-hpc / coordinatool

Lustre userspace coordinator as copytool
3 stars 0 forks source link

compilation error: static declaration of ‘gettid’ follows non-static declaration #1

Open thiell opened 7 months ago

thiell commented 7 months ago

On EL 9.2, the following compilation error occurs because gettid() is re-defined:

../tests/lhsmtool_cmd.c:170:21: error: static declaration of ‘gettid’ follows non-static declaration
  170 | static inline pid_t gettid(void)
      |                     ^~~~~~
In file included from /usr/include/unistd.h:1208,
                 from ../tests/lhsmtool_cmd.c:64:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ with type ‘__pid_t(void)’ {aka ‘int(void)’}
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~
courrierg commented 7 months ago

Thank you for the logs. We will fix this.