coolio107 / SqueezeButtonPi-Daemon

A deamon to be used for buttons and rotary encoders in a Raspberry Pi based Squeeezbox player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling sbpd against static libraries fails with multiple definitions of get_mac

ralph-irving opened this issue · comments

/usr/lib/arm-linux-gnueabihf/libcrypto.a(gost89.o): In function get_mac': (.text+0x1d4c): multiple definition of get_mac'
/tmp/ccrPqbY6.o:discovery.c:(.text+0xc4c): first defined here
collect2: error: ld returned 1 exit status
makefile:2: recipe for target 'sbpd' failed

Declaring the function static in discovery.c fixed the problem.
duplicate-get_mac-patch.txt

Thanks for the heads-up.
Somehow I could not open you patch file.
If declaring "get_mac" static was the only change in there I have now applied it.

Confirmed commit d4eef2d now builds fine with static libs.