<div dir="ltr">Now I see it... It first is compiling the host... Where openssl is installed... Afterwards it'll try to compile the target, where openssl is NOT installed, and thus not taken :).<br>Sorry for the mixup.<br>
<br><br>Just noticed some warnings during compilation:<br><br>**HOST**<br>toolbox/log.c: In function 'u_strerror_r':<br>
toolbox/log.c:247: warning: cast from pointer to integer of different size<br>toolbox/log.c:257: warning: cast to pointer from integer of different size<br><br>toolbox/pwd.c: In function 'u_pwd_retr_mem':<br>toolbox/pwd.c:494: warning: passing argument 2 of 'u_hmap_get' discards qualifiers from pointer target type<br>
<br>http.c: In function 'http_serve':<br>http.c:565: warning: passing argument 2 of 'request_parse_header' from incompatible pointer type<br>http.c:591: warning: assignment discards qualifiers from pointer target type<br>
<br>../../libutils/libutils.a(utils.o): In function `u_tmpfile_open':<br>utils.c:(.text+0x993): warning: the use of `tmpnam' is dangerous, better use `mkstemp'<br><br>** TARGET **<br>path.c: In function 'u_uri_normalize':<br>
path.c:75: warning: assignment discards qualifiers from pointer target type<br><br>i386-linux-uclibc-gcc -I/home/steven/openwrt/staging_dir/i386/usr/include -L/home/steven/openwrt/staging_dir/i386/usr/lib -pipe -I/home/steven/openwrt/build_d<br>
ir/i386/klone-2.1.1rc10/klone-2.1.1rc10/build/target/klone-core-2.1.1rc10/libu/include -I/home/steven/openwrt/build_dir/i386/klone-2.1.1rc10/klone-2.1.1rc10/b<br>uild/target/klone-core-2.1.1rc10 -DHAVE_CONF_H -I/usr/local/include -O2 -c date.c -o date.o<br>
<built-in>:0: note: someone does not honour COPTS correctly, passed 0 times<br><br>i386-linux-uclibc-ar cq libhttp.a `/home/steven/openwrt/build_dir/i386/klone-2.1.1rc10/klone-2.1.1rc10/build/target/klone-core-2.1.1rc10/makl/helpers/lorder b<br>
roker.o cgi.o http.o sup_emb.o access.o vhost.o | tsort`<br>tsort: -: input contains a loop:<br>tsort: broker.o<br>tsort: sup_emb.o<br>tsort: http.o<br>tsort: -: input contains a loop:<br>tsort: broker.o<br>tsort: sup_emb.o<br>
tsort: http.o<br>tsort: -: input contains a loop:<br>tsort: broker.o<br>tsort: sup_emb.o<br>tsort: http.o<br>tsort: -: input contains a loop:<br>tsort: broker.o<br>tsort: sup_emb.o<br>tsort: http.o<br>tsort: -: input contains a loop:<br>
tsort: access.o<br>tsort: http.o<br>i386-linux-uclibc-ranlib libhttp.a<br><br><br><br><div class="gmail_quote">2008/8/22 Stefano Barbato <span dir="ltr"><<a href="mailto:barbato@koanlogic.com" target="_blank">barbato@koanlogic.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Steven,<br>
<br>
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).<br>
<br>
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.<br>
<br>
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.<br>
<br>
Bye,<br><font color="#888888">
s</font><div><div></div><div><br>
<br>
<br>
<br>
On 21/ago/08, at 21:58, Steven Van Ingelgem wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I have an issue again with this disabling of OpenSSL...<br>
<br>
I am cross compiling, but klone seems to be taking my host system include directory.<br>
<br>
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:<br>
KLONE_CONF_ARGS ?= --disable_cxx --install_daemon_only --prefix=/usr --disable-lib=openssl<br>
<br>
This will say the following:<br>
adding optional lib dependency openssl<br>
adding optional lib dependency openssl_psk<br>
adding optional lib dependency z<br>
... snip ...<br>
checking dependencies<br>
searching for optional lib feature openssl<br>
searching for optional lib feature openssl_psk<br>
searching for optional lib feature z<br>
[wrn] could not find optional dependency 'openssl_psk'<br>
<br>
<br>
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.<br>
<br>
<br>
What can I do to prevent this or should I wait for rc11?<br>
<br>
<br>
Thx,<br>
Steven<br>
<br>
<br>
2008/6/5 Stefano Barbato <<a href="mailto:barbato@koanlogic.com" target="_blank">barbato@koanlogic.com</a>><br>
Hello Steven,<br>
<br>
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):<br>
<br>
---[ Makefile ]---<br>
KLONE_VERSION = 2.1.1rc7<br>
<br>
KLONE_CONF_ARGS = --disable-lib=openssl --disable_cxx<br>
<br>
WEBAPP_DIR = $(CURDIR)/webapp<br>
<br>
WEBAPP_CFLAGS += -Os<br>
CFLAGS += -Os<br>
<br>
include <a href="http://klapp.mk" target="_blank">klapp.mk</a><br>
<br>
<a href="http://klapp.mk" target="_blank">klapp.mk</a>: ;wget -O $@ -c <a href="http://koanlogic.com/klone/klapp-2.0.0.mk" target="_blank">http://koanlogic.com/klone/klapp-2.0.0.mk</a><br>
-------------------<br>
<br>
bye,<br>
s<br>
<br>
<br>
<br>
<br>
On 05/giu/08, at 14:57, Steven Van Ingelgem wrote:<br>
<br>
Hi,<br>
<br>
<br>
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?<br>
Does it 'strip' itselves after the compile finishes up?<br>
<br>
Is it possible that I got it down to 386 bytes after running strip on it? ["mipsel-linux-strip kloned" to be correct]<br>
<br>
I can't test it right now, but I just was wondering about it...<br>
<br>
<br>
Thanks :)<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Klone-users mailing list<br>
<a href="mailto:Klone-users@koanlogic.com" target="_blank">Klone-users@koanlogic.com</a><br>
<a href="http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users" target="_blank">http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users</a><br>
</div></div></blockquote></div><br></div>