sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h
cmake -DCMAKE_BUILD_TYPE:String="Release" -DUSE_SHARED_MBEDTLS_LIBRARY:BOOL=TRUE -DENABLE_ZLIB_SUPPORT:BOOL=TRUE -DUSE_PKCS11_HELPER_LIBRARY:BOOL=TRUE .
cmake -DCMAKE_INSTALL_PREFIX="" \
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
-DCMAKE_INSTALL_SBINDIR=%{_sbindir} \
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
-DCONFIG_DIR=%{_sysconfdir}/hiawatha \
-DLOG_DIR=%{_localstatedir}/log/hiawatha \
-DPID_DIR=%{_localstatedir}/run \
-DWORK_DIR=%{_localstatedir}/cache/hiawatha \
-DWEBROOT_DIR=/srv/hiawatha/public \
-DENABLE_CACHE=on \
-DENABLE_DEBUG=off \
-DENABLE_IPV6=on \
-DENABLE_MONITOR=on \
-DENABLE_RPROXY=on \
-DENABLE_SSL=on \
-DENABLE_TOMAHAWK=on \
-DENABLE_TOOLKIT=on \
-DENABLE_XSLT=on \
-DUSE_SYSTEM_MBEDTLS=on
-- Looking for SO_ACCEPTFILTER - not found
CMake Warning at CMakeLists.txt:106 (message):
Make sure the mbed TLS shared library has been built with the
MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C flags set. Otherwise, it
may crash the Hiawatha webserver.
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
ENABLE_DEBUG
ENABLE_SSL
[ 68%] Building C object CMakeFiles/hiawatha.dir/src/xslt.c.o
Linking C executable hiawatha
/usr/bin/ld: CMakeFiles/hiawatha.dir/src/tls.c.o: undefined reference to symbol 'mbedtls_x509_crt_parse_file'
/usr/local/lib/libmbedx509.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hiawatha.dir/build.make:787: recipe for target 'hiawatha' failed
make[2]: *** [hiawatha] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/hiawatha.dir/all' failed
make[1]: *** [CMakeFiles/hiawatha.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
/usr/bin/ld: CMakeFiles/wigwam.dir/src/wigwam.c.o: undefined reference to symbol 'mbedtls_x509_crt_parse_file'
/usr/lib64/libmbedx509.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/wigwam.dir/build.make:285: recipe for target 'wigwam' failed
make[2]: *** [wigwam] Error 1
CMakeFiles/Makefile2:165: recipe for target 'CMakeFiles/wigwam.dir/all' failed
make[1]: *** [CMakeFiles/wigwam.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: CMakeFiles/hiawatha.dir/src/tls.c.o: undefined reference to symbol 'mbedtls_x509_crt_parse_file'
/usr/lib64/libmbedx509.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hiawatha.dir/build.make:787: recipe for target 'hiawatha' failed
make[2]: *** [hiawatha] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/hiawatha.dir/all' failed
make[1]: *** [CMakeFiles/hiawatha.dir/all] Error 2
cmake -DCMAKE_INSTALL_PREFIX="" \
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
-DCMAKE_INSTALL_SBINDIR=%{_sbindir} \
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
-DCONFIG_DIR=%{_sysconfdir}/hiawatha \
-DLOG_DIR=%{_localstatedir}/log/hiawatha \
-DPID_DIR=%{_localstatedir}/run \
-DWORK_DIR=%{_localstatedir}/cache/hiawatha \
-DWEBROOT_DIR=/srv/hiawatha/public \
-DENABLE_CACHE=on \
-DENABLE_IPV6=on \
-DENABLE_MONITOR=on \
-DENABLE_RPROXY=on \
-DENABLE_TLS=on \
-DENABLE_TOMAHAWK=on \
-DENABLE_TOOLKIT=on \
-DENABLE_XSLT=on \
-DUSE_SYSTEM_MBEDTLS=on
[root@f22-32bit ~]# locate libmbedx509
/usr/lib/libmbedx509.a
/usr/lib/libmbedx509.so
/usr/lib/libmbedx509.so.0
/usr/lib/libmbedx509.so.2.0.0
[root@f22-32bit ~]# locate libmbedcrypto.a
/usr/lib/libmbedcrypto.a
[root@f22-32bit ~]# locate libmbedtls
/usr/lib/libmbedtls.a
/usr/lib/libmbedtls.so
/usr/lib/libmbedtls.so.10
/usr/lib/libmbedtls.so.2.0.0
[ 72%] Building C object CMakeFiles/hiawatha.dir/src/log.c.o
Linking C executable wigwam
/usr/bin/ld: CMakeFiles/wigwam.dir/src/wigwam.c.o: undefined reference to symbol 'mbedtls_x509_crt_parse_file'
/lib/libmbedx509.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/wigwam.dir/build.make:285: recipe for target 'wigwam' failed
make[2]: *** [wigwam] Error 1
CMakeFiles/Makefile2:165: recipe for target 'CMakeFiles/wigwam.dir/all' failed
make[1]: *** [CMakeFiles/wigwam.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 74%] Building C object CMakeFiles/hiawatha.dir/src/memdbg.c.o
[ 76%] [ 78%] Building C object CMakeFiles/hiawatha.dir/src/mimetype.c.o
Building C object CMakeFiles/hiawatha.dir/src/monitor.c.o
[ 80%] Building C object CMakeFiles/hiawatha.dir/src/rproxy.c.o
[ 82%] Building C object CMakeFiles/hiawatha.dir/src/send.c.o
[ 84%] Building C object CMakeFiles/hiawatha.dir/src/serverconfig.c.o
[ 86%] Building C object CMakeFiles/hiawatha.dir/src/session.c.o
[ 88%] Building C object CMakeFiles/hiawatha.dir/src/tls.c.o
[ 90%] Building C object CMakeFiles/hiawatha.dir/src/target.c.o
[ 92%] Building C object CMakeFiles/hiawatha.dir/src/tomahawk.c.o
[ 94%] Building C object CMakeFiles/hiawatha.dir/src/toolkit.c.o
[ 96%] [ 98%] Building C object CMakeFiles/hiawatha.dir/src/userconfig.c.o
Building C object CMakeFiles/hiawatha.dir/src/workers.c.o
[100%] Building C object CMakeFiles/hiawatha.dir/src/xslt.c.o
Linking C executable hiawatha
/usr/bin/ld: CMakeFiles/hiawatha.dir/src/tls.c.o: undefined reference to symbol 'mbedtls_x509_crt_parse_file'
/lib/libmbedx509.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hiawatha.dir/build.make:787: recipe for target 'hiawatha' failed
make[2]: *** [hiawatha] Error 1
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/hiawatha.dir/all' failed
make[1]: *** [CMakeFiles/hiawatha.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.mkOAFJ (%build)