pcp
[Top] [All Lists]

[performancecopilot/pcp] Unable to build: 'SECURE_SERVER_CERTIFICATE' un

To: performancecopilot/pcp <pcp@xxxxxxxxxxxxxxxxxx>
Subject: [performancecopilot/pcp] Unable to build: 'SECURE_SERVER_CERTIFICATE' undeclared in auxserver.c (#95)
From: MiloÅ PrchlÃk <notifications@xxxxxxxxxx>
Date: Tue, 24 May 2016 04:58:21 -0700
Cc:
Delivered-to: pcp@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1464091101; bh=MJ8KTj7VuBJbh9nPiuBa5Hy99/5rl7eT3xvhwc4dk7U=; h=From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=d82QW+YzAQ+jCTcWNq489nP4qcby1lUlp1Z9Uus5t8BPwWo8CC7nHHfi9T3wpKboH z3P6nngRANIdoVpbwJGyBuldqD9DWBXzpmIU1JiLomq1HS/hjbP4S1dny9XiEFy9AY aWFFtrdE3R9B1kngZXSSc92rHUs8ZR3l1zv7i6gw=
List-archive: https://github.com/performancecopilot/pcp
List-id: performancecopilot/pcp <pcp.performancecopilot.github.com>
List-post: <mailto:reply+00bd08b69b13ac9d0267207e91e2e9e04f18305df8a9750b92cf00000001135c03dd92a169ce0953d566@reply.github.com>
List-unsubscribe: <mailto:unsub+00bd08b69b13ac9d0267207e91e2e9e04f18305df8a9750b92cf00000001135c03dd92a169ce0953d566@reply.github.com>, <https://github.com/notifications/unsubscribe/AL0Its6ucX46MglIG6WMc1LzigTqyI0Vks5qEufdgaJpZM4IlZ9C>
Reply-to: performancecopilot/pcp <reply+00bd08b69b13ac9d0267207e91e2e9e04f18305df8a9750b92cf00000001135c03dd92a169ce0953d566@xxxxxxxxxxxxxxxx>
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

<Prev in Thread] Current Thread [Next in Thread>