ID: 38868 User updated by: flconseil at yahoo dot fr Reported By: flconseil at yahoo dot fr -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: AIX 5.2 PHP Version: 5.1.6 New Comment:
OK. I was using GNU make but not GNU ld. I am going to try it. Previous Comments: ------------------------------------------------------------------------ [2006-09-18 16:48:18] [EMAIL PROTECTED] Please read my previous comments. ------------------------------------------------------------------------ [2006-09-18 16:43:11] flconseil at yahoo dot fr Same problem with 5.1.2. Here are the exact error messages : PHP Warning: dl(): Unable to load dynamic library '/logi/http/php/lib/php/extensions/gd.so' - rtld: 0712-001 Symbol sqrt was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol atan2 was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol sin was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol cos was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol tan was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol floor was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition o in /logi/http/comp/util/.data/test.php on line 22 Warning: dl(): Unable to load dynamic library '/logi/http/php/lib/php/extensions/gd.so' - rtld: 0712-001 Symbol sqrt was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol atan2 was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol sin was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol cos was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol tan was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol floor was referenced from module /logi/http/php/lib/php/extensions/gd.so(), but a runtime definition o in /logi/http/comp/util/.data/test.php on line 22 ------------------------------------------------------------------------ [2006-09-18 16:29:42] [EMAIL PROTECTED] make sure you're using GNU ld and GNU buildtools. ------------------------------------------------------------------------ [2006-09-18 16:22:43] [EMAIL PROTECTED] Can't reproduce on AIX 5.1. PHP itself is linked with libm, so it should not matter whether extension itself is linked or not. ------------------------------------------------------------------------ [2006-09-18 16:00:04] flconseil at yahoo dot fr Description: ------------ Building PHP 5.1.6 on AIX 5.2. GD compiled in shared mode. gd.so is linked without the math library (-lm). Then, when loading the GD extension, we get an error for all the math functions it is using (sqrt(), ...). Workaround: after having built everything and before install : rm ext/gd/gd.so gmake LDFLAGS="$LDFLAGS -lm" and, now, it can be loaded. Reproduce code: --------------- ./configure --with-gd=shared and then loading gd. Expected result: ---------------- load OK Actual result: -------------- I don't have the exact messages but they are all about unsesolved symbols from the math library (there is at least sqrt()). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38868&edit=1