Wrong JPEG library version

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Noelb
Regular
Posts: 72
Joined: Wed Jul 27, 2011 7:16 am

Wrong JPEG library version

Post by Noelb »

Weirdness, serendipity is the only place I see this problem and get errors
There is only one version of libjpeg on the system, php and gd both refere to it.

php - libjpeg.so.62 => /usr/lib64/libjpeg.so.62
libgd.so.3.0.11 - libjpeg.so.62 => /usr/lib64/libjpeg.so.62

PHP Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Wrong JPEG library version: library is 62, caller expects 90 in /var/www/blog/include/functions_images.inc.php on line 1382

PHP Warning: imagecreatefromjpeg(): '/pth/to/file.jpg' is not a valid JPEG file <-(yes, it is)
PHP Warning: imagesx() expects parameter 1 to be resource, bool given in /var/www/blog/include/functions_images.inc.php on line 1387

PHP Warning: imagesy() expects parameter 1 to be resource, bool given in /var/www/blog/include/functions_images.inc.php on line 1388

PHP Warning: imagecopyresampled() expects parameter 2 to be resource, bool given in /var/www/blog/include/functions_images.inc.php on line 1410

PHP Warning: imagejpeg(): gd-jpeg: JPEG library reports unrecoverable error: Wrong JPEG library version: library is 62, caller expects 90 in /var/www/blog/include/functions_images.inc.php on line 1413

Any Ideas on what this caller is and why it expects a version thats not, nor ever has been on this system? :)

Ta
Noelb
Regular
Posts: 72
Joined: Wed Jul 27, 2011 7:16 am

Re: Wrong JPEG library version

Post by Noelb »

I think I see the issue (isn't it always the way, you find it after your frustration makes you post to a mailing list or forum, then the light shines down)

php 7.4 (at least) includes the bundled gd when building DESPITE being told --with-external-gd

that rant is for another forum :)
onli
Regular
Posts: 2688
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Wrong JPEG library version

Post by onli »

:D Interesting nonetheless, good luck!
Post Reply