<div dir="ltr">Ok please discard this thread, sstrip is fine.<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 12:00 PM, Federico Di Marco <span dir="ltr"><<a href="mailto:fededim@gmail.com" target="_blank">fededim@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I know that this is seems a very strange behaviour, so I made a screen video to check it by yourself, you can download the video here<div><br></div><div><a href="https://www.fededim.pw/OpenWrt%20EmailRelay%20compilation%20issue_no%20audio.avi" target="_blank">https://www.fededim.pw/OpenWrt%20EmailRelay%20compilation%20issue_no%20audio.avi</a><br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 11:23 AM, Federico Di Marco <span dir="ltr"><<a href="mailto:fededim@gmail.com" target="_blank">fededim@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi yangjun,<div><br></div><div>I just gave a quick view to your problem it seems you are right there is an issue in the generated ipkg file, eventhough the compilation is fine (emailrelay does compile without ssl). In my build machine (architecture ar7xxx) at the end build_dir/target-your architecture_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main contains the correct executables </div><div><br></div><div><div>-rwxr-xr-x 1 compile compile 702462 set 8 10:38 src/main/emailrelay</div><div>-rwxr-xr-x 1 compile compile 99271 set 8 10:38 src/main/emailrelay-filter-copy</div><div>-rwxr-xr-x 1 compile compile 68688 set 8 10:38 src/main/emailrelay-passwd</div><div>-rwxr-xr-x 1 compile compile 8135 set 8 10:38 src/main/emailrelay-poke</div><div>-rw-r--r-- 1 compile compile 2676 dic 7 2013 src/main/emailrelay.rc</div><div>-rwxr-xr-x 1 compile compile 212614 set 8 10:38 src/main/emailrelay-submit</div></div><div><br></div><div><b>Instead the folder build_dir/target-your architecture_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/ (the folder from which the final .ipkg file) contains different length files and this is very strange!</b><br></div><div><div><br></div><div>drwxr-xr-x 2 compile compile 4096 set 8 10:55 .</div><div>drwxr-xr-x 3 compile compile 4096 set 8 10:55 ..</div><div>-rwxr-xr-x 1 compile compile 410528 set 8 10:56 emailrelay</div><div>-rwxr-xr-x 1 compile compile 58280 set 8 10:56 emailrelay-filter-copy</div><div>-rwxr-xr-x 1 compile compile 41704 set 8 10:56 emailrelay-passwd</div><div>-rwxr-xr-x 1 compile compile 3815 set 8 10:56 emailrelay-poke</div><div>-rwxr-xr-x 1 compile compile 124624 set 8 10:56 emailrelay-submit</div></div><div><br></div><div><br></div><div>Looking at compilation output the following commands are executed after compilation to create the ipkg-ar7xxx folder structure</div><div><br></div><div><div>touch /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/.built<br></div><div>mkdir -p /home/compile/openwrt/bin/ar71xx/packages /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/CONTROL /home/compile/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo</div><div>install -d -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin</div><div>install -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/</div><div>install -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-filter-copy /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/</div><div>install -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-passwd /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/</div><div>install -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-poke /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/</div><div>install -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-submit /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/</div><div>install -d -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/etc</div><div>install -m0644 files/emailrelay.auth /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/etc/</div><div>install -d -m0755 /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/etc/init.d</div><div>install -m0755 files/emailrelay.init /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/etc/init.d/emailrelay</div><div>find /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf<br></div><div><br></div><div><u>Till this commands the </u><u>build_dir/target-your architecture_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx directory contains the correct files</u> (i.e the same as those in src/main)<u>, yet when the next command is executed the ipkg-folder changes its contents and this is very strange!</u> (you can try it by yourself by removing manually ipkg-ar71xx folder and executing all these commands, according to your architecture). <b>Since I don't know what this command does (it's after compilation) can anybody explain me what is doing SStrip to the executables in ipkg-ar7xxx folder ?!?! For sure this command affects the executable files in some way as it clearly show the output.</b></div><div><b><br></b></div><div><b>export CROSS="mips-openwrt-linux-uclibc-" NO_RENAME=1 ; NM="mips-openwrt-linux-uclibc-nm" STRIP="/home/compile/openwrt/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/compile/openwrt/scripts/strip-kmod.sh" /home/compile/openwrt/scripts/rstrip.sh /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl</b></div><div><b>rstrip.sh: /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/emailrelay-poke:executable</b></div><div><b>rstrip.sh: /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/emailrelay:executable</b></div><div><b>rstrip.sh: /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/emailrelay-submit:executable</b></div><div><b>rstrip.sh: /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/emailrelay-passwd:executable</b></div><div><b>rstrip.sh: /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/usr/bin/emailrelay-filter-copy:executable</b></div></div><div><br></div><div>In anycase Yangjun as a quick workaround if you want to use emailrelay without ssl, go to openwrt project build_dir/target-your architecture_34kc_uClibc-0.9.33.2/emailrelay-1.9/src/main and copy executable file emailrelay to your router (you can install libopenssl, install emailrelay, remove libopenssl, and overwrite executable files). To be sure of using the no-ssl version of EmailRelay issue the command emailrelay -V, it should show this<br><br><br><div>E-MailRelay V1.9<br><br>Copyright (C) 2001-2013 Graeme Walker<br><br>This program comes with ABSOLUTELY NO WARRANTY.<br>This is free software, and you are welcome to<br>redistribute it under certain conditions. For<br>more information refer to the file named COPYING.<br><br><br></div><div>If instead emailrelay has been compiled with ssl it shows this<br><br><br><br><div>E-MailRelay V1.9<br><br>Copyright (C) 2001-2013 Graeme Walker<br><br><b>This product includes software developed by the OpenSSL Project<br>for use in the OpenSSL Toolkit (<a href="http://www.openssl.org/" target="_blank">http://www.openssl.org/</a>)</b><br><br>This program comes with ABSOLUTELY NO WARRANTY.<br>This is free software, and you are welcome to <br>redistribute it under certain conditions. For <br>more information refer to the file named COPYING.<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 7, 2014 at 1:52 PM, 见敌必杀 <span dir="ltr"><<a href="mailto:mail.yangjun@qq.com" target="_blank">mail.yangjun@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>Hello fedefim:</div><div> When I select emailrelay-nossl package in openwrt, there is a error in install stage. The message is:</div><div><div>Package emailrelay-nossl is missing dependencies for the following libraries:</div><div>libcrypto.so.1.0.0</div><div>libssl.so.1.0.0</div></div><div><span style="line-height:0px"></span>So is it a really no-ssl emailrelay, I just want build a full package firmware by use the "select all package by default".</div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>