New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21378 (closed defect: worksforme)

Opened 2 years ago

Last modified 14 months ago

postgresql84 8.4.1 client dies on Snow Leopard

Reported by: seanasy@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: jwa@…
Port: postgresql84

Description

The postgresql client dies with the following error on Snow Leopard. postgresql84 and dependencies are compiled for x86_64

sh-3.2$ whoami
postgres

sh-3.2$ psql84 [
psql84 (8.4.1)
Type "help" for help.

dyld: lazy symbol binding failed: Symbol not found: _tgetent
  Referenced from: /opt/local/lib/libreadline.6.dylib
  Expected in: flat namespace

dyld: Symbol not found: _tgetent
  Referenced from: /opt/local/lib/libreadline.6.dylib
  Expected in: flat namespace

Trace/BPT trap
sh-3.2$ file /opt/local/bin/psql84 
/opt/local/bin/psql84: Mach-O 64-bit executable x86_64
sh-3.2$ file  /opt/local/lib/libreadline.6.dylib
/opt/local/lib/libreadline.6.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Change History

follow-up: ↓ 3   Changed 2 years ago by toby@…

What about /opt/local/lib/libncurses.dylib ?

  Changed 2 years ago by jmr@…

  • owner changed from macports-tickets@… to mww@…
  • cc jwa@… added

in reply to: ↑ 1   Changed 2 years ago by seanasy@…

Replying to toby@…:

What about /opt/local/lib/libncurses.dylib ?

ncurses is also x86_64.

  Changed 2 years ago by lpackham@…

Works for me:

Lees-Macbook-Pro:~ lpackham$ file /opt/local/bin/psql84
/opt/local/bin/psql84: Mach-O 64-bit executable x86_64
Lees-Macbook-Pro:~ lpackham$ file  /opt/local/lib/libreadline.6.dylib
/opt/local/lib/libreadline.6.dylib: Mach-O 64-bit dynamically linked shared library x86_64
Lees-Macbook-Pro:~ lpackham$ file  /opt/local/lib/libncurses.dylib
/opt/local/lib/libncurses.dylib: Mach-O 64-bit dynamically linked shared library x86_64
Lees-Macbook-Pro:~ lpackham$ psql -U postgres 
psql (8.4.1)
Type "help" for help.

postgres=# 
postgres=# SELECT 1;
 ?column? 
----------
        1
(1 row)

postgres=# \q

  Changed 2 years ago by matt@…

  • cc matt@… added

Cc Me!

  Changed 2 years ago by matt@…

I found that upgrading to readline-6.1 fixed this.

  Changed 2 years ago by matt@…

  • cc matt@… removed

Cc Me!

  Changed 14 months ago by jmr@…

  • status changed from new to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.