Cannot build Apache

I tried to build everything, the only package that is not working is Apache.
This is the error. Anyone recognize this error?

util.c:99:0: error: "T_ESCAPE_SHELL_CMD" redefined [-Werror]
 #define T_ESCAPE_SHELL_CMD    (0x01)

In file included from util.c:75:0:
test_char.h:2:0: note: this is the location of the previous definition
 #define T_ESCAPE_SHELL_CMD     (1)

util.c:100:0: error: "T_ESCAPE_PATH_SEGMENT" redefined [-Werror]
 #define T_ESCAPE_PATH_SEGMENT (0x02)

In file included from util.c:75:0:
test_char.h:3:0: note: this is the location of the previous definition
 #define T_ESCAPE_PATH_SEGMENT  (2)

util.c:101:0: error: "T_OS_ESCAPE_PATH" redefined [-Werror]
 #define T_OS_ESCAPE_PATH      (0x04)

In file included from util.c:75:0:
test_char.h:4:0: note: this is the location of the previous definition
 #define T_OS_ESCAPE_PATH       (4)

util.c:102:0: error: "T_HTTP_TOKEN_STOP" redefined [-Werror]
 #define T_HTTP_TOKEN_STOP     (0x08)

In file included from util.c:75:0:
test_char.h:5:0: note: this is the location of the previous definition
 #define T_HTTP_TOKEN_STOP      (8)

util.c:103:0: error: "T_ESCAPE_LOGITEM" redefined [-Werror]
 #define T_ESCAPE_LOGITEM      (0x10)

In file included from util.c:75:0:
test_char.h:6:0: note: this is the location of the previous definition
 #define T_ESCAPE_LOGITEM       (16)

util.c:104:0: error: "T_ESCAPE_FORENSIC" redefined [-Werror]
 #define T_ESCAPE_FORENSIC     (0x20)

In file included from util.c:75:0:
test_char.h:7:0: note: this is the location of the previous definition
 #define T_ESCAPE_FORENSIC      (32)

cc1: all warnings being treated as errors
/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/build/rules.mk:206: recipe for target 'util.lo' failed
make[5]: *** [util.lo] Error 1
make[5]: Leaving directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/server'
/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/build/rules.mk:75: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/server'
/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/build/rules.mk:75: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37'
Makefile:191: recipe for target '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/.built' failed
make[2]: *** [/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/httpd-2.4.37/.built] Error 2
make[2]: Leaving directory '/build/source/feeds/packages/net/apache'
time: package/feeds/packages/apache/compile#5.09#2.19#7.30
package/Makefile:111: recipe for target 'package/feeds/packages/apache/compile' failed
make[1]: *** [package/feeds/packages/apache/compile] Error 2
make[1]: Leaving directory '/build/source'
Build failed - please re-run with -j1 to see the real error message
/build/source/include/toplevel.mk:225: recipe for target 'package/feeds/packages/apache/compile' failed
make: *** [package/feeds/packages/apache/compile] Error 1
docker@64c155dddb41:/build/source$

try> IGNORE_ERRORS=1

i use ignore errors, but it would be could if i could build apache, i have all apt packages required and only apache is not building. so weird, hey!

master builds fine.

For some reason, you've got a problem with this patch:

Try deleting it and see if it helps you. Or, you may have enabled some compile time flags that are causing some issues.

i deleted the patch, but then it is asking for the missing test_char.h file.

i delete the first patches, as they are related. i see if like that it can compile...

then i found:


if i just change the patch it works:

i can see it has a double declaration, so i removed the first, but what flag someone is using that it allow double declaration, i could add as a flag into the make

very ugly hack, why does it compile for normal people and for me it is a double declaration, without giving en error which is warning...

cache_cc <?

i have installed with apt install ccache, but i have not enabled any new variables or flags for make

cat .config | grep CCA
docker@af1654a6daf0:/build/source$ cat .config | grep CCA
# CONFIG_CCACHE is not set
CONFIG_CCACHE=y
docker@af1654a6daf0:/build/source$

based on the above....

normal people do not compile everything... perhaps you've made some other changes?

3 Likes

i think there is an error in the patch, if i patch it (in apache, remove the dual definition as picture above), i can compile all packages excluding 14 packages that were not compiling and about 7600 packages are building.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.