ImageMagick / ImageMagick/libfpx

Library not in default location, and not linked correctly / at all

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
5
Forks
8
PR merge metrics
No merged PRs in 30d

Description

⋊> convert "$file" "$file.png"
convert: error while loading shared libraries: libfpx.so.1: cannot open shared object file: No such file or directory

⋊> cat /etc/ld.so.conf.d/libfpx-i686.conf
/usr/local/lib

⋊> sudo ldconfig
ldconfig: /usr/local/lib/libfpx.so.1 is not a symbolic link

# The problem
⋊> cd /usr/local/lib/
⋊> ls -lh libfpx.*
-rw-r--r--. 1 root root 7.9M Nov  8 22:22 libfpx.a
-rwxr-xr-x. 1 root root  911 Nov  8 22:22 libfpx.la*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so.1*
-rwxr-xr-x. 1 root root 3.7M Nov  8 22:22 libfpx.so.1.0.31*

# A positive example
⋊> pushd /usr/lib64/
⋊> ls -lh libcrypt.*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so -> libcrypt.so.2.0.0*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so.1 -> libcrypt.so.1.1.0*
-rwxr-xr-x. 1 root root 198K Feb  1  2022 libcrypt.so.1.1.0*
lrwxrwxrwx. 1 root root   17 Feb  1  2022 libcrypt.so.2 -> libcrypt.so.2.0.0*
-rwxr-xr-x. 1 root root 198K Feb  1  2022 libcrypt.so.2.0.0*

⋊> magick -version
Version: ImageMagick 7.1.0-53 beta Q16-HDRI x86_64 04ee6cec5:20221106 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): bzlib djvu fontconfig fpx freetype gvc heic jbig jng jp2 jpeg lcms lqr lzma openexr pangocairo png raqm raw tiff webp x xml zip zlib
Compiler: gcc (12.2)

⋊> neofetch OS Kernel
OS: Fedora release 36 (Thirty Six) x86_64
Kernel: 6.0.5-200.fc36.x86_64

Is this the intended location using compilation defaults for both projects?
https://stackoverflow.com/questions/17889799/libraries-in-usr-local-lib-not-found =/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported Fedora 36 installation and dynamic-linking behavior using the compilation defaults for libfpx and ImageMagick. Inspect the build and install configuration to determine whether /usr/local/lib and the libfpx.so symlinks are intentional; done means the installed library is found and linked correctly, or the expected location is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.