JoowonCHA / openzwave-control-panel

Automatically exported from code.google.com/p/openzwave-control-panel
0 stars 0 forks source link

undefined reference to `clock_gettime' #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
make

What is the expected output? What do you see instead?
webserver.o: In function `Webserver::SendTopoResponse(MHD_Connection*, char 
const*, char const*, char const*, char const*)':
/root/openzwave-control-panel/webserver.cpp:333: warning: the use of `mktemp' 
is dangerous, better use `mkstemp' or `mkdtemp'
../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a(internal.o): In function 
`MHD_monotonic_time':
/root/libmicrohttpd/src/daemon/internal.c:164: undefined reference to 
`clock_gettime'
collect2: ld returned 1 exit status
make: *** [ozwcp] Erreur 1

What version of the product are you using? On what operating system?
r37

Thanks a lot for help
Thomas

Original issue reported on code.google.com by thomas.g...@gmail.com on 15 Jan 2013 at 9:07

GoogleCodeExporter commented 8 years ago
This is a libmicrohttpd compilation issue. Try using one of the libmicrohttpd 
test programs to see how to resolve this before calling this a control panel 
issue.

Original comment by glsatz on 15 Jan 2013 at 9:24

GoogleCodeExporter commented 8 years ago
Thanks for answear.
I read so that's an error of compile libmicrohttpd, but when I make it only, 
it's good.
When I make openzwave-control-panel it's false.

Thomas

Original comment by thomas.g...@gmail.com on 15 Jan 2013 at 9:40

GoogleCodeExporter commented 8 years ago
With libmicrohttpd-0.9.19 it's good.
With libmicrohttpd-0.9.24 it failed.

Thanks
Thomas

Original comment by thomas.g...@gmail.com on 15 Jan 2013 at 9:44

GoogleCodeExporter commented 8 years ago
I am using 0.9.23 and it doesn't get that error. Can you link one of the 
libmicrohttpd example apps?

Original comment by glsatz on 16 Jan 2013 at 2:58

GoogleCodeExporter commented 8 years ago
I can do a make in the libmicrohttpd without error.
I don't know if it's what you want.

Thanks
Thomas

Original comment by thomas.g...@gmail.com on 17 Jan 2013 at 9:02

GoogleCodeExporter commented 8 years ago
Can you run any of the demos in libmicrohttpd/src/examples?

Original comment by glsatz on 17 Jan 2013 at 10:39

GoogleCodeExporter commented 8 years ago
I added -lrt to the end of the libmicrohttp.a line in Makefile.  Worked for me. 
 YMMV

Original comment by br...@caseyclan.net on 1 Nov 2013 at 9:00