Re: [HACKERS] Static build of psql with readline support

2006-03-23 Thread Christopher Kings-Lynne
What is the virtue of this in any case? I can see considerable use for a statically linked pg_dump, to help with upgrading, but not too much for statically linked anything else, especially since we are now pretty relocatable on most platforms at least. Upgraded db server to 8.1, but don't want

Re: [HACKERS] Static build of psql with readline support

2006-03-23 Thread Andrew Dunstan
Christopher Kings-Lynne wrote: To the GP, adding -lncurses (or rather the static equivalent) to your link line should solve it. But if you include any other libraries like ssl or kerberos be prepared to add a lot more. With -lncurses or -lcurses I still can't get this to work. I add it to t

Re: [HACKERS] Static build of psql with readline support

2006-03-23 Thread Martijn van Oosterhout
On Thu, Mar 23, 2006 at 10:31:24AM +0800, Christopher Kings-Lynne wrote: > >To the GP, adding -lncurses (or rather the static equivalent) to your > >link line should solve it. But if you include any other libraries like > >ssl or kerberos be prepared to add a lot more. > > With -lncurses or -lcurs

Re: [HACKERS] Static build of psql with readline support

2006-03-23 Thread Christopher Kings-Lynne
To the GP, adding -lncurses (or rather the static equivalent) to your link line should solve it. But if you include any other libraries like ssl or kerberos be prepared to add a lot more. With -lncurses or -lcurses I still can't get this to work. I add it to the ${CC} line, right? Chris --

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Andrew Dunstan
Mark Kirkwood said: >> >> >> FC3: >> >> /home/andrew/pglive/pgsql.plperl-pq/src/interfaces/libpq/ip.c:79: >> warning: Using 'getaddrinfo' in statically linked applications >> requires at runtime the shared libraries from the glibc version used >> for linking >> collect2: ld returned 1 exit status >

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Mark Kirkwood
Andrew Dunstan wrote: Mark Kirkwood said: Andrew Dunstan wrote: Mark Kirkwood said: Christopher Kings-Lynne wrote: To the GP, adding -lncurses (or rather the static equivalent) to your link line should solve it. But if you include any other libraries like ssl or kerberos be prepared to

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Andrew Dunstan
Mark Kirkwood said: > Andrew Dunstan wrote: >> Mark Kirkwood said: >> >>>Christopher Kings-Lynne wrote: >>> >To the GP, adding -lncurses (or rather the static equivalent) to >your link line should solve it. But if you include any other >libraries like ssl or kerberos be prepared to add

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Mark Kirkwood
Andrew Dunstan wrote: Mark Kirkwood said: Christopher Kings-Lynne wrote: To the GP, adding -lncurses (or rather the static equivalent) to your link line should solve it. But if you include any other libraries like ssl or kerberos be prepared to add a lot more. With -lncurses or -lcurses I

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Andrew Dunstan
Mark Kirkwood said: > Christopher Kings-Lynne wrote: >>> To the GP, adding -lncurses (or rather the static equivalent) to your >>> link line should solve it. But if you include any other libraries >>> like ssl or kerberos be prepared to add a lot more. >> >> >> With -lncurses or -lcurses I still ca

Re: [HACKERS] Static build of psql with readline support

2006-03-22 Thread Mark Kirkwood
Christopher Kings-Lynne wrote: To the GP, adding -lncurses (or rather the static equivalent) to your link line should solve it. But if you include any other libraries like ssl or kerberos be prepared to add a lot more. With -lncurses or -lcurses I still can't get this to work. I add it to th

Re: [HACKERS] Static build of psql with readline support

2006-03-16 Thread Martijn van Oosterhout
On Thu, Mar 16, 2006 at 04:09:53PM +1300, Mark Kirkwood wrote: > Christopher Kings-Lynne wrote: > >Hi guys, > > > >I've been trying to build the cvs checkout of 8.1.3 on my freebsd 4.9 > >box with a STATIC psql utility. I keep getting failures trying to hook > >in libreadline I think: > Add a

Re: [HACKERS] Static build of psql with readline support

2006-03-15 Thread Mark Kirkwood
Christopher Kings-Lynne wrote: Hi guys, I've been trying to build the cvs checkout of 8.1.3 on my freebsd 4.9 box with a STATIC psql utility. I keep getting failures trying to hook in libreadline I think: lreadline -lcrypt -lcompat -lm -lutil -o psql /usr/lib/libreadline.a(terminal.o): In

Re: [HACKERS] Static build of psql with readline support

2006-03-15 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > I've been trying to build the cvs checkout of 8.1.3 on my freebsd 4.9 > box with a STATIC psql utility. I keep getting failures trying to hook > in libreadline I think: > lreadline -lcrypt -lcompat -lm -lutil -o psql > /usr/lib/libreadline.

[HACKERS] Static build of psql with readline support

2006-03-15 Thread Christopher Kings-Lynne
Hi guys, I've been trying to build the cvs checkout of 8.1.3 on my freebsd 4.9 box with a STATIC psql utility. I keep getting failures trying to hook in libreadline I think: lreadline -lcrypt -lcompat -lm -lutil -o psql /usr/lib/libreadline.a(terminal.o): In function `_rl_get_screen_size':