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

Federico Di Marco fededim at gmail.com
Mon Sep 8 14:33:45 EDT 2014


Hi again,

I fixed the bug, but due to fact I am not an official maintainer some days
will be required to update openwrt sources. You can however update manually
the only modified file which is the Makefile of emailrelay in
feeds/packages/net/EmailRelay/Makefile folder with the one from my github
repository
https://raw.githubusercontent.com/fededim/packages/e04ad35b6b09681b1e0daa61fa0958a700f9ea5e/net/emailrelay/Makefile

Just overwrite the file and reissue make world, everything should be fine.

Federico

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

> Well I have never tried compiling both packages, I'll check it out when I
> have some spare time, meanwhile please just select one of the two packages,
> it should work fine.
>
> Federico
>
> On Mon, Sep 8, 2014 at 3:47 PM, 见敌必杀 <mail.yangjun at qq.com> wrote:
>
>> Thank you for your explain about this issue, I am a newer of openwrt, I
>> don't know what function is I need, so I choice to select "select all
>> packages by default" in "make menuconfig", and then to run the command
>> "make". My architecture is x86, I do not real need emailrely without ssl.
>> For result of select all packages by default, this will select  ‍emailrely
>> with ssl and ‍emailrely without ssl too. Here is full message when I run
>> command "make V=s", build emailrely with ssl is success, but build
>> emailrely without ssl fail.
>> I am sorry about I couldn't open that audio.avi, it may be GWF prevent me
>> access that web. If you think this is a no issue, I will not select
>> emailrely without ssl and continue my job. If you need more information, I
>> will offer those information.
>>
>> my build steps are:
>> ./script/feed update -a
>> ./script/feed install -a
>> make menuconfig
>>
>> Target System -> x86‍
>> Global build settings -> Select all packages by default
>> save and exit
>>
>> make V=s
>> After a few hours, it show:
>>
>> make[3]: Entering directory
>> `/home/yangjun/openwrt/openwrt/feeds/packages/net/emailrelay'
>> rm -rf
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay
>> mkdir -p
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-filter-copy
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-passwd
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-poke
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-submit
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/usr/bin/
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/etc
>> install -m0644 files/emailrelay.auth
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/etc/
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/etc/init.d
>> install -m0755 files/emailrelay.init
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/etc/init.d/emailrelay
>> SHELL= /home/yangjun/openwrt/openwrt/staging_dir/host/bin/flock
>> /home/yangjun/openwrt/openwrt/tmp/.root-copy.flock -c 'cp -fpR
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay/.
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/'
>> rm -rf
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/tmp-emailrelay
>> touch
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.emailrelay_installed
>> make[3]: Leaving directory
>> `/home/yangjun/openwrt/openwrt/feeds/packages/net/emailrelay'
>> make[3]: Entering directory
>> `/home/yangjun/openwrt/openwrt/feeds/packages/net/emailrelay'
>> mkdir -p /home/yangjun/openwrt/openwrt/bin/x86/packages
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/CONTROL
>> /home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-filter-copy
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-passwd
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-poke
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin/
>> install -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/src/main/emailrelay-submit
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/usr/bin/
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/etc
>> install -m0644 files/emailrelay.auth
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/etc/
>> install -d -m0755
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/etc/init.d
>> install -m0755 files/emailrelay.init
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl/etc/init.d/emailrelay
>> find
>> /home/yangjun/openwrt/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/emailrelay-1.9/ipkg-x86/emailrelay-nossl
>> -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
>> Package emailrelay-nossl is missing dependencies for the following
>> libraries:
>> libcrypto.so.1.0.0
>> libssl.so.1.0.0
>> make[3]: ***
>> [/home/yangjun/openwrt/openwrt/bin/x86/packages/packages/emailrelay-nossl_1.9-1_x86.ipk]
>> Error 1
>> make[3]: Leaving directory
>> `/home/yangjun/openwrt/openwrt/feeds/packages/net/emailrelay'
>> make[2]: *** [package/feeds/packages/emailrelay/compile] Error 2
>> make[2]: Leaving directory `/home/yangjun/openwrt/openwrt'
>> make[1]: ***
>> [/home/yangjun/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.package_compile]
>> Error 2
>> make[1]: Leaving directory `/home/yangjun/openwrt/openwrt'
>> make: *** [world] 错误 2
>> yangjun at yangjun-virtual-machine:~/openwrt/openwrt$
>>>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "fededim";<fededim at gmail.com>;
>> *发送时间:* 2014年9月8日(星期一) 晚上8:05
>> *收件人:* "见敌必杀"<mail.yangjun at qq.com>; "OpenWrt Development List"<
>> openwrt-devel at lists.openwrt.org>;
>> *主题:* Re: SStrip strange issue ?!? [Re: There is a error when I
>> buildemailrelay-nossl package in openwrt]
>>
>> 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/3baaea20/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