Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Adding stunnel
@ 2011-03-15 10:13 bruce bushby
       [not found] ` <351790.51583.qm@web29602.mail.ird.yahoo.com>
  0 siblings, 1 reply; 3+ messages in thread
From: bruce bushby @ 2011-03-15 10:13 UTC (permalink / raw)
  To: buildroot

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/d5c9f6e3/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-15 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 10:13 [Buildroot] Adding stunnel bruce bushby
     [not found] ` <351790.51583.qm@web29602.mail.ird.yahoo.com>
2011-03-15 10:38   ` bruce bushby
2011-03-15 22:48     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox