<div><br></div><div>Thanks Michael!!!</div><div><br></div><div>For now I think I got it compiled and installed by adding additional paths to my configure options:</div><div><div>STUNNEL_CONF_OPT = \</div><div>        --with-shared \</div>
<div>        --with-ssl=$(STAGING_DIR)/usr \</div><div>        --with-libssl-prefix=$(STAGING_DIR)/usr \</div><div>        --without-debug</div><div><br></div><div>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.</div>
<div><br></div><div><br></div><div><br></div></div><br><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 10:27 AM, Michael Trimarchi <span dir="ltr"><<a href="mailto:trimarchimichael@yahoo.it">trimarchimichael@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:times new roman,new york,times,serif;font-size:10pt"><div>Hi<br><br>you need to have in output target and not in host<br>
<br>Michael<br></div><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><div style="font-family:times new roman,new york,times,serif;font-size:10pt"><br><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<font size="2" face="Tahoma"><b><span style="font-weight:bold">Da:</span></b> bruce bushby <<a href="mailto:bruce.bushby@gmail.com" target="_blank">bruce.bushby@gmail.com</a>><br><b><span style="font-weight:bold">A:</span></b> <a href="mailto:buildroot@busybox.net" target="_blank">buildroot@busybox.net</a><br>
<b><span style="font-weight:bold">Inviato:</span></b> Mar 15 marzo 2011, 11:13:49<br><b><span style="font-weight:bold">Oggetto:</span></b> [Buildroot] Adding stunnel<br></font><div><div></div><div class="h5"><br>Hi<div><br>
</div><div>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.</div><div><br></div><div><br></div>
<div>This is my very basic <a rel="nofollow" href="http://stunnel.mk" target="_blank">stunnel.mk</a> :</div><div><div>#############################################################</div><div>#</div><div># stunnel</div><div>
#</div><div>#############################################################</div>
<div><br></div><div># TARGETS</div><div>STUNNEL_VERSION = 4.35</div><div>STUNNEL_SOURCE = stunnel-$(STUNNEL_VERSION).tar.gz</div><div>STUNNEL_SITE = <a rel="nofollow" href="ftp://ftp.nluug.nl/pub/networking/stunnel" target="_blank">ftp://ftp.nluug.nl/pub/networking/stunnel</a></div>

<div><br></div><div>STUNNEL_AUTORECONF = yes</div><div><br></div><div>STUNNEL_INSTALL_STAGING = YES</div><div>STUNNEL_INSTALL_TARGET = YES</div><div>STUNNEL_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install</div><div>
STUNNEL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install</div>
<div><br></div><div>STUNNEL_DEPENDENCIES += openssl</div><div><br></div><div>STUNNEL_CONF_OPT = \</div><div>        --with-shared \</div><div>        --with-ssl=$(TARGET_DIR) \                    <--------------------- I think this is my problem...but not sure what "DIR" I should use?</div>

<div>        --with-libssl-prefix=$(STAGING_DIR)         <---------------------------------------</div><div><br></div><div>$(eval $(call AUTOTARGETS,package,stunnel))</div><div>$(eval $(call AUTOTARGETS,package,stunnel,host))</div>

</div><div><br></div><div><br></div><div><br></div><div><br></div><div>However, when I run "make stunnel" it complains:</div><div><br></div><div><div>checking for SSL directory... Not found</div><div><br></div>
<div>
Couldn't find your SSL library installation dir</div><div>Use --with-ssl option to fix this problem</div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>I have included openssl in my build and when I boot the resulting OS, openssl is there and it works. </div>

<div><br></div><div>The stunnel "ssl configure check" is as follows:</div><div><div>".....if test -f "$1/include/openssl/ssl.h"</div><div>           then $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h...."</div>

</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>And my build definitely has ssl:</div><div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.so</div><div>
./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.so.1.0.0</div>
<div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/pkgconfig/libssl.pc</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/pkgconfig/openssl.pc</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libssl.a</div>

<div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/bin/openssl</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl.h</div>

<div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl2.h</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/opensslv.h</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl23.h</div>

<div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/opensslconf.h</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/kssl.h</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ssl3.h</div>

<div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/openssl/ossl_typ.h</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/etc/ssl</div><div>./output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/etc/ssl/<a rel="nofollow" href="http://openssl.cn" target="_blank">openssl.cn</a></div>

</div><div><br></div><div><br></div><div><br></div><div>I'm guessing my stunnel configure is failing because I'm confused about STAGING_DIR and TARGET_DIR</div><div><br></div><div>Have I missed another obvious? :)</div>

<div><br></div><div><br></div><div><br></div><div><br></div>
</div></div></div></div></blockquote>
</div><br>



      </div></blockquote></div><br>