Problem building psql on Mac OS 10.15 (around readline bit I think)

From: Ben Madin <ben(at)ausvet(dot)com(dot)au>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Problem building psql on Mac OS 10.15 (around readline bit I think)
Date: 2021-03-01 03:45:54
Message-ID: CA+weYr0C2mL4pGS-hK20DMJaz0zp7zKeF-gCp3tyeht4drFEUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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:
ben(at)ausvet(dot)com(dot)au
Website:
www.ausvet.com.au
Skype: benmadin
Address:
5 Shuffrey Street
Fremantle, WA 6160
Australia

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-03-01 04:50:12 Re: Problem building psql on Mac OS 10.15 (around readline bit I think)
Previous Message Jagmohan Kaintura 2021-03-01 03:19:12 Fwd: PostgreSQL Statement Dependency Resolving | Schema Upgrade