[OpenWrt-Devel] SStrip strange issue ?!? [Re: There is a error when I build emailrelay-nossl package in openwrt]

Federico Di Marco fededim at gmail.com
Mon Sep 8 08:05:47 EDT 2014


Hi Yangjun,

after a full check, it seems that everything is working and there is no
issue (I was wrong with sstrip). Please have a look at the video of the the
checks I have done on my router after having unistalled the libopenssl (
https://www.fededim.pw ). You can also a find a build of both emailrelay
packages (ar7xxx architecture, hoping it's the same as yours) I have used
in my test on the same website.

Finally sorry to all Openwrt folks for the fake issue on sstrip, it won't
happen again (incredibly almost half file size can be stripped).

Federico

On Mon, Sep 8, 2014 at 1:02 PM, Federico Di Marco <fededim at gmail.com> wrote:

> Ok please discard this thread, sstrip is fine.
>
> On Mon, Sep 8, 2014 at 12:00 PM, Federico Di Marco <fededim at gmail.com>
> wrote:
>
>> 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
>>
>>
>> https://www.fededim.pw/OpenWrt%20EmailRelay%20compilation%20issue_no%20audio.avi
>>
>> On Mon, Sep 8, 2014 at 11:23 AM, Federico Di Marco <fededim at gmail.com>
>> wrote:
>>
>>> Hi yangjun,
>>>
>>> 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
>>>
>>> -rwxr-xr-x 1 compile compile 702462 set  8 10:38 src/main/emailrelay
>>> -rwxr-xr-x 1 compile compile  99271 set  8 10:38
>>> src/main/emailrelay-filter-copy
>>> -rwxr-xr-x 1 compile compile  68688 set  8 10:38
>>> src/main/emailrelay-passwd
>>> -rwxr-xr-x 1 compile compile   8135 set  8 10:38 src/main/emailrelay-poke
>>> -rw-r--r-- 1 compile compile   2676 dic  7  2013 src/main/emailrelay.rc
>>> -rwxr-xr-x 1 compile compile 212614 set  8 10:38
>>> src/main/emailrelay-submit
>>>
>>> *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!*
>>>
>>> drwxr-xr-x 2 compile compile   4096 set  8 10:55 .
>>> drwxr-xr-x 3 compile compile   4096 set  8 10:55 ..
>>> -rwxr-xr-x 1 compile compile 410528 set  8 10:56 emailrelay
>>> -rwxr-xr-x 1 compile compile  58280 set  8 10:56 emailrelay-filter-copy
>>> -rwxr-xr-x 1 compile compile  41704 set  8 10:56 emailrelay-passwd
>>> -rwxr-xr-x 1 compile compile   3815 set  8 10:56 emailrelay-poke
>>> -rwxr-xr-x 1 compile compile 124624 set  8 10:56 emailrelay-submit
>>>
>>>
>>> Looking at compilation output the following commands are executed after
>>> compilation to create the ipkg-ar7xxx folder structure
>>>
>>> touch
>>> /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/.built
>>> 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
>>> 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
>>> 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/
>>> 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/
>>> 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/
>>> 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/
>>> 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/
>>> install -d -m0755
>>> /home/compile/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx/emailrelay-nossl/etc
>>> 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/
>>> 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
>>> 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
>>> 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
>>>
>>> *Till this commands the **build_dir/target-your
>>> architecture_34kc_uClibc-0.9.33.2/emailrelay-1.9/ipkg-ar71xx directory
>>> contains the correct files* (i.e the same as those in src/main)*, yet
>>> when the next command is executed the ipkg-folder changes its contents and
>>> this is very strange!* (you can try it by yourself by removing manually
>>> ipkg-ar71xx folder and executing all these commands, according to your
>>> architecture). *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.*
>>>
>>> *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*
>>> *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*
>>> *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*
>>> *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*
>>> *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*
>>> *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*
>>>
>>> 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
>>>
>>>
>>> E-MailRelay V1.9
>>>
>>> Copyright (C) 2001-2013 Graeme Walker
>>>
>>> This program comes with ABSOLUTELY NO WARRANTY.
>>> This is free software, and you are welcome to
>>> redistribute it under certain conditions. For
>>> more information refer to the file named COPYING.
>>>
>>>
>>> If instead emailrelay has been compiled with ssl it shows this
>>>
>>>
>>>
>>> E-MailRelay V1.9
>>>
>>> Copyright (C) 2001-2013 Graeme Walker
>>>
>>>
>>> *This product includes software developed by the OpenSSL Projectfor use
>>> in the OpenSSL Toolkit (http://www.openssl.org/ <http://www.openssl.org/>)*
>>>
>>> This program comes with ABSOLUTELY NO WARRANTY.
>>> This is free software, and you are welcome to
>>> redistribute it under certain conditions. For
>>> more information refer to the file named COPYING.
>>>
>>>
>>> On Sun, Sep 7, 2014 at 1:52 PM, 见敌必杀 <mail.yangjun at qq.com> wrote:
>>>
>>>> Hello fedefim:
>>>>     When I select emailrelay-nossl package in openwrt, there is a error
>>>> in install stage. The message is:
>>>> Package emailrelay-nossl is missing dependencies for the following
>>>> libraries:
>>>> libcrypto.so.1.0.0
>>>> libssl.so.1.0.0
>>>> ‍So is it a really no-ssl emailrelay, I just want build a full package
>>>> firmware by use the "select all package by default".
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140908/47de9b87/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list