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

* [Buildroot] Adding stunnel
       [not found] ` <351790.51583.qm@web29602.mail.ird.yahoo.com>
@ 2011-03-15 10:38   ` bruce bushby
  2011-03-15 22:48     ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: bruce bushby @ 2011-03-15 10:38 UTC (permalink / raw)
  To: buildroot

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@yahoo.it> wrote:

> Hi
>
> you need to have in output target and not in host
>
> Michael
>
>
> *Da:* bruce bushby <bruce.bushby@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.html>

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

* [Buildroot] Adding stunnel
  2011-03-15 10:38   ` bruce bushby
@ 2011-03-15 22:48     ` Thomas Petazzoni
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2011-03-15 22:48 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 15 Mar 2011 10:38:00 +0000
bruce bushby <bruce.bushby@gmail.com> wrote:

> 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.

I haven't looked at stunnel precisely, but the paths you're passing are
correct.

The best would be to post a proper patch that adds stunnel so that we
can review/comment the whole thing, and integrate it into Buildroot.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ 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