ID: 38868 Updated by: [EMAIL PROTECTED] Reported By: flconseil at yahoo dot fr Status: Feedback Bug Type: Compile Failure Operating System: AIX 5.2 PHP Version: 5.1.6 New Comment:
make sure you're using GNU ld and GNU buildtools. Previous Comments: ------------------------------------------------------------------------ [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
