BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Error when building docker image #57

Closed iamrenny closed 2 years ago

iamrenny commented 2 years ago

Hi all!

I'm getting the following error building a docker image with docker with command docker build . --tag=obuspa:latest

executor failed running [/bin/sh -c cd /obuspa/ && autoreconf -fi && ./configure && make -j${MAKE_JOBS} && make install]: exit code: 2

The console log shows the following fatal errors:

#9 9.149 mv -f src/core/.deps/obuspa-coap_common.Tpo src/core/.deps/obuspa-coap_common.Po
#9 9.161 src/core/wsserver.c: In function 'StopWebsockServer':
#9 9.162 src/core/wsserver.c:852:5: error: implicit declaration of function 'lws_sul_cancel' [-Werror=implicit-function-declaration]
#9 9.162   852 |     lws_sul_cancel(&wsserv.wan_poll_timer);
#9 9.162       |     ^~~~~~~~~~~~~~
#9 9.162 compilation terminated due to -Wfatal-errors.
#9 9.162 cc1: all warnings being treated as errors
#9 9.172 make: *** [Makefile:1945: src/core/obuspa-wsserver.o] Error 1
#9 9.172 make: *** Waiting for unfinished jobs....
#9 9.199 src/core/wsclient.c: In function 'WSCLIENT_Destroy':
#9 9.204 src/core/wsclient.c:344:13: error: implicit declaration of function 'lws_sul_cancel' [-Werror=implicit-function-declaration]
#9 9.204   344 |             lws_sul_cancel(&wc->retry_timer);

Any help will be appreciated.

Thanks in advanced.

iamrenny commented 2 years ago

Duplicated. Solved at issue #55