[stunnel-users] Stunnel Install error on Solaris10 X86

Norm Jacobs norm.jacobs at oracle.com
Fri Mar 7 19:19:15 CET 2014


I'm going to guess that you need to add '--with-ssl=/usr/sfw' to your 
configure line to tell it where OpenSSL is installed.

I just pulled down a copy of 4.56, unpacked, built and installed it on 
an S10 x86 system.  My PATH has /usr/bin:/usr/ccs/bin:/usr/sfw/bin in it 
and the system has the following OpenSSL packages installed: 
SUNWopensslr, SUNWopenssl-commands, SUNWopenssl-include, 
SUNWopenssl-libraries, SUNWopenssl-man

    $ gtar zxf stunnel-4.56.tar.gz

    $ cd stunnel-4.56

    $ ./configure --prefix=/tmp/stunnel-4.56 --with-ssl=/usr/sfw

             [snip]

    configure: **************************************** SSL
    checking for SSL directory... /usr/sfw
    checking /usr/sfw/include/openssl/engine.h usability... yes
    checking /usr/sfw/include/openssl/engine.h presence... yes
    checking for /usr/sfw/include/openssl/engine.h... yes
    checking /usr/sfw/include/openssl/ocsp.h usability... yes
    checking /usr/sfw/include/openssl/ocsp.h presence... yes
    checking for /usr/sfw/include/openssl/ocsp.h... yes
    checking /usr/sfw/include/openssl/fips.h usability... no
    checking /usr/sfw/include/openssl/fips.h presence... no
    checking for /usr/sfw/include/openssl/fips.h... no
    configure: WARNING: OpenSSL fips header not found
    checking for FIPS_mode_set... no
    configure: FIPS mode not detected

             [snip]

    $ gmake

    	[snip]

    $ gmake install

    	[snip]

    Making install in tools
    gmake[1]: Entering directory `/builds/jacobs/stunnel/stunnel-4.56/tools'
    gmake[2]: Entering directory `/builds/jacobs/stunnel/stunnel-4.56/tools'
    gmake[2]: Nothing to be done for `install-exec-am'.
    test -z "/tmp/stunnel-4.56/etc/stunnel" || ../auto/install-sh -c -d "/tmp/stunne
    l-4.56/etc/stunnel"
      ../auto/install-sh -c -m 644 stunnel.conf-sample '/tmp/stunnel-4.56/etc/stunnel
    '
    if test ! -r /tmp/stunnel-4.56/etc/stunnel/stunnel.pem; then \
             if test -r "/dev/urandom"; then \
                     dd if="/dev/urandom" of=stunnel.rnd bs=256 count=1; \
                     RND="-rand stunnel.rnd"; \
             else \
                     RND=""; \
             fi; \
             /usr/sfw/bin/openssl req -new -x509 -days 365 $RND \
                     -config ./stunnel.cnf \
                     -out stunnel.pem -keyout stunnel.pem; \
             /usr/sfw/bin/openssl gendh $RND 1024 >> stunnel.pem; \
             /usr/sfw/bin/openssl x509 -subject -dates -fingerprint -noout -in stunne
    l.pem; \
             ../auto/install-sh -c -m 600 stunnel.pem /tmp/stunnel-4.56/etc/stunnel/s
    tunnel.pem; \
             rm stunnel.pem; \
    fi
    1+0 records in
    1+0 records out
    Generating a 2048 bit RSA private key
    ...............+++
    .........+++
    writing new private key to 'stunnel.pem'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank

    	[snip]

Hope this helps.

     -Norm



On 03/ 4/14 07:03 AM, Ashok Kumar G wrote:
>
> Hi,
>
> I am trying to install stunnel-4.56 on my Solaris10 server. configure 
> step completed successfully. But make and make install commands failed 
> miserably.
>
> # gzip -dc stunnel-3.8.tar.gz | tar -xvf -
>
> # cd stunnel-3.8
>
> # ./configure
>
> bash-3.00# make
>
> bash: make: command not found
>
> bash-3.00# export PATH=/usr/ccs/bin
>
> bash-3.00# make
>
> bash: line 8: sed: command not found
>
> *** Error code 127
>
> The following command caused the error:
>
> fail= 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='src doc tools'; 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; \
>
> (CDPATH="${ZSH_VERSION+.}:" && 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'
>
> bash-3.00# make install
>
> bash: line 8: sed: command not found
>
> *** Error code 127
>
> The following command caused the error:
>
> fail= failcom='exit 1'; \
>
> for f in x $MAKEFLAGS; do \
>
>   case $f in \
>
>     *=* | --[!k]*);; \
>
>     *k*) failcom='fail=yes';; \
>
>   esac; \
>
> done; \
>
> dot_seen=no; \
>
> target=`echo install-recursive | sed s/-recursive//`; \
>
> list='src doc tools'; 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; \
>
> (CDPATH="${ZSH_VERSION+.}:" && 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 `install-recursive'
>
> bash-3.00#
>
> bash-3.00#
>
> bash-3.00# echo $PATH
>
> /usr/ccs/bin
>
> =========================================================
>
> *2nd Try:*
>
> =========================================================
>
> bash-3.00# echo $PATH
>
> /usr/sbin:/usr/bin
>
> bash-3.00# PATH=$PATH:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin
>
> bash-3.00# LD_LIBARAY_PATH=/lib:/usr/lib:/usr/local/lib
>
> bash-3.00# cd /opt/softwares/stunnel-4.56
>
> bash-3.00# make
>
> Making all in src
>
> make  all-am
>
> Making all in doc
>
> Making all in tools
>
> bash-3.00# make install
>
> Making install in src
>
> test -z "/usr/local/bin" || ../auto/install-sh -c -d "/usr/local/bin"
>
>   /bin/bash ../libtool   --mode=install ../auto/install-sh -c stunnel 
> '/usr/local/bin'
>
> libtool: install: ../auto/install-sh -c stunnel /usr/local/bin/stunnel
>
> test -z "/usr/local/bin" || ../auto/install-sh -c -d "/usr/local/bin"
>
> ../auto/install-sh -c stunnel3 '/usr/local/bin'
>
> test -z "/usr/local/lib/stunnel" || ../auto/install-sh -c -d 
> "/usr/local/lib/stunnel"
>
> /bin/bash ../libtool --mode=install ../auto/install-sh -c 
> libstunnel.la <http://libstunnel.la> '/usr/local/lib/stunnel'
>
> libtool: install: ../auto/install-sh -c .libs/libstunnel.so 
> /usr/local/lib/stunnel/libstunnel.so
>
> libtool: install: chmod +x /usr/local/lib/stunnel/libstunnel.so
>
> libtool: install: ../auto/install-sh -c .libs/libstunnel.lai 
> /usr/local/lib/stunnel/libstunnel.la <http://libstunnel.la>
>
> ----------------------------------------------------------------------
>
> Libraries have been installed in:
>
> /usr/local/lib/stunnel
>
> If you ever happen to want to link against installed libraries
>
> in a given directory, LIBDIR, you must either use libtool, and
>
> specify the full pathname of the library, or use the `-LLIBDIR'
>
> flag during linking and do at least one of the following:
>
>    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>
>      during execution
>
>    - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
>
> more information, such as the ld(1) and ld.so(8) manual pages.
>
> ----------------------------------------------------------------------
>
> Making install in doc
>
> test -z "/usr/local/share/doc/stunnel" || ../auto/install-sh -c -d 
> "/usr/local/share/doc/stunnel"
>
> ../auto/install-sh -c -m 644 stunnel.html stunnel.pl.html 
> stunnel.fr.html '/usr/local/share/doc/stunnel'
>
> test -z "/usr/local/share/man/man8" || ../auto/install-sh -c -d 
> "/usr/local/share/man/man8"
>
> ../auto/install-sh -c -m 644 stunnel.8 stunnel.pl.8 stunnel.fr.8 
> '/usr/local/share/man/man8'
>
> Making install in tools
>
> test -z "/usr/local/etc/stunnel" || ../auto/install-sh -c -d 
> "/usr/local/etc/stunnel"
>
> ../auto/install-sh -c -m 644 stunnel.conf-sample '/usr/local/etc/stunnel'
>
> if test ! -r /usr/local/etc/stunnel/stunnel.pem; then \
>
>         if test -r "/dev/urandom"; then \
>
>                 dd if="/dev/urandom" of=stunnel.rnd bs=256 count=1; \
>
> RND="-rand stunnel.rnd"; \
>
>         else \
>
>                 RND=""; \
>
>         fi; \
>
> /usr//bin/openssl req -new -x509 -days 365 $RND \
>
>                 -config ./stunnel.cnf \
>
>                 -out stunnel.pem -keyout stunnel.pem; \
>
> /usr//bin/openssl gendh $RND 1024 >> stunnel.pem; \
>
> /usr//bin/openssl x509 -subject -dates -fingerprint -noout -in 
> stunnel.pem; \
>
> ../auto/install-sh -c -m 600 stunnel.pem 
> /usr/local/etc/stunnel/stunnel.pem; \
>
>         rm stunnel.pem; \
>
> fi
>
> 1+0 records in
>
> 1+0 records out
>
> bash: line 7: /usr//bin/openssl: No such file or directory
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `install-data-local'
>
> Current working directory /opt/softwares/stunnel-4.56/tools
>
> *** Error code 1
>
> The following command caused the error:
>
> make install-exec-am install-data-am
>
> make: Fatal error: Command failed for target `install-am'
>
> Current working directory /opt/softwares/stunnel-4.56/tools
>
> *** Error code 1
>
> The following command caused the error:
>
> fail= failcom='exit 1'; \
>
> for f in x $MAKEFLAGS; do \
>
> case $f in \
>
> *=* | --[!k]*);; \
>
> *k*) failcom='fail=yes';; \
>
> esac; \
>
> done; \
>
> dot_seen=no; \
>
> target=`echo install-recursive | sed s/-recursive//`; \
>
> list='src doc tools'; 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; \
>
> (CDPATH="${ZSH_VERSION+.}:" && 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 `install-recursive'
>
> bash-3.00#
>
>
> Can someone please help to resolve the above error.
>
> Thanks,
>
> Ashok Kumar G
>
>
>
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20140307/61ad2c8a/attachment.html>


More information about the stunnel-users mailing list