#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: |
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)
Change History (5)
Changed 13 years ago by
comment:1 Changed 13 years ago by
- 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 13 years ago by
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 13 years ago by
- 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 11 years ago by
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.)
Adds Arch Linux workaround (copies over system library)