Make sure you install the Imlib2 headers, something like Imlib2-dev package. Perl will probably use that to compile its own .so file.
On Sat, Mar 29, 2025 at 6:33 PM Ruben Safir <ru...@mrbrklyn.com> wrote: > On 3/29/25 3:34 AM, Ian B wrote: > > Try nm -D rather than nm.... > > > > nm -D /usr/lib/imlib2/loaders/jpeg.so | grep ProgressRows > > > > I'd be tempted to ask about this question on StackOverflow, there's some > > very knowledgeable folk on there, who may have some better things to > > check...a part of me wants to suggest reinstalling Perls Image::Imlib2, > but > > I wouldn't want to break anything, so maybe a wiser head would help. > > > > On Fri, Mar 28, 2025 at 11:42 PM Ruben Safir <ru...@mrbrklyn.com> wrote: > > > >> > >> [ruben@www3 ~]$ strings /usr/lib/imlib2/loaders/zlib.so|grep > >> __imlib_FindBestLoader > >> __imlib_FindBestLoader > >> > >> > >> > > > > > > > I looked this over yesterday when I was searching for the source code to > try to build it by hand. I must have changed on the upstream. Money it > worked and Tuesday it just didn't so something changed. > > I think the library itself works in that it can find the image loader > libraries and binaries. The Perl module can't find them, though, where > last week it did. There is a lynchpin of information missing between > the two. > > These are the libraries: > > Code: [Select] > > > [www3 ~]# ls -al /usr/lib/imlib2/loaders/ > total 432 > drwxr-xr-x 2 root root 4096 Mar 28 08:19 . > drwxr-xr-x 4 root root 4096 Oct 9 2017 .. > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 ani.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 argb.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 bmp.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 bz2.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 ff.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 gif.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 heif.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 ico.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 id3.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 j2k.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 jpeg.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 jxl.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 lbm.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 lzma.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 png.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 pnm.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 ps.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 qoi.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 svg.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 tga.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 tiff.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 webp.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 xbm.so > -rwxr-xr-x 1 root root 18328 Mar 17 20:36 xpm.so > -rwxr-xr-x 1 root root 14232 Mar 17 20:36 zlib.so > > > > The test programs that come with it seem to work - under /usr/bin - they > are imlib2_* like imlib2_view etc. > > Trying to figure this out, I by passed cpan and tried to install the > Perl by hand and it refused to build > > Code: [Select] > > [ruben@www3 Image-Imlib2-2.03-2]$ perl Makefile.PL > # running Build.PL > You must install the imlib2 library before you can install > Image::Imlib2. You can obtain imlib2 from > http://sourceforge.net/projects/enlightenment/ > > Alternatively, if you have downloaded and installed imlib2 and this > still will not work, modify the $CONFIG variable inside Build.PL to > point to the imlib2-config program that provides. > > > > The change file of imlib2 says this program has been removed and > returned and then recently removed again. Scouring the net for a > solution I turned up this: > > > https://stackoverflow.com/questions/66261506/imlib2-saving-image-returns-imlib-load-error-no-loader-for-file-format#66264954 > > Quote > > Ok, after digging a little deeper into the imlib2 source it turns > out that the loaders are always looked up as shared objects. I thought > the loaders are also compiled into the static lib, but I was wrong. > > Either I can set the directory by specifying IMLIB2_LOADER_PATH or > by putting them into the default loader path which is > /usr/local/lib/imlib2/loaders in the self compiled version. > > > I don't think adding an environmental variable to a program called by > Apache is a good idea. > > It is in the Arch AUR but hasn't been changed since 2015 > > https://packages.artixlinux.org/packages/world/x86_64/imlib2/ > > I don't see anything in the package build that can be useful to fix > this, but I am not a pacman expert. > > > > -- > So many immigrant groups have swept through our town > that Brooklyn, like Atlantis, reaches mythological > proportions in the mind of the world - RI Safir 1998 > http://www.mrbrklyn.com > DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 > > http://www.nylxs.com - Leadership Development in Free Software > http://www.brooklyn-living.com > > Being so tracked is for FARM ANIMALS and extermination camps, > but incompatible with living as a free human being. -RI Safir 2013 >