G'day all, I am trying to build PostgreSQL 13.2 on Mac OS X 10.15.7. I was about to build 13.1 on the same 10.15 (but probably not 10.15.7) about 8 weeks ago without problems, so I was a bit surprised to find this error happening.
The error comes up as: gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I. -I. -I../../../src/interfaces/libpq -I../../../src/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/usr/local/include/libxml2 -I/usr/local/ssl/include -c -o input.o input.c *input.c:82:3: error: implicit declaration of function 'rl_reset_screen_size' is invalid in C99* [-Werror,-Wimplicit-function-declaration] rl_reset_screen_size(); ^ input.c:82:3: note: did you mean 'rl_set_screen_size'? /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/readline/history.h:198:8: note: 'rl_set_screen_size' declared here void rl_set_screen_size(int, int); ^ *input.c:455:13: error: implicit declaration of function 'append_history' is invalid in C99* [-Werror,-Wimplicit-function-declaration] errnum = append_history(nlines, fname); ^ input.c:455:13: note: did you mean 'pg_append_history'? input.c:114:1: note: 'pg_append_history' declared here pg_append_history(const char *s, PQExpBuffer history_buf) ^ 2 errors generated. make[3]: *** [input.o] Error 1 make[2]: *** [all-psql-recurse] Error 2 make[1]: *** [all-bin-recurse] Error 2 make: *** [all-src-recurse] Error 2 I'm not sure that rl_set_screen_size is a good replacement for reset, and I realise that this might be about the apple readline libs... do I need to install another version of readline, or is there somewhere else I should be looking? )and can I assume given the proximity of the second error, that it might be a readline upgrade again? cheers Ben -- [image: Ausvet Logo] <https://www.ausvet.com.au/> Dr Ben Madin BVMS MVPHMgmt PhD MANZCVS GAICD Managing Director Mobile: +61 448 887 220 <+61448887220> E-mail: b...@ausvet.com.au Website: www.ausvet.com.au Skype: benmadin Address: 5 Shuffrey Street Fremantle, WA 6160 Australia