I am trying to install it on a Solaris 10 system. I was getting an error during the "make" step when trying to install libmicrohttpd-0.9.59. The error is "make[3]: *** [libmicrohttpd.la] Error 1". When I re-installed this morning, I did not get the error, but one of the 'check' tests failed, so I will send you this description of my installation in case there is an issue with the test. I saved all the commands and the output to the console if that would be of any value. Thank you for looking at this.
Regards, Jim Marek Here is what I have done. 1) Download libmicrohttpd-0.9.59.tar.gz from https://ftp.gnu.org/gnu/libmicrhttpd to my home directory on the Solaris 10 system. 2) Run gunzip libmicrohttpd-0.9.59.tar.gz 3) Switch to root user and cd to /usr/local 4) Create a directory named libmicrohttpd-0.9.59 and a soft link to it named libmicrohttpd. 5) Change the owner of libmicrohttpd* to the administrative user. 6) Switch to the admin user account. 7) Change to the /usr/local directory 8) Run tar -xvf ~jimarek/libmicrohttpd-0.9.59.tar, which completed without errors. 9) Change to the directory libmicrohttpd and follow the instructions in the INSTALL file. 1) 'cd' to the directory containing the package's source code [I'm already there] and type './configure' to configure the package for your system. The Summary reports: configure: GNU libmicrohttpd 0.9.59 Configuration Summary: Target directory: /usr/local Cross-compiling: no Operating System: solaris2.10 Shutdown of listening socket trigger select: no Inter-thread comm: pipe poll support: yes epoll support: no sendfile used: yes, Solaris-style HTTPS support: no (lacking libgnutls) Threading lib: posix Use thread names: no Use debug asserts: no Messages: yes Basic auth.: yes Digest auth.: yes HTTP "Upgrade": yes Postproc: yes Build docs: yes Build examples: yes Test with libcurl: no, many unit tests will not run configure: License : LGPL or eCos 2) Type 'make' to compile the package. Every call to gcc reported "gcc: unrecognized option `-pthread'". I think this is because the default gcc is an old version (3.4.3). There is a newer version in /opt/csw/bin (4.9.2). Put /opt/csw/bin at the beginning of PATH and run 'make clean', then 'make' again. It seemed to work! I must have done something wrong yesterday because this is where the error occurred. 3) Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. This generated the results: PASS: test_str_compare PASS: test_str_to_value PASS: test_str_token PASS: test_http_reasons PASS: test_start_stop PASS: test_daemon FAIL: test_options PASS: test_upgrade PASS: test_postprocessor PASS: test_postprocessor_large PASS: test_postprocessor_amp PASS: test_shutdown_select_ignore PASS: test_shutdown_poll_ignore ============================================================================ Testsuite summary for GNU Libmicrohttpd 0.9.59 ============================================================================ # TOTAL: 13 # PASS: 12 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See src/microhttpd/test-suite.log Please report to libmicrohttpd@gnu.org ============================================================================ make[4]: *** [test-suite.log] Error 1 make[4]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/microhttpd' make[3]: *** [check-TESTS] Error 2 make[3]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/microhttpd' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/microhttpd' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src' make: *** [check-recursive] Error 1 The log file contained: ============================================================= GNU Libmicrohttpd 0.9.59: src/microhttpd/test-suite.log ============================================================= # TOTAL: 13 # PASS: 12 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: test_options ================== Failed to bind to port 0: Cannot assign requested address running test: ip addr option [fail] FAIL test_options (exit status: 1) 4) Type 'make install' to install the programs and any data files and documentation. Run 'su', then 'make install'. It seemed to finish without errors. 5) Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. Type 'exit' to return to the admin user account and run ''make installcheck', which did not seem to do much. > make installcheck Making installcheck in contrib make[1]: Entering directory `/usr/local/libmicrohttpd-0.9.59/contrib' make[1]: Nothing to be done for `installcheck'. make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/contrib' Making installcheck in m4 make[1]: Entering directory `/usr/local/libmicrohttpd-0.9.59/m4' make[1]: Nothing to be done for `installcheck'. make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/m4' Making installcheck in src make[1]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src' Making installcheck in include make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src/include' Making installcheck in . make[3]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src/include' make[3]: Nothing to be done for `installcheck-am'. make[3]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/include' make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/include' Making installcheck in microhttpd make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src/microhttpd' make[2]: Nothing to be done for `installcheck'. make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/microhttpd' Making installcheck in . make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src' make[2]: Nothing to be done for `installcheck-am'. make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src' Making installcheck in examples make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src/examples' Making installcheck in . make[3]: Entering directory `/usr/local/libmicrohttpd-0.9.59/src/examples' make[3]: Nothing to be done for `installcheck-am'. make[3]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/examples' make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src/examples' make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/src' Making installcheck in . make[1]: Entering directory `/usr/local/libmicrohttpd-0.9.59' make[1]: Nothing to be done for `installcheck-am'. make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59' Making installcheck in doc make[1]: Entering directory `/usr/local/libmicrohttpd-0.9.59/doc' Making installcheck in . make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/doc' make[2]: Nothing to be done for `installcheck-am'. make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/doc' Making installcheck in doxygen make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/doc/doxygen' make[2]: Nothing to be done for `installcheck'. make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/doc/doxygen' Making installcheck in examples make[2]: Entering directory `/usr/local/libmicrohttpd-0.9.59/doc/examples' Making installcheck in . make[3]: Entering directory `/usr/local/libmicrohttpd-0.9.59/doc/examples' make[3]: Nothing to be done for `installcheck-am'. make[3]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/doc/examples' make[2]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/doc/examples' make[1]: Leaving directory `/usr/local/libmicrohttpd-0.9.59/doc' Why are there so many messages saying "Making installcheck in ."? 6) You can remove the program binaries and object files from the source code directory by typing 'make clean'. This deleted about 4.5 MB of files. 10) After properly configuring a Makefile, I compiled and ran 'hellobrowser', which performed as expected. Hooray!!