'Error building Delegate Proxy 9.9.13 using G++ 11.2.0
I applied the 2 patches mentioned by the original author of Delegate 9.9.13 but still encountered another build error as shown below. Could someone suggest a fix for such error. Thanks a lot.
The patches by the original author: Failed compile delegate Raspbian
cc -O2 -x c++ -DQS -I../gen -I../include -c conf.c \
-DADMIN=\"python@dell-e7470\" \
-DADMINPASS=\"\"
conf.c: In function ‘int myid_mainX(int, const char**, FILE*)’:
conf.c:1240:40: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
1240 | int with_gethostbyname2();
| ^~
conf.c:1240:40: note: remove parentheses to default-initialize a variable
1240 | int with_gethostbyname2();
| ^~
| --
conf.c:1240:40: note: or replace parentheses with braces to value-initialize a variable
cc -O2 -x c++ -DQS -I../gen -I../include -c svport.c
cc -O2 -x c++ -DQS -I../gen -I../include -c ddi.c
cc -O2 -x c++ -DQS -I../gen -I../include -c textconv.c
cc -O2 -x c++ -DQS -I../gen -I../include -c script.c
cc -O2 -x c++ -DQS -I../gen -I../include -c param.c
cc -O2 -x c++ -DQS -I../gen -I../include -c env.c
env.c: In function ‘void confCGI(Connection_01*, DYConf*, CLArg*, FILE*, const char*)’:
env.c:2083:15: error: ordered comparison of pointer with integer zero (‘int’ and ‘char*’)
2083 | if( 0 <= esock ){
| ~~^~~~~~~~
make[2]: *** [Makefile.go:754: env.o] Error 1
make[2]: Leaving directory '/home/python/delegate/src'
make[1]: *** [Makefile:376: start0] Error 2
make[1]: Leaving directory '/home/python/delegate/src'
mkmake: ERROR LOG is left at /home/python/delegate/src/mkmake.err
mkmake: ERROR LOG is left at /home/python/delegate/src/mkmake.err
make: *** [Makefile:77: all] Error 2
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
