[Buildroot] Adding stunnel

bruce bushby bruce.bushby at gmail.com
Tue Mar 15 10:38:00 UTC 2011


Thanks Michael!!!

For now I think I got it compiled and installed by adding additional paths
to my configure options:
STUNNEL_CONF_OPT = \
        --with-shared \
        --with-ssl=$(STAGING_DIR)/usr \
        --with-libssl-prefix=$(STAGING_DIR)/usr \
        --without-debug

Although I'm sure it's not the "buildroot way"...I'll have to read a bit
more on adding packages....I've been lazy in this area.





On Tue, Mar 15, 2011 at 10:27 AM, Michael Trimarchi <
trimarchimichael at yahoo.it> wrote:

> Hi
>
> you need to have in output target and not in host
>
> Michael
>
>
> *Da:* bruce bushby <bruce.bushby at gmail.com>
> *A:* buildroot at busybox.net
> *Inviato:* Mar 15 marzo 2011, 11:13:49
> *Oggetto:* [Buildroot] Adding stunnel
>
> Hi
>
> I noticed stunnel appears to have gained some new life and I wanted to test
> it.....but I'm having some trouble configuring the package to locate the SSL
> library.
>
>
> This is my very basic stunnel.mk :
> #############################################################
> #
> # stunnel
> #
> #############################################################
>
> # TARGETS
> STUNNEL_VERSION = 4.35
> STUNNEL_SOURCE = stunnel-$(STUNNEL_VERSION).tar.gz
> STUNNEL_SITE = ftp://ftp.nluug.nl/pub/networking/stunnel
>
> STUNNEL_AUTORECONF = yes
>
> STUNNEL_INSTALL_STAGING = YES
> STUNNEL_INSTALL_TARGET = YES
> STUNNEL_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
> STUNNEL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
>
> STUNNEL_DEPENDENCIES += openssl
>
> STUNNEL_CONF_OPT = \
>         --with-shared \
>         --with-ssl=$(TARGET_DIR) \
>  <--------------------- I think this is my problem...but not sure what "DIR"
> I should use?
>         --with-libssl-prefix=$(STAGING_DIR)
> <---------------------------------------
>
> $(eval $(call AUTOTARGETS,package,stunnel))
> $(eval $(call AUTOTARGETS,package,stunnel,host))
>
>
>
>
> However, when I run "make stunnel" it complains:
>
> checking for SSL directory... Not found
>
> Couldn't find your SSL library installation dir
> Use --with-ssl option to fix this problem
>
>
>
>
>
> I have included openssl in my build and when I boot the resulting OS,
> openssl is there and it works.
>
> The stunnel "ssl configure check" is as follows:
> ".....if test -f "$1/include/openssl/ssl.h"
>            then $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h...."
>
>
>
>
>
> And my build definitely has ssl:
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.so
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.so.1.0.0
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/pkgconfig/libssl.pc
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/pkgconfig/openssl.pc
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.a
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/bin/openssl
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl2.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/opensslv.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl23.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/opensslconf.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/kssl.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl3.h
>
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ossl_typ.h
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/etc/ssl
> ./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/etc/ssl/
> openssl.cn
>
>
>
> I'm guessing my stunnel configure is failing because I'm confused about
> STAGING_DIR and TARGET_DIR
>
> Have I missed another obvious? :)
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110315/033465e1/attachment-0002.html>


More information about the buildroot mailing list