Skip to content

cmake fails with errors regarding n_ssl.c #17

@pghpete

Description

@pghpete

I have tried to build this on a Raspberry Pi Zero 2 (Raspbian Linux 13 Trixie) and a Radxa Zero (Dietpi Trixie, Armbian 24.11.1)

And it fails at the same place during the 'cmake' command.

I have installed everything I believe is necessary as a prerequisite / dependency but that wasn't easy without a clear list. Perhaps I have forgotten a package?

git clone https://github.com/dresden-elektronik/deconz.git
cd deconz/
git submodule update --init --recursive
cmake -DQT_VERSION_MAJOR=5 -DUSE_NET=ON -DCMAKE_BUILD_TYPE=Release -B build 

...
[  9%] Building C object src/lib/CMakeFiles/deCONZLib.dir/n_ssl.c.o
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslServerInit’:
/custom_code/deconz/src/lib/n_ssl.c:45:16: error: implicit declaration of function ‘N_SslServerInitOpenSsl’; did you mean ‘N_SslServerInit’? [-Wimplicit-function-declaration]
   45 |         return N_SslServerInitOpenSsl(sock, addr, port, certpath, keypath);
      |                ^~~~~~~~~~~~~~~~~~~~~~
      |                N_SslServerInit
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslAccept’:
/custom_code/deconz/src/lib/n_ssl.c:53:16: error: implicit declaration of function ‘N_SslAcceptOpenSsl’ [-Wimplicit-function-declaration]
   53 |         return N_SslAcceptOpenSsl(srv, cli);
      |                ^~~~~~~~~~~~~~~~~~
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslHandshake’:
/custom_code/deconz/src/lib/n_ssl.c:61:16: error: implicit declaration of function ‘N_SslHandshakeOpenSsl’; did you mean ‘N_SslHandshake’? [-Wimplicit-function-declaration]
   61 |         return N_SslHandshakeOpenSsl(sock);
      |                ^~~~~~~~~~~~~~~~~~~~~
      |                N_SslHandshake
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslWrite’:
/custom_code/deconz/src/lib/n_ssl.c:69:16: error: implicit declaration of function ‘N_SslWriteOpenSsl’ [-Wimplicit-function-declaration]
   69 |         return N_SslWriteOpenSsl(sock, buf, len);
      |                ^~~~~~~~~~~~~~~~~
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslRead’:
/custom_code/deconz/src/lib/n_ssl.c:77:16: error: implicit declaration of function ‘N_SslReadOpenSsl’ [-Wimplicit-function-declaration]
   77 |         return N_SslReadOpenSsl(sock, buf, len);
      |                ^~~~~~~~~~~~~~~~
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslCanRead’:
/custom_code/deconz/src/lib/n_ssl.c:85:16: error: implicit declaration of function ‘N_SslCanReadOpenSsl’; did you mean ‘N_SslCanRead’? [-Wimplicit-function-declaration]
   85 |         return N_SslCanReadOpenSsl(sock);
      |                ^~~~~~~~~~~~~~~~~~~
      |                N_SslCanRead
/custom_code/deconz/src/lib/n_ssl.c: In function ‘N_SslClose’:
/custom_code/deconz/src/lib/n_ssl.c:93:16: error: implicit declaration of function ‘N_SslCloseOpenSsl’ [-Wimplicit-function-declaration]
   93 |         return N_SslCloseOpenSsl(sock);
      |                ^~~~~~~~~~~~~~~~~
gmake[2]: *** [src/lib/CMakeFiles/deCONZLib.dir/build.make:268: src/lib/CMakeFiles/deCONZLib.dir/n_ssl.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:420: src/lib/CMakeFiles/deCONZLib.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

I don't technically need ssl andI have tried every cmake option suggested to me by various AI's (yeah I know but I'm desperate here) and nothing worked... they were all ignored options.

-DWITH_SSL=ON 
-DDECONZ_BUILD_WITH_SSL=ON
-DDECONZ_RESET_PLUGIN_HTTP_SSL=ON
-DDECONZ_NO_SSL=ON
-DBUILD_WITH_OPENSSL=OFF -B build

None of the above worked. (Tried individually during several painfully slow cmakes on these Rasberry / Radxa Zeros)

Any help or being pointed in the right direction would be greatly appreciated! Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions