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

matt.friedman.gmail.com's picture
(This is a cross-post, sorry but I got no response elsewhere and this forum seems more appropriate.) Update: I've now tried this with openssl in /usr/local/ssl and still I get the same problem. Also, I'm on Solaris10 if that makes a difference. 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:

This seems to be a bug in the current build system. It does not seem to handle the with-openssl option properly. I will raise a jira issue for this. Thanks Nandika
matt.friedman.gmail.com's picture

Hi Nandika, Thanks for

Hi Nandika, Thanks for letting me know. Can you please update this thread if the bug gets fixed? Many thanks, Matt
sanjaya's picture

Where's your openssl include

Where's your openssl include directory. Is it /home/appuser/xmc/openssl/include or /home/appuser/xmc/openssl/include/openssl I've done a change in trunk. If headers are in /home/appuser/xmc/openssl/include/openssl now it should work. Thanks ~sanjaya
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)