philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.5k stars 216 forks source link

Compiling help - sslsym.c errors #257

Closed timtn closed 4 years ago

timtn commented 4 years ago

Trying to compile a copy of airupnp for arm5 and running into this error:

cc -Wall -fPIC -ggdb -O2  -I. -I../../shine/src/lib -I../../dmap-parser -I../../valgrind/memcheck -I../../valgrind/include -I../tools -I../common -I./src -I./src/inc -I../../libupnp/1.6.19/ixml/inc -I../../libupnp/1.6.19/upnp/inc -I../../libupnp/1.6.19/build/inc -I../../libupnp/1.6.19/threadutil/inc -I../../mdnssd -I../../jansson/src -I../../flac/include -I../../tinysvcmdns -D_FILE_OFFSET_BITS=64 -DPB_FIELD_16BIT -DHAVE_STDINT_H -DNDEBUG -D_GNU_SOURCE -D_USE_XML_ -fdata-sections -ffunction-sections   -I. -I../../shine/src/lib -I../../dmap-parser -I../../valgrind/memcheck -I../../valgrind/include -I../tools -I../common -I./src -I./src/inc -I../../libupnp/1.6.19/ixml/inc -I../../libupnp/1.6.19/upnp/inc -I../../libupnp/1.6.19/build/inc -I../../libupnp/1.6.19/threadutil/inc -I../../mdnssd -I../../jansson/src -I../../flac/include -I../../tinysvcmdns ../tools/sslsym.c -c -o bin/arm5/sslsym.o
../tools/sslsym.c:113:9: error: redefinition of ‘TLS_client_method’
  113 | SYMDECL(TLS_client_method, const SSL_METHOD*, 0);
      |         ^~~~~~~~~~~~~~~~~
../tools/sslsym.c:91:6: note: in definition of macro ‘SYMDECL’
   91 |  ret fn(P(n,__VA_ARGS__)) {    \
      |      ^~
../tools/sslsym.c:112:9: note: previous definition of ‘TLS_client_method’ was here
  112 | SYMDECL(SSLv23_client_method, const SSL_METHOD*, 0);
      |         ^~~~~~~~~~~~~~~~~~~~
../tools/sslsym.c:91:6: note: in definition of macro ‘SYMDECL’
   91 |  ret fn(P(n,__VA_ARGS__)) {    \
      |      ^~
../tools/sslsym.c:115:1: error: macro "SSL_library_init" passed 1 arguments, but takes just 0
  115 | SYMDECL(SSL_library_init, int, 0);
      | ^~
In file included from ../tools/sslsym.c:28:
/usr/include/openssl/ssl.h:1958: note: macro "SSL_library_init" defined here
 1958 | #  define SSL_library_init() OPENSSL_init_ssl(0, NULL)
      | 
../tools/sslsym.c:91:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
   91 |  ret fn(P(n,__VA_ARGS__)) {    \
      |                           ^
../tools/sslsym.c:115:1: note: in expansion of macro ‘SYMDECL’
  115 | SYMDECL(SSL_library_init, int, 0);
      | ^~~~~~~
make: *** [Makefile:72: bin/arm5/sslsym.o] Error 1

Any ideas what I'm missing? I think I had a similar problem when I was setting up my x86-64 compiler, but can't remember what I did to get that working...

pwt commented 4 years ago

To compile on a Raspberry Pi, I needed to download openssl 1.0.x., 'make' it, and INCLUDE the header files in the Makefile.

timtn commented 4 years ago

Thanks @pwt! Turns out I needed to branch OpenSSL_1_0_2-stable to get rid of all the errors!