Re: Image::Imlib2 error
Ian B <[email protected]> Sun, 30 Mar 2025 12:04:18 +0000
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CANAUX_R+yCzte__Hyugg+Y-JEpNbZDG92qKruz5=xrqvFnMQAw@mail.gmail.com> |
--00000000000019340f06318e1b41
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Couple of things you could try, modify the Image::Imlib2 module, to have
sub dl_load_flags { 0x102 } just before the "boostrap" line...
so it would look like (remember to save original)
..
$VERSION =3D '2.03';
sub dl_load_flags { 0x102 };
bootstrap Image::Imlib2 $VERSION;
...
or you could try
export
LD_PRELOAD=3D/opt/perl/lib/site_perl/5.34.0/x86_64-linux/auto/Image/Imlib2/=
Imlib2.so
&& ./runyourperlfile.pl (be aware you may want to export LD_PRELOAD=3D
after if it messes up some other commands). I'm not sure how this would
work with the larger setup you have though...
On Sun, Mar 30, 2025 at 11:29=E2=80=AFAM Ruben Safir <[email protected]> w=
rote:
> On 3/29/25 10:59 PM, Ruben Safir wrote:
> > I hacked the build file so it will compile but the darn xs
> > packages are still not working and I have zero idea how to fix this at
> > this point.
> >
> > I have 40 years of photographs and images on that webserver made
> > inaccessible by fidiggty coders who had security issue and no added
> > functionality. They are just damn fidigty.
> >
> >
> > cpan .
> > ...
> > Configuring /home/ruben/.cpan/build/Image-Imlib2-2.03-0/. with Build.PL
> > Found imlib2 1.12.4
> > Created MYMETA.yml and MYMETA.json
> > Creating new 'Build' script for 'Image-Imlib2' version '2.03'
> > 'YAML' not installed, will not store persistent state
> > /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.
> > /usr/bin/perl Build.PL installdirs=3Dsite -- OK
> > Running Build for /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.
> > Building Image-Imlib2
> > /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.
> > ./Build -- OK
> > Running Build test for
> > /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.
> > t/autocrop.t ...... 1/8 Image::Imlib2 load error: No loader for
> > file format at t/autocrop.t line 7.
> > ....
> >
> > It uncovers the error and gives NO HINT how to solve this.
> >
> > I don't even know where the xs files are being compiled and loaded
> >
> > This could be as easy as an ldd ld.conf problem and I would have no
> > clue.
> >
> >
> >
> > On Sat, Mar 29, 2025 at 06:31:18PM -0400, Ruben Safir wrote:
> >> I fixed the Images::Imlib2 package so it will at least compile buy har=
d
> >> coding the pkg-config file instead of the removed imlib2-config
> >> But it is still not finding the image modules that are used by
> >> Image::Imlib2->load()
> >> I'm not really sure where that is even being inherited from
> >> because I never worked with a C code project encalsulated by perl
> >>
> >> the debugger won't step into the load method eithe
> >>
> >> --
> >> 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
> >
>
>
> This is from the developer
>
> The "can't find loaders" problem you see may happen if the perl module
> dlopens libImlib2.so with RTLD_LOCAL instead of RTLD_GLOBAL.
> A change was introduced in imlib2 version 1.12.4 that requires
> libImlib2.so to be loaded with RTLD_GLOBAL.
>
>
> I would love any hint how I might be able to hack that..
>
>
> --
> 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
>
--00000000000019340f06318e1b41
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Couple of things you could try, modify the=C2=A0Image::Iml=
ib2 module, to have=C2=A0 =C2=A0sub dl_load_flags { 0x102 }=C2=A0 =C2=A0 =
=C2=A0just before the "boostrap" line...<div>so it would look lik=
e (remember to save original)</div><div>..</div><div>$VERSION =3D '2.03=
';<br>sub dl_load_flags { 0x102 };<br>bootstrap Image::Imlib2 $VERSION;=
<br></div><div>...</div><div>or you could try</div><div>export LD_PRELOAD=
=3D/opt/perl/lib/site_perl/5.34.0/x86_64-linux/auto/Image/Imlib2/Imlib2.so =
&& ./<a href=3D"http://runyourperlfile.pl">runyourperlfile.pl</a>=
=C2=A0 =C2=A0(be aware you may want to=C2=A0export LD_PRELOAD=3D after if i=
t messes up some other commands). I'm not sure how this would work with=
the larger setup you have though...<br></div><div><br></div><div><br></div=
></div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr=
" class=3D"gmail_attr">On Sun, Mar 30, 2025 at 11:29=E2=80=AFAM Ruben Safir=
<<a href=3D"mailto:[email protected]">[email protected]</a>> wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/29/25 10:=
59 PM, Ruben Safir wrote:<br>
> I hacked the build file so it will compile but the darn xs <br>
> packages are still not working and I have zero idea how to fix this at=
<br>
> this point.<br>
> <br>
> I have 40 years of photographs and images on that webserver made<br>
> inaccessible by fidiggty coders who had security issue and no added<br=
>
> functionality. They are just damn fidigty.<br>
> <br>
> <br>
> cpan .<br>
> ...<br>
> Configuring /home/ruben/.cpan/build/Image-Imlib2-2.03-0/. with Build.P=
L<br>
> Found imlib2 1.12.4<br>
> Created MYMETA.yml and MYMETA.json<br>
> Creating new 'Build' script for 'Image-Imlib2' version=
'2.03'<br>
> 'YAML' not installed, will not store persistent state<br>
> /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.<br>
> /usr/bin/perl Build.PL installdirs=3Dsite -- OK<br>
> Running Build for /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.<br>
> Building Image-Imlib2<br>
> /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.<br>
> ./Build -- OK<br>
> Running Build test for<br>
> /home/ruben/.cpan/build/Image-Imlib2-2.03-0/.<br>
> t/autocrop.t ...... 1/8 Image::Imlib2 load error: No loader for<br>
> file format at t/autocrop.t line 7.<br>
> ....<br>
> <br>
> It uncovers the error and gives NO HINT how to solve this.<br>
> <br>
> I don't even know where the xs files are being compiled and loaded=
<br>
> <br>
> This could be as easy as an ldd ld.conf problem and I would have no <b=
r>
> clue.<br>
> <br>
> <br>
> <br>
> On Sat, Mar 29, 2025 at 06:31:18PM -0400, Ruben Safir wrote:<br>
>> I fixed the Images::Imlib2 package so it will at least compile buy=
hard<br>
>> coding the pkg-config file instead of the removed imlib2-config<br=
>
>> But it is still not finding the image modules that are used by<br>
>> Image::Imlib2->load()<br>
>>=C2=A0 I'm not really sure where that is even being inherited f=
rom<br>
>>=C2=A0 because I never worked with a C code project encalsulated by=
perl<br>
>><br>
>> the debugger won't step into the load method eithe<br>
>><br>
>> -- <br>
>> So many immigrant groups have swept through our town<br>
>> that Brooklyn, like Atlantis, reaches mythological<br>
>> proportions in the mind of the world - RI Safir 1998<br>
>> <a href=3D"http://www.mrbrklyn.com" rel=3D"noreferrer" target=3D"_=
blank">http://www.mrbrklyn.com</a><br>
>> DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002<br>
>><br>
>> <a href=3D"http://www.nylxs.com" rel=3D"noreferrer" target=3D"_bla=
nk">http://www.nylxs.com</a> - Leadership Development in Free Software<br>
>> <a href=3D"http://www.brooklyn-living.com" rel=3D"noreferrer" targ=
et=3D"_blank">http://www.brooklyn-living.com</a><br>
>><br>
>> Being so tracked is for FARM ANIMALS and extermination camps,<br>
>> but incompatible with living as a free human being. -RI Safir 2013=
<br>
> <br>
<br>
<br>
This is from the developer<br>
<br>
The "can't find loaders" problem you see may happen if the pe=
rl module<br>
dlopens libImlib2.so with RTLD_LOCAL instead of RTLD_GLOBAL.<br>
A change was introduced in imlib2 version 1.12.4 that requires<br>
libImlib2.so to be loaded with RTLD_GLOBAL.<br>
<br>
<br>
I would love any hint how I might be able to hack that..<br>
<br>
<br>
-- <br>
So many immigrant groups have swept through our town<br>
that Brooklyn, like Atlantis, reaches mythological<br>
proportions in the mind of the world - RI Safir 1998<br>
<a href=3D"http://www.mrbrklyn.com" rel=3D"noreferrer" target=3D"_blank">ht=
tp://www.mrbrklyn.com</a><br>
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002<br>
<br>
<a href=3D"http://www.nylxs.com" rel=3D"noreferrer" target=3D"_blank">http:=
//www.nylxs.com</a> - Leadership Development in Free Software<br>
<a href=3D"http://www.brooklyn-living.com" rel=3D"noreferrer" target=3D"_bl=
ank">http://www.brooklyn-living.com</a><br>
<br>
Being so tracked is for FARM ANIMALS and extermination camps,<br>
but incompatible with living as a free human being. -RI Safir 2013<br>
</blockquote></div>
--00000000000019340f06318e1b41--