The build fails when built with "BUILD_STATIC_LIBS" option on. The branch is
latest master. The default build is successful though.

The error is:

/home/waheed/qpid-proton/c/src/platform/platform.c: In function ‘pn_i_now’:
/home/waheed/qpid-proton/c/src/platform/platform.c:59:19: error: storage
size of ‘now’ isn’t known
   struct timespec now;
                   ^~~
/home/waheed/qpid-proton/c/src/platform/platform.c:60:7: error: implicit
declaration of function ‘clock_gettime’; did you mean ‘localtime’?
[-Wimplicit-function-declaration]
   if (clock_gettime(CLOCK_REALTIME, &now)) pni_fatal("clock_gettime()
failed\n");
       ^~~~~~~~~~~~~
       localtime
/home/waheed/qpid-proton/c/src/platform/platform.c:60:21: error:
‘CLOCK_REALTIME’ undeclared (first use in this function); did you mean
‘_XOPEN_REALTIME’?
   if (clock_gettime(CLOCK_REALTIME, &now)) pni_fatal("clock_gettime()
failed\n");
                     ^~~~~~~~~~~~~~
                     _XOPEN_REALTIME
/home/waheed/qpid-proton/c/src/platform/platform.c:60:21: note: each
undeclared identifier is reported only once for each function it appears in
/home/waheed/qpid-proton/c/src/platform/platform.c:59:19: error: unused
variable ‘now’ [-Werror=unused-variable]
   struct timespec now;
                   ^~~
/home/waheed/qpid-proton/c/src/platform/platform.c: In function
‘pn_i_strerror’:
/home/waheed/qpid-proton/c/src/platform/platform.c:92:3: error: implicit
declaration of function ‘strerror_r’; did you mean ‘strerror’?
[-Wimplicit-function-declaration]
   strerror_r(errnum, buf, buflen);
   ^~~~~~~~~~
   strerror
/home/waheed/qpid-proton/c/src/platform/platform.c: In function ‘pn_i_now’:
/home/waheed/qpid-proton/c/src/platform/platform.c:62:1: error: control
reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
c/CMakeFiles/qpid-proton-static.dir/build.make:766: recipe for target
'c/CMakeFiles/qpid-proton-static.dir/src/platform/platform.c.o' failed
make[2]: *** [c/CMakeFiles/qpid-proton-static.dir/src/platform/platform.c.o]
Error 1
CMakeFiles/Makefile2:1109: recipe for target
'c/CMakeFiles/qpid-proton-static.dir/all' failed
make[1]: *** [c/CMakeFiles/qpid-proton-static.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2




--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to