Forum

make fails

Heiko
6 June 2014, 12:54
Hello Hugo,

I try to install on a new server with OpenBSD 5.5
Make always fails:

make
[ 4%] Built target cgi-wrapper
[ 63%] Built target polarssl
[ 87%] Built target hiawatha
[ 92%] Built target ssi-cgi
Linking C executable wigwam
CMakeFiles/wigwam.dir/src/libfs.c.o(.text+0x5d7): In function `fopen_neighbour':
/root/hiawatha-9.6/src/libfs.c:398: warning: strcpy() is almost always misused, please use strlcpy()
CMakeFiles/wigwam.dir/src/wigwam.c.o(.text+0x403): In function `create_basic_password':
/root/hiawatha-9.6/src/wigwam.c:794: warning: rand() isn't random; consider using arc4random()
CMakeFiles/wigwam.dir/src/wigwam.c.o(.text+0x3db):/root/hiawatha-9.6/src/wigwam.c:787: warning: srand() seed choices are invariably poor
CMakeFiles/wigwam.dir/src/filehashes.c.o(.text+0x210): In function `sha2_bin2hex':
/root/hiawatha-9.6/src/filehashes.c:31: warning: sprintf() is often misused, please use snprintf()
/root/hiawatha-9.6/build/polarssl/library/libpolarssl.so.1.3: undefined reference to `pthread_mutex_unlock'
/root/hiawatha-9.6/build/polarssl/library/libpolarssl.so.1.3: undefined reference to `pthread_mutex_destroy'
/root/hiawatha-9.6/build/polarssl/library/libpolarssl.so.1.3: undefined reference to `pthread_mutex_lock'
/root/hiawatha-9.6/build/polarssl/library/libpolarssl.so.1.3: undefined reference to `pthread_mutex_init'
collect2: ld returned 1 exit status
*** Error 1 in . (CMakeFiles/wigwam.dir/build.make:265 'wigwam')
*** Error 1 in . (CMakeFiles/Makefile2:169 'CMakeFiles/wigwam.dir/all')
*** Error 1 in /root/hiawatha-9.6/build (Makefile:137 'all')


Do you have any idea?
Regards,
Heiko

Hiawatha version: 9.6
Operating System: OpenBSD 5.5 amd64
Hugo Leisink
6 June 2014, 16:52
It looks like PolarSSL is cause the problem, not Hiawatha. Please contact the PolarSSL developer [polarssl.org] instead.
Heiko
9 June 2014, 03:00
Hi Hugo, I posted a request and I got no answer. I sent a mail to Paul and got no answer.
Hiawatha 9.6 is not working on OpenBSD 5.5 with current PolarSSL.
What do you suggest ?
Hugo Leisink
9 June 2014, 18:29
In CMakeLists.txt, add 'pthread' to the target_link_libraries() for wigwam. It's located at line 141.
Heiko
10 June 2014, 00:59
Make was now successfull.
Thank you Hugo and thank you Paul.
This topic has been closed.