[Klone-users] Size of kloned

Stefano Barbato barbato at koanlogic.com
Fri Aug 22 04:03:31 EDT 2008


Hi Steven,

I think it is just a configure bug that displays unclear messages  
(i.e. it writes "searching for optional lib feature xyz" but doesn't  
look for it if --disable-lib=xyz is given).

To be sure about that you can take a look to the variables generated  
by that configure script (in klone-2.1.1rc10/build/target/klone- 
core-2.1.1rc10/Makefile.conf) and check that LIBOPENSSL_CFLAGS and  
LIBOPENSSL_LDFLAGS are not defined.

Note also that the configure script is run twice, once for the host  
platform and once for the target platform so you'll see two (possibly  
different) configure outputs. Host related variables are in  
klone-2.1.1rc10/build/host/klone-core-2.1.1rc10/Makefile.conf.

Bye,
s



On 21/ago/08, at 21:58, Steven Van Ingelgem wrote:

>
> I have an issue again with this disabling of OpenSSL...
>
> I am cross compiling, but klone seems to be taking my host system  
> include directory.
>
> you can easily check it by checking out the OpenWRT trunk & trying  
> to compile KLone in there with the following changes to the default  
> makefile:
> KLONE_CONF_ARGS ?= --disable_cxx --install_daemon_only --prefix=/usr  
> --disable-lib=openssl
>
> This will say the following:
> adding optional lib dependency openssl
> adding optional lib dependency openssl_psk
> adding optional lib dependency z
> ... snip ...
> checking dependencies
> searching for optional lib feature openssl
> searching for optional lib feature openssl_psk
> searching for optional lib feature z
> [wrn] could not find optional dependency 'openssl_psk'
>
>
> It shouldn't be able to find openssl! OpenWRT hasn't compiled it in,  
> and as I'm cross compiling, I don't want KLone to be linked against  
> i386 libs when it needs to run on an ARM processor... That will  
> surely give troubles.
>
>
> What can I do to prevent this or should I wait for rc11?
>
>
> Thx,
> Steven
>
>
> 2008/6/5 Stefano Barbato <barbato at koanlogic.com>
> Hello Steven,
>
> on a Mac/x86 with gcc 4.0.1 this is the Makefile that produces the  
> smallest daemon (149372 bytes using the default, unmodified, source  
> code):
>
> ---[ Makefile ]---
> KLONE_VERSION = 2.1.1rc7
>
> KLONE_CONF_ARGS = --disable-lib=openssl --disable_cxx
>
> WEBAPP_DIR = $(CURDIR)/webapp
>
> WEBAPP_CFLAGS += -Os
> CFLAGS += -Os
>
> include klapp.mk
>
> klapp.mk: ;wget -O $@ -c http://koanlogic.com/klone/klapp-2.0.0.mk
> -------------------
>
> bye,
> s
>
>
>
>
> On 05/giu/08, at 14:57, Steven Van Ingelgem wrote:
>
> Hi,
>
>
> Is there a way to bring down the size of the kloned executable?  
> Right now I got it down to 181k, but can there be added some  
> parameters to the configure command to make it even smaller?
> Does it 'strip' itselves after the compile finishes up?
>
> Is it possible that I got it down to 386 bytes after running strip  
> on it? ["mipsel-linux-strip kloned" to be correct]
>
> I can't test it right now, but I just was wondering about it...
>
>
> Thanks :)
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users





More information about the klone-users mailing list