gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.3\" -I./src/include -I./src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.3\" -I../src/include -I../src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.3\" -I../../src/include -I../../src/include/pcp -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DPCP_INTERNAL '-DEXEC_SUFFIX=""' '-DDSO_SUFFIX="so"' -D_REENTRANT -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.11.3\" -I../../../src/include -I../../../src/include/pcp
-c -o
auxserver.o auxserver.c
auxserver.c: In function '__pmSecureServerSetup':
auxserver.c:889:57: error: 'SECURE_SERVER_CERTIFICATE' undeclared (first use in this function)
return __pmSecureServerCertificateSetup(db, passwd, SECURE_SERVER_CERTIFICATE);
^
auxserver.c:889:57: note: each undeclared identifier is reported only once for each function it appears in
auxserver.c:890:1: warning: control reaches end of non-void function [-Wreturn-type]
I've found the only definition of SECURE_SERVER_CERTIFICATE, in src/libpcp/src/internal.h, defined only when both SOCKET_INTERNAL and HAVE_SECURE_SOCKETS are defined, however the line 889 in auxserver.c is guarded by #if !defined(HAVE_SECURE_SOCKETS) - therefore, when !defined(HAVE_SECURE_SOCKETS) is satisfied, there's no definition of SECURE_SERVER_CERTIFICATE because ifdef HAVE_SECURE_SOCKETS in internal.h cannot be fulfilled.
Commit 07519d0 changes the source of __pmSecureServerSetup, adding the SECURE_SERVER_CERTIFICATE usage.
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub![]()
|