Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#7610 closed defect (fixed)

`readline-6.0` causes "undefined symbol: PC" errors on Arch Linux

Reported by: timdumol Owned by: tbd
Priority: major Milestone: sage-4.3
Component: packages: standard Keywords:
Cc: drkirkby, AlexGhitza Merged in: sage-4.3.rc0
Authors: Tim Dumol Reviewers: Mike Hansen
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

On running Sage or the next build, readline fails with:

bash: symbol lookup error: /opt/sage-bin/local/lib/libreadline.so.6: undefined symbol: PC

Attachments (1)

trac_7610-readline-arch-workaround.patch (4.1 KB) - added by timdumol 12 years ago.
Adds Arch Linux workaround (copies over system library)

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by timdumol

Adds Arch Linux workaround (copies over system library)

comment:1 Changed 12 years ago by timdumol

  • Cc drkirkby AlexGhitza added
  • Status changed from new to needs_review

This patch adds the standard workaround (copying over the system package to $SAGE_LOCAL/lib). This should not ever fail since readline is in the base repository, and so should be installed in all systems.

Originally I thought it was because readline linked to termcap, which is disabled in Arch, but linking to curses did not help.

comment:2 Changed 12 years ago by timdumol

I've also added double quotes around almost all variable references (otherwise, there will be issues if there are spaces in the path to $SAGE_LOCAL, etc.)

comment:3 Changed 12 years ago by mhansen

  • Authors set to Tim Dumol
  • Merged in set to sage-4.3.rc0
  • Resolution set to fixed
  • Reviewers set to Mike Hansen
  • Status changed from needs_review to closed

I've merge http://sage.math.washington.edu/home/mhansen/readline-6.0.p1.spkg which has these changes applied on top of the ones at #7164.

comment:4 in reply to: ↑ description Changed 10 years ago by leif

Replying to timdumol:

On running Sage or the next build, readline fails with:

bash: symbol lookup error: /opt/sage-bin/local/lib/libreadline.so.6: undefined symbol: PC

This is because our shared libreadline lacks a DT_NEEDED tag for libtermcap, libncurses, libtinfo or whichever library provides these symbols (depends on the OS / distro).

I have a readline 6.2.p2 spkg which fixes this, but haven't yet opened a ticket for it...

(Just in case someone searches for this error and ends up here.)

Note: See TracTickets for help on using tickets.