View previous topic :: View next topic |
Author |
Message |
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Thu Aug 17, 2023 12:03 pm Post subject: Imagemagick not reading jpeg files (solved) |
|
|
Hi,
I have a problem converting a simple jpeg file:
Code: |
$ convert file1.jpg output.jpg
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1289.
convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/746.
convert: no images defined `output.jpg' @ error/convert.c/ConvertImageCommand/3342.
|
Strange is that the mentioned file /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.la is there and looks fine:
Code: | $ cat /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.la
# jpeg.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.7
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='jpeg.so'
# Names of this library.
library_names='jpeg.so jpeg.so jpeg.so'
# The name of the static archive.
old_library=''
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' -pthread'
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for jpeg.
current=0
age=0
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=yes
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/lib64/ImageMagick-7.1.1/modules-Q16/coders' |
The file jpeg.so looks also fine and it is in /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders
Code: | $ ls -l /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.so
-rwxr-xr-x 1 root root 69168 Aug 17 10:17 /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.so
|
Code: | $ ldd /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders/jpeg.so
linux-vdso.so.1 (0x00007ffd0efe8000)
libMagickCore-7.Q16.so.10 => /usr/lib64/libMagickCore-7.Q16.so.10 (0x00007f1c65600000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007f1c65563000)
libc.so.6 => /lib64/libc.so.6 (0x00007f1c653c5000)
libxml2.so.2 => //usr/lib64/libxml2.so.2 (0x00007f1c65212000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f1c6591a000)
libz.so.1 => /lib64/libz.so.1 (0x00007f1c658fa000)
libltdl.so.7 => //usr/lib64/libltdl.so.7 (0x00007f1c658ec000)
libm.so.6 => /lib64/libm.so.6 (0x00007f1c65169000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1c65954000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f1c6512e000) |
What could be wrong? I vaguely remember that it already happened to me, but do not remember the solution.
Tried so far: re-emerge imagemagick and libjpeg-turbo.
Versions:
Code: | $ sudo emerge --oneshot -vp libjpeg-turbo imagemagick
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 33.84 s.
[ebuild R ] media-libs/libjpeg-turbo-2.1.5.1:0/0.2::gentoo USE="-java -static-libs" 0 KiB
[ebuild R ] media-gfx/imagemagick-7.1.1.6:0/7.1.1-43::gentoo USE="bzip2 cxx jpeg lzma png svg xml zlib -X -corefonts -djvu -fftw -fontconfig -fpx -graphviz -hdri -heif -jbig -jpeg2k -jpegxl -lcms -lqr -opencl -openexr -openmp -pango -perl -postscript -q8 -q32 -raw -static-libs -test -tiff -truetype -webp -wmf -zip" 0 KiB
|
Last edited by trubicoid on Wed Aug 30, 2023 7:49 am; edited 1 time in total |
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1522
|
Posted: Thu Aug 17, 2023 2:42 pm Post subject: |
|
|
If you have set jpeg use flag, maybe a reinstall of imagemagick fix the issue: Code: | emerge --oneshot imagemagick |
|
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Fri Aug 18, 2023 8:40 am Post subject: |
|
|
Jpeg flag is set and I did reinstall imagemagick, but it still does not work. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3347 Location: Rasi, Finland
|
Posted: Fri Aug 18, 2023 9:26 am Post subject: |
|
|
Please post your Code: | emerge --info imagemagick |
Double-check that /usr/lib64/ImageMagick-7.1.1/modules-Q16/coders diretory and the files inside it are world readable. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30924 Location: here
|
Posted: Fri Aug 18, 2023 9:31 am Post subject: |
|
|
What return file file1.jpg command? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Fri Aug 18, 2023 11:21 am Post subject: |
|
|
I thing, it is more complicated than that, problem is not only with jpeg.la, but actually with all the modules.
Code: | $ convert -list format
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/aai.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/art.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/ashlar.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/avs.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/bayer.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/bgr.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/bmp.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/braille.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cals.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/caption.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cin.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cip.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/clip.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cmyk.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cube.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/cut.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dcm.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dds.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/debug.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dib.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dng.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dot.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/dpx.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/farbfeld.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/fax.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/fits.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/fl32.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/ftxt.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/gif.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/gradient.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/gray.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/hald.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/hdr.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/heic.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/histogram.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/hrz.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/html.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/icon.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/info.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/inline.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/ipl.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jnx.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/json.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/kernel.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/label.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mac.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/magick.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/map.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mask.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mat.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/matte.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/meta.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/miff.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mono.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mpc.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mpr.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/msl.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mtv.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/mvg.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/null.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/ora.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/otb.la': file not found @ error/module.c/OpenModule/1291.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/palm.la': file not found @ error/module.c/OpenModule/1291.
convert: TooManyExceptions (exception processing is suspended) @ warning/exception.c/ThrowException/1049.
convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/pango.la': file not found @ error/module.c/OpenModule/1291.
|
The files are of course there and are readable. If I do a strace, it looks like it reads one line from the .la file, then nothing and concludes that file does not exist:
Code: | readlink("/usr", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/lib64", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/lib64/ImageMagick-7.1.1", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument)
newfstatat(AT_FDCWD, "/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la", {st_mode=S_IFREG|0755, st_size=926, ...}, 0) = 0
access("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la", F_OK) = 0
openat(AT_FDCWD, "/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=926, ...}, AT_EMPTY_PATH) = 0
read(3, "# jpeg.la - a libtool library fi"..., 4096) = 926
read(3, "", 4096) = 0
close(3) = 0
write(2, "convert: unable to load module '"..., 128convert: unable to load module '/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la': file not found @ error/module.c/Op) = 128
write(2, "enModule/1291", 13enModule/1291) = 13
write(2, ".\n", 2.
) = 2
write(2, "convert: no decode delegate for "..., 91convert: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/746) = 91
write(2, ".\n", 2.
) = 2
write(2, "convert: no images defined `outp"..., 82convert: no images defined `output.jpg' @ error/convert.c/ConvertImageCommand/3342) = 82
write(2, ".\n", 2.
) = 2
brk(0x980000) = 0x980000
exit_group(1) = ?
+++ exited with 1 +++
|
Here is the emerge --info:
Code: | $ emerge --info imagemagick
Portage 3.0.50 (python 3.11.4-final-0, default/linux/amd64/17.1/no-multilib, gcc-13, glibc-2.37-r3, 6.3.8-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.3.8-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1265L_V2_@_2.50GHz-with-glibc2.37
KiB Mem: 16289888 total, 2030432 free
KiB Swap: 33554416 total, 32374080 free
Timestamp of repository gentoo: Fri, 18 Aug 2023 00:45:01 +0000
Head commit of repository gentoo: 69c8497c982a6e82cd1c1762e27c3cdfe52436ed
Timestamp of repository lto-overlay: Tue, 08 Aug 2023 09:17:10 +0000
Head commit of repository lto-overlay: 583034d23069d85b404c4f73712ecd91f225eada
Timestamp of repository mv: Thu, 17 Aug 2023 19:31:34 +0000
Head commit of repository mv: ba4145fdda123bd5236bf7d460e4b3b1dca18f76
sh dash 0.5.12
ld GNU ld (Gentoo 2.41 p2) 2.41.0
ccache version 4.8.2 [enabled]
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-java/java-config: 2.3.1-r1::gentoo
dev-lang/perl: 5.36.1-r3::gentoo
dev-lang/python: 3.9.17::gentoo, 3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust: 1.69.0-r1::gentoo
dev-util/ccache: 4.8.2::gentoo
dev-util/cmake: 3.26.5-r1::gentoo
dev-util/meson: 1.1.1::gentoo
sys-apps/baselayout: 2.13-r1::gentoo
sys-apps/openrc: 0.47.1::gentoo
sys-apps/sandbox: 2.37::gentoo
sys-devel/autoconf: 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 16.0.6::gentoo
sys-devel/gcc: 13.2.0::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 16.0.6::gentoo
sys-devel/llvm: 16.0.6::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r3::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
lto-overlay
location: /var/db/repos/lto-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
masters: gentoo mv
volatile: False
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
volatile: False
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-ph
p8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -mtune=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --keep-going=y --complete-graph=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_H
OME"
FCFLAGS="-O2 -march=native -mtune=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-ins
tall pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -mtune=native -pipe"
GENTOO_MIRRORS="http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.dotsrc.org/gentoo/ https://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ https://mirror.dk
m.cz/gentoo/"
INSTALL_MASK="/usr/share/locale -/usr/share/locale/en -/usr/share/locale/en_US"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="reflex"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.g
it"
PORTAGE_TMPDIR="/tmp/"
RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C strip=symbols -C embed-bitcode=yes -C prefer-dynamic=no -C debuginfo=0"
SHELL="/bin/bash"
USE="a52 aac acpi aio amd64 asm atk-bridge bash-completion bcmath bcrypt blake2 brotli btrfs bzip2 ccache cdio clang cli compress compress-zstd cron crypt cryptsetup custom-cflags dcron device-mapper distinct-l djbfft dri dvb exif ext4 f
2fs flac fortran fuse gmp gold grub gzip hardcoded-tables hfs highlight hostonly hwloc iconv ipv6 ithreads jemalloc jemalloc3 jitterentropy lapack largepages libtirpc lm-sensors lm_sensors lto lvm lz4 lzma lzo mad magic mdadm metric mkte
mp mmx native-cflags natspec ncurses nistbeacon nptl ntfs offensive openipmi openmp optimization overlay pam pcntl pcre pgo psl readline reencrypt romio scp scrypt sha3 smp split-usr sqlite sse sse2 ssl strong-optimization sync-plugin-po
rtage system-jpeg system-sqlite system-zlib szip tcmalloc test-rust threads udev unicode verify-sig x264 x265 xmss xvid xxhash zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd acti
ons alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_
filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df in
terface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock gre
is isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="ba
yrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PH
P_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="ast dummy modesetting" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ip
p2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
YACC="byacc"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORT
AGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YFLAGS
=================================================================
Package Settings
=================================================================
media-gfx/imagemagick-7.1.1.11-r1::gentoo was built with the following:
USE="bzip2 cxx hdri heif jpeg lzma png webp zlib -X -corefonts -djvu -fftw -fontconfig -fpx -graphviz -jbig -jpeg2k -jpegxl -lcms -lqr -opencl -openexr -openmp -pango -perl -postscript -q32 -q8 -raw -static-libs -svg -test -tiff -truetyp
e -wmf -xml -zip"
CFLAGS="-O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed"
FEATURES="parallel-fetch network-sandbox binpkg-docompress fixlafiles distlocks unknown-features-warn parallel-install pid-sandbox ipc-sandbox preserve-libs unmerge-orphans config-protect-if-modified userpriv sfperms unmerge-logs protect
-owned fail-clean news merge-sync strict userfetch usersync usersandbox buildpkg-live binpkg-logs ccache sandbox multilib-strict qa-unresolved-soname-deps binpkg-dostrip assume-digests" |
I also took the imagemagick-7.1.1.11 from github a tried to compile manually, just Code: | ./configure;make -j8 | , and it works! Just it does not have modules like the Gentoo version. Doing Code: | ./configure --with-modules;make -j8 | results to the same errors as the Gentoo version. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2720
|
Posted: Fri Aug 18, 2023 1:36 pm Post subject: |
|
|
As far as I can tell the error comes from lt_dlopen() (when modules are used) which is provided by dev-libs/libltdl.
I see you're using lto-overlay, sound like a long shot but maybe try to rebuild libltdl with standard CFLAGS="-march=native -O2" if wasn't already. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Fri Aug 18, 2023 2:10 pm Post subject: |
|
|
Ionen wrote: | As far as I can tell the error comes from lt_dlopen() (when modules are used) which is provided by dev-libs/libltdl.
I see you're using lto-overlay, sound like a long shot but maybe try to rebuild libltdl with standard CFLAGS="-march=native -O2" if wasn't already. |
Yes, I have the lto-overlay. But I've already tried emerging dev-libs/libltdl with the standard flags, it does not help. Could it be one of the libltdl dependencies then? But it seems to depend only on xz-utils |
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1522
|
Posted: Fri Aug 18, 2023 2:53 pm Post subject: |
|
|
Quote: | readlink("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument) | Why modules-Q16HDRI directory?
Post the output of Code: | convert -list configure | please. |
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Fri Aug 18, 2023 4:23 pm Post subject: |
|
|
quilosaq wrote: | Quote: | readlink("/usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI", 0x7fff059f8130, 1023) = -1 EINVAL (Invalid argument) | Why modules-Q16HDRI directory? |
I think, I activated at some point the hdri USE flag and then the path changed. But with or without it it is the same. Also changed the stable amd64 for ~amd64. Still same result.
Quote: | Post the output of Code: | convert -list configure | please. |
Code: | $ convert -list configure
Path: /usr/lib64/ImageMagick-7.1.1//config-Q16HDRI/configure.xml Name Value ------------------------------------------------------------------------------- CC x86_64-pc-linux-gnu-gcc CFLAGS -I/usr/include/libpng16 -Wall -O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 CODER_PATH /usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/coders CONFIGURE ./configure '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--datarootdir=/usr/share' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/imagemagick-7.1.1.11-r1' '--htmldir=/usr/share/doc/imagemagick-7.1.1.11-r1/html' '--with-sysroot=/' '--libdir=/usr/lib64' '--disable-static' '--enable-hdri' '--disable-opencl' '--disable-openmp' '--with-threads' '--with-modules' '--with-quantum-depth=16' '--with-magick-plus-plus' '--without-perl' '--with-perl-options=INSTALLDIRS=vendor' '--with-gs-font-dir=/usr/share/fonts/urw-fonts' '--with-bzlib' '--without-x' '--without-zip' '--with-zlib' '--without-autotrace' '--without-dps' '--without-djvu' '--with-dejavu-font-dir=/usr/share/fonts/dejavu' '--without-fftw' '--without-fpx' '--without-fontconfig' '--without-freetype' '--without-gslib' '--without-gvc' '--with-heic' '--without-jbig' '--with-jpeg' '--without-openjp2' '--without-jxl' '--without-lcms' '--without-lqr' '--with-lzma' '--without-openexr' '--without-pango' '--with-png' '--without-raw' '--without-rsvg' '--without-tiff' '--with-webp' '--without-windows-font-dir' '--without-wmf' '--without-xml' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CXXFLAGS=-O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed'
CONFIGURE_PATH /etc/ImageMagick-7/
COPYRIGHT Copyright (C) 1999 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick-7
CXX x86_64-pc-linux-gnu-g++
CXXFLAGS -O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib heic jng jpeg lzma png ps video webp zlib zstd
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-O2 -march=native -mtune=native -pipe -Wl,-O1 -Wl,--as-needed' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' --disable-deprecated --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-zip=no --with-autotrace=no --with-dps=no --with-dejavu-font-dir=/usr/share/fonts/dejavu --with-fftw=no --with-flif=no --with-fpx=no --with-djvu=no --with-fontconfig=no --with-freetype=no --with-gslib=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/urw-fonts --with-gvc=no --with-lcms=no --with-openjp2=no --with-lqr=no --with-openexr=no --with-pango=no --with-libraw=no --with-rsvg=no --with-tiff=no --with-windows-font-dir=no --with-wmf=no --with-xml=no --with-perl=no
DOCUMENTATION_PATH /usr/share/doc/ImageMagick-7
EXEC-PREFIX /usr
EXECUTABLE_PATH /usr/bin
FEATURES DPC HDRI Cipher Modules
FILTER_PATH /usr/lib64/ImageMagick-7.1.1/modules-Q16HDRI/filters
GIT_REVISION 21206
HOST x86_64-pc-linux-gnu
INCLUDE_PATH /usr/include/ImageMagick-7
LDFLAGS -L/usr/lib64 -Wl,-O1 -Wl,--as-needed
LIB_VERSION 0x711
LIB_VERSION_NUMBER 7,1,1,11
LIBRARY_PATH /usr/lib64/ImageMagick-7.1.1
LIBS -lbz2 -lz -lltdl -lm -lpthread
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2023-05-29
SHARE_PATH /usr/share/ImageMagick-7
SHAREARCH_PATH /usr/lib64/ImageMagick-7.1.1/config-Q16HDRI
TARGET_CPU x86_64
TARGET_OS linux-gnu
TARGET_VENDOR pc
VERSION 7.1.1
WEBSITE https://imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
DELEGATES bzlib heic jng jpeg ltdl lzma png webp zlib
FEATURES Cipher DPC HDRI Modules
MAGICK_TEMPORARY_PATH /tmp
NAME ImageMagick
QuantumDepth Q16
|
|
|
Back to top |
|
|
trubicoid Tux's lil' helper
Joined: 04 Aug 2009 Posts: 79
|
Posted: Fri Aug 18, 2023 5:32 pm Post subject: |
|
|
I tried the alternative media-gfx/graphicsmagick-1.3.40-r1, that works. But it does not by default use the modules as ImageMagick does. So I add the dynamic-loading USE flag and then the result is the same:
Code: | $ convert file1.jpg output.jog
convert convert: Unable to load module ("/usr/lib64/GraphicsMagick-1.3.40/modules-Q8/coders/jpeg.la: file not found").
|
Code: | $ strace convert file1.jpg output.jog
...
brk(0x1e39000) = 0x1e39000
access("/usr/lib64/GraphicsMagick-1.3.40/modules-Q8/coders/jpeg.la", R_OK) = 0
openat(AT_FDCWD, "/usr/lib64/GraphicsMagick-1.3.40/modules-Q8/coders/jpeg.la", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=925, ...}, AT_EMPTY_PATH) = 0
read(3, "# jpeg.la - a libtool library fi"..., 4096) = 925
read(3, "", 4096) = 0
close(3) = 0
openat(AT_FDCWD, "/usr/share/GraphicsMagick-1.3.40/config/delegates.mgk", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/GraphicsMagick-1.3.40/config/delegates.mgk", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=7646, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=7646, ...}, AT_EMPTY_PATH) = 0
lseek(3, 4096, SEEK_SET) = 4096
read(3, "extAlphaBits=%u -dGraphicsAlphaB"..., 3550) = 3550
lseek(3, 0, SEEK_SET) = 0
read(3, "<?xml version=\"1.0\"?>\n<!--\n Del"..., 4096) = 4096
read(3, "extAlphaBits=%u -dGraphicsAlphaB"..., 4096) = 3550
close(3) = 0
write(2, "convert convert: ", 17convert convert: ) = 17
write(2, "Unable to load module", 21Unable to load module) = 21
write(2, " (\"/usr/lib64/GraphicsMagick-1.3"..., 79 ("/usr/lib64/GraphicsMagick-1.3.40/modules-Q8/coders/jpeg.la: file not found")) = 79
write(2, ".\n", 2.
) = 2
exit_group(1) = ?
+++ exited with 1 +++ |
It is broken libltdl as Ionen said. When I compile libltdl by hand and replace the system one, it works.
Just can't produce working libltdl with emerge.
EDIT:
Now it works again! I forgot, I had for dev-libs/libltdl NOCOMMON_OVERRIDE_LIBTOOL=yes. It was an old workaround for the CFLAG=-fno-common. It is no more needed and actually breaks the libltdl. It is applied on per-package base and I completely forgot about it.
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Mon Aug 21, 2023 11:50 am Post subject: |
|
|
Thanks for the conclusion! I would recommend checking /etc/portage for any other stale workarounds too. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|