Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not compile #25

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Open

Will not compile #25

GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I am trying to compile on a Raspberry Pi against the open-zwave library, 
revision 887.  I get the following compile error:

 make
g++ -o ozwcp -g ozwcp.o webserver.o zwavelib.o ../open-zwave/libopenzwave.a 
-lgnutls ../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a -pthread -ludev
/usr/bin/ld: ../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a(daemon.o): 
undefined reference to symbol 'gcry_control@@GCRYPT_1.2'
//lib/arm-linux-gnueabihf/libgcrypt.so.11: error adding symbols: DSO missing 
from command line
collect2: ld returned 1 exit status
Makefile:71: recipe for target 'ozwcp' failed
make: *** [ozwcp] Error 1

hopefully this is a simple fix.



Original issue reported on code.google.com by [email protected] on 30 Aug 2014 at 4:41

@GoogleCodeExporter
Copy link
Author

* Same as on the open-zwave issue list

It is a fault in the Pi image i believe, but easy to fix. Modify the Makefile 
of the ozwcp as follows:

Replace
# Remove comment below for gnutls support
GNUTLS := #-lgnutls

with:
# Remove comment below for gnutls support
GNUTLS := -lgnutls -lgcrypt

Then it will compile fine ;-)

Original comment by [email protected] on 20 Nov 2014 at 9:53

@GoogleCodeExporter
Copy link
Author

Thank you for the fix, it fixed part of the problem.  The make then returned an 
additional undefined reference to symbol 'clock_gettime@@GLIBC_2.4'.  

This required changing:
   DEBUG_LDFLAGS   := -g
to:
   DEBUG_LDFLAGS   := -g -lrt

Original comment by [email protected] on 21 Nov 2014 at 2:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant