FFMpeg-PHP: undefined symbol: php_gd_gdImageSetPixel
Oct3
I was recently updating ffmpeg-php on one of our servers to the latest SVN release of the 0.6.3 branch. On a 64bit CentOS 5.3 with PHP 5.2.11, the extension compiled and installed fine however Apache will not load it and spit out the error below:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ffmpeg.so' - /usr/lib64/php/modules/ffmpeg.so: undefined symbol: php_gd_gdImageSetPixel in Unknown on line 0
Surely enough, the GD extension was there, but why is ffmpeg complaining about not finding that shared symbol? Because, ffmpeg is loading first than GD (alphabetically) and such symbol has not been loaded. After adding the GD extension line on top of ffmpeg making sure it loads first the error went away and all is well again.
Enjoy this article?
Consider subscribing to our RSS feed!













1:04 AM on November 27th, 2009
man, i have to leave you a comment thanking you for this bit of information. i hope others find this page better, as it has taken me quite some time to figure this one out! you’re damn right, ffmpeg.so was getting loaded before gd.so. FIXED!
thanks again.
3:47 PM on November 27th, 2009
Glad to know it helped!
6:19 AM on January 7th, 2010
Thank you, this fixed my problem during a centos 5.4 x86_64 install. Adding extension=gd.so in-front of extension=ffmpeg.so fixed it.