ssl/ssl_stream.h:26:25: openssl/ssl.h: No such file or directory - problems compiling wsfc

matt.friedman.gmail.com's picture
Hi, I am having a very hard time compiling the wsfc library. I would very much appreciate some help. I've pasted in a bunch of the output of make below. Configure runs without any problems. Here is a snippet where the error occurs: In file included from http_client.c:32: ssl/ssl_stream.h:26:25: openssl/ssl.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `http_client.lo' I have openssl in a non-standard directory. All of the Makefiles appear to point to the correct directory. Here is my configure line: ./configure --prefix=/home/appuser/xmc/wsfc \ --with-openssl=/home/appuser/xmc/openssl This is the version I'm compiling: wso2-wsf-c-src-2.0.0 Some output from make, including the error... /core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT http_sender.lo -MD -MP -MF .deps/http_sender.Tpo -c -o http_sender.lo http_sender.c gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include -I../../../../../src/core/transport -I../../../../../src/core/transport/http -I../../../../../src/core/transport/http/sender/libcurl -I../../../../../src/core/description -I../../../../../src/core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT http_sender.lo -MD -MP -MF .deps/http_sender.Tpo -c http_sender.c -fPIC -DPIC -o .libs/http_sender.o gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include -I../../../../../src/core/transport -I../../../../../src/core/transport/http -I../../../../../src/core/transport/http/sender/libcurl -I../../../../../src/core/description -I../../../../../src/core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT http_sender.lo -MD -MP -MF .deps/http_sender.Tpo -c http_sender.c -o http_sender.o >/dev/null 2>&1 mv -f .deps/http_sender.Tpo .deps/http_sender.Plo /bin/bash ../../../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include -I../../../../../src/core/transport -I../../../../../src/core/transport/http -I../../../../../src/core/transport/http/sender/libcurl -I../../../../../src/core/description -I../../../../../src/core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT http_client.lo -MD -MP -MF .deps/http_client.Tpo -c -o http_client.lo http_client.c gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include -I../../../../../src/core/transport -I../../../../../src/core/transport/http -I../../../../../src/core/transport/http/sender/libcurl -I../../../../../src/core/description -I../../../../../src/core/context -I../../../../../src/core/phaseresolver -I../../../../../src/core/engine -I../../../../../src/core/deployment -I../../../../../util/include -I../../../../../axiom/include -g -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_SVR_MULTI_THREADED -DAXIS2_SSL_ENABLED -MT http_client.lo -MD -MP -MF .deps/http_client.Tpo -c http_client.c -fPIC -DPIC -o .libs/http_client.o In file included from http_client.c:32: ssl/ssl_stream.h:26:25: openssl/ssl.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `http_client.lo' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src/core/transport/http/sender *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='ssl libcurl'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src/core/transport/http/sender *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='sender receiver server'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src/core/transport/http *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='http '; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src/core/transport *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='addr context description phaseresolver receivers util clientapi deployment transport/http/util transport/http/common engine transport'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src/core *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='core modules'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c/src *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='util guththila axiom neethi src include ides tools/tcpmon'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c *** Error code 1 make: Fatal error: Command failed for target `all' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0/axis2c *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='axis2c sandesha2c rampartc savanc wsclient'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0 *** Error code 1 make: Fatal error: Command failed for target `all' appuser@edpapd109:/home/appuser/xmc/php-build/wso2-wsf-c-src-2.0.0 $
nandika's picture

Re

Check whether you have the openssl headers in the location you have pointed with --with-openssl ? I guess there could be an issue. if the with value is not specified, configure script will look for the /usr/include/openssl. Regards Nandika
matt.friedman.gmail.com's picture

openssl headers are there

appuser@edpapd109:/home/appuser/xmc/openssl $ ls include/openssl/ aes.h des.h idea.h pem2.h ssl23.h asn1_mac.h dh.h krb5_asn.h pkcs12.h ssl3.h asn1.h dsa.h kssl.h pkcs7.h stack.h asn1t.h dso.h lhash.h pq_compat.h store.h bio.h dtls1.h md2.h pqueue.h symhacks.h blowfish.h e_os2.h md4.h rand.h tls1.h bn.h ebcdic.h md5.h rc2.h tmdiff.h buffer.h ec.h obj_mac.h rc4.h txt_db.h cast.h ecdh.h objects.h ripemd.h ui_compat.h comp.h ecdsa.h ocsp.h rsa.h ui.h conf_api.h engine.h opensslconf.h safestack.h x509_vfy.h conf.h err.h opensslv.h sha.h x509.h crypto.h evp.h ossl_typ.h ssl.h x509v3.h des_old.h hmac.h pem.h ssl2.h appuser@edpapd109:/home/appuser/xmc/openssl $
pixelchutes's picture

--with-openssl does not work correctly

@nandika, The --with-openssl WSF/PHP configure option does not work as intended. It should work, but unfortunately Rampart never receives the parameters from the main "configure" when using "--with-openssl". Further, "--with-openssl" does not show up as a valid "configure" option, even though it clearly exists within the code. The ultimate solution in our case was to solve using CFLAGS: export CFLAGS="-I/usr/local/ssl/include/ -L/usr/local/ssl/lib/" NOTE: Your OpenSSL path may vary. (Notice the -I for Include, and -L for Libs) Ideally, however, --with-openssl=/usr/local/ssl should have worked, but Rampart's configure is currently only successful via the CFLAGS method.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)