[BUGS] -ltermcap needed for psql client build on OpenBSD 2.9
Doing a default ./configure (no additional options) on a freshly installed OpenBSD 2.9 results in a 'psql' binary that isn't linked to termcap. The error looks like this: $ ./psql Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit /usr/libexec/ld.so: Undefined symbol "_tgetent" called from psql:/usr/lib/librea dline.so.0.0 at 0x40088964 $ -snip- "_tgetent" is a termcap symbol, and simply appending -ltermcap ...to the final gcc command during the 'psql' make fixes the problem. This should probably work w/o human intervention, however. :-) PostgreSQL rocks! Tom Stowell ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
Re: [BUGS] -ltermcap needed for psql client build on OpenBSD2.9
The OpenBSD folks seem to know about this one also. The ld (1) manpage says: BUGS Shared objects are not properly checked for undefined symbols. [...] OpenBSD 2.9 October 14, 1993 snip In the link you gave, it looked like provisions have been made in the development version of PostgreSQL 7.2 to work around this. Kind of a dumb linker bug... but our *BSD friends seem to think it's a feature. :-) Thanks, Tom Stowell >>> Peter Eisentraut <[EMAIL PROTECTED]> 08/14/01 16:37 PM >>> We have disqualified this as a linker bug pending OS developer feedback. See NetBSD PR 13486: http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=13486 No reponses yet. Feel free to post this to an OpenBSD forum. -- Peter Eisentraut [EMAIL PROTECTED] http://funkturm.homeip.net/~peter ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]