[Buildroot] [PATCH] quagga: fix static link with zlib

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Aug 21 20:23:41 UTC 2016


Hello,

On Sun, 21 Aug 2016 09:39:19 +0300, Baruch Siach wrote:
> quagga links with zlib indirectly via netsnmp -> openssl -> zlib. quagga and
> zlib both define the identically named but otherwise unrelated 'zcalloc'
> symbol. This breaks static linking. Add a patch that renames the offending
> symbol, thus fixing the build.
> 
> Fixes:
> http://autobuild.buildroot.net/results/013/01317aeaff7d127a05e0488a51e81f2d43750687/
> http://autobuild.buildroot.net/results/e9f/e9f17bb6e048c3dd3c65fc588dc5244fbbbba6fb/
> http://autobuild.buildroot.net/results/72b/72b5e8a3d4c1d27c61cdad5a90691117d0dcfbb9/
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
>  ...memory-fix-indirect-static-link-with-zlib.patch | 108 +++++++++++++++++++++
>  1 file changed, 108 insertions(+)
>  create mode 100644 package/quagga/0003-lib-memory-fix-indirect-static-link-with-zlib.patch

Thanks for fixing this issue. I'm not sure zzcalloc is really the best
name, but it's fine for now. Could you submit upstream? They will
probably decide of a better name, if need be.

Thanks again, applied to master!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list