05-12-2021, 11:18 PM
Hey,
I am running pilight in a Docker image. I am also trying to keep up to date with the latest staging branch. That is why I have set up an image compiling the sources here:
https://github.com/akloeckner/pilight-do...Dockerfile
Since the latest changes regarding error backtracing, I am receiving errors from the compilation:
https://github.com/akloeckner/pilight-do.../834952138
I am probably missing something very obvious. Or I discovered a bug. Could you point me in the good direction, please?
Thanks! Andreas
I am running pilight in a Docker image. I am also trying to keep up to date with the latest staging branch. That is why I have set up an image compiling the sources here:
https://github.com/akloeckner/pilight-do...Dockerfile
Code:
# Clone git repository
ARG REPOSITORY=https://www.github.com/pilight/pilight.git
ARG BRANCH=staging
RUN mkdir /pilight \
&& cd /pilight \
&& git clone -o upstream $REPOSITORY . \
&& git checkout -b $BRANCH upstream/$BRANCH \
&& chmod +x setup.sh
# Compile and install pilight
RUN cd /pilight \
&& ./setup.sh install\
&& ldconfig \
&& cp res/pilight.pem /etc/pilight/pilight.pem
Since the latest changes regarding error backtracing, I am receiving errors from the compilation:
https://github.com/akloeckner/pilight-do.../834952138
Code:
[...]
#10 42.09 [ 91%] Building C object CMakeFiles/pilight.dir/libs/pilight/lua_c/io/spi.c.o
#10 42.22 [ 91%] Built target pilight
#10 42.24 Scanning dependencies of target pilight_shared
#10 42.25 [ 91%] Linking C shared library libpilight.so
#10 42.40 [ 91%] Built target pilight_shared
#10 42.42 Scanning dependencies of target pilight-daemon
#10 42.43 [ 91%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
#10 43.39 [ 92%] Linking C executable pilight-daemon
#10 43.43 CMakeFiles/pilight-daemon.dir/daemon.c.o: In function `main':
#10 43.43 daemon.c:(.text.startup+0x24): undefined reference to `btstate'
#10 43.43 collect2: error: ld returned 1 exit status
#10 43.43 make[2]: *** [pilight-daemon] Error 1
#10 43.43 CMakeFiles/pilight-daemon.dir/build.make:99: recipe for target 'pilight-daemon' failed
#10 43.43 make[1]: *** [CMakeFiles/pilight-daemon.dir/all] Error 2
#10 43.43 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pilight-daemon.dir/all' failed
#10 43.44 make: *** [all] Error 2
#10 43.44 Makefile:149: recipe for target 'all' failed
I am probably missing something very obvious. Or I discovered a bug. Could you point me in the good direction, please?
Thanks! Andreas