From andynewlands at gmail.com Wed Oct 15 11:02:06 2025 From: andynewlands at gmail.com (Andy Newlands) Date: Wed, 15 Oct 2025 12:02:06 +0100 Subject: [Freeswitch-dev] Build fails under BOOKWORM Message-ID: Hi, I'm not sure what details people would need to help solve the following, so I'll just post the problem, then follow up with whatever additional info is requested. Everything builds find under Bullseye, but I'm getting make errors when trying to build FS v1.10.12 in a Docker container, based on Bookworm, as follows: FINAL DOCKER OUTPUT ----------------------------------- 25 | RUN mv BTL/GW/modules.conf /freeswitch/modules.conf &&\ 26 | ./configure --enable-core-pgsql-support --with-java=/usr/lib/jvm/java-8-openjdk-amd64 --enable-optimization 27 | >>> RUN make -j 10 && make install 28 | RUN git clone https://github.com/xadhoom/mod_bcg729.git &&\ 29 | sed -ie 's/FS_INCLUDES=\/usr\/include\/freeswitch/FS_INCLUDES=\/usr\/local\/freeswitch\/include\/freeswitch/g' /freeswitch/mod_bcg729/Makefile &&\ -------------------- ERROR: failed to solve: process "/bin/sh -c make -j 10 && make install" did not complete successfully: exit code: 2 FINAL MAKE OUTPUT ------------------------------- 48.97 cc1: all warnings being treated as errors 48.98 make[1]: *** [Makefile:2654: src/libfreeswitch_la-switch_stun.lo] Error 1 48.98 make[1]: *** Waiting for unfinished jobs.... 50.15 In function 'get_prefixed_str', 50.15 inlined from 'get_prefixed_str' at src/switch_ivr.c:3896:20, 50.15 inlined from 'switch_ivr_set_user_xml' at src/switch_ivr.c:3943:3: 50.15 src/switch_ivr.c:3912:17: error: 'memcpy' forming offset [13, 1023] is out of the bounds [0, 13] [-Werror=array-bounds] 50.15 3912 | memcpy(buffer + prefix_size, str, buffer_size - prefix_size - 1); 50.15 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50.45 cc1: all warnings being treated as errors 50.46 make[1]: *** [Makefile:2640: src/libfreeswitch_la-switch_ivr.lo] Error 1 61.93 make[1]: Leaving directory '/freeswitch' 61.93 make: *** [Makefile:1438: all] Error 2 I'm guessing this may be due to some kind of stricter make rules in Bookworm, but I've now idea how/where i'd manage these (I thought it was all controlled through makefile) Thanks, in advance. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: