[pgpool-hackers: 2465] Dealing with OpenSSL 1.1

Tatsuo Ishii ishii at sraoss.co.jp
Fri Jul 28 11:29:36 JST 2017


Hi Usama,

While working on $subject, I get compile errors while compiling
watchdog:

make[2]: Entering directory '/home/t-ishii/src/pgpool2/src/watchdog'
depbase=`echo wd_utils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../../src/include  -D_GNU_SOURCE -I /usr/include   -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fno-strict-aliasing -MT wd_utils.o -MD -MP -MF $depbase.Tpo -c -o wd_utils.o wd_utils.c &&\
mv -f $depbase.Tpo $depbase.Po
wd_utils.c: In function 'calculate_hmac_sha256':
wd_utils.c:157:11: error: storage size of 'ctx' isn't known
  HMAC_CTX ctx;
           ^~~
wd_utils.c:158:2: warning: implicit declaration of function 'HMAC_CTX_init'; did you mean 'HMAC_CTX_new'? [-Wimplicit-function-declaration]
  HMAC_CTX_init(&ctx);
  ^~~~~~~~~~~~~
  HMAC_CTX_new
wd_utils.c:162:2: warning: implicit declaration of function 'HMAC_CTX_cleanup'; did you mean 'HMAC_CTX_get_md'? [-Wimplicit-function-declaration]
  HMAC_CTX_cleanup(&ctx);
  ^~~~~~~~~~~~~~~~
  HMAC_CTX_get_md
wd_utils.c:157:11: warning: unused variable 'ctx' [-Wunused-variable]
  HMAC_CTX ctx;
           ^~~
make[2]: *** [Makefile:400: wd_utils.o] Error 1

Any idea how to fix them?

This is Fedora 26. Attached is the patch I'm working on.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssl.diff
Type: text/x-patch
Size: 1302 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20170728/87c2acc8/attachment.bin>


More information about the pgpool-hackers mailing list