Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,319
    • Issues 4,319
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 368
    • Merge Requests 368
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #648

Closed
Open
Opened Jan 09, 2006 by gwright@antiope.com@trac-gwright

Problem resolving library paths (missing path in package.conf?)

Hi,

When I run ghci and try to load the readline package, I get an error:

crossroads-able> ghci -package readline
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.4.1, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Loading package readline-1.0 ... ghc-6.4.1: can't load .so/.DLL for: readline.5 (dlopen(libreadline.5.dylib, 10): image not found)
crossroads-able>

The reason for this is that in package.conf, under the InstalledPackageInfo for readline, the libraryDirs entry is

libraryDirs = ["/opt/local/lib/ghc-6.4.1"]

However, the readline library is in /opt/local/lib. If I manually edit the package.conf so that the above is

libraryDirs = ["/opt/local/lib/ghc-6.4.1","/opt/local/lib"]

the above problem is fixed.

I can tweak the darwinports installation procedure to do this editing automatically, but it shouldn't be necessary. Is this a bug in the build or configuration system, or is there something else I have overlooked? My ghci has readline support so certainly the configuration system has found the library.

In case it helps, the build.mk file used was

#
# Local configuration overrides for DarwinPorts
#
ReadlineIncludePath=/opt/local/include
SRC_CC_OPTS += -I/opt/local/include
SRC_HC_OPTS += -I/usr/include -I/opt/local/include -L/usr/lib -L/opt/local/lib
EXTRA_HSC2HS_OPTS += -I/opt/local/include
EXTRA_LD_OPTS += -L/usr/lib
EXTRA_LD_OPTS += -L/opt/local/lib

Thanks, Greg Wright

Trac metadata
Trac field Value
Version 6.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#648