I have made packages for the latest apache, apr, and apr-util recently, which requires that I recompile the PHP SAPI for apache. I figured this would be easy because it's already been worked out as a nekoware package, but I'm running into some odd problems with the configure script:
First off, using the --with-mcrypt flag causes the script to return
I've found mentions of this problem all over the web, but no solutions. If I remove --with-mcrypt and run configure again, it fails on mysql checking. Here is the end of config.log:
I think the problem here is the -L/usr/lib that shows up in the compiler line, which is not in my LDFLAGS, so the php configure script must be inserting it on its own. For the record, I tried compiling the latest version of php 5.2 a couple months ago and had the exact same problems with it. Since 5.2.1 is in nekoware/current, I figure there must be at least a handful of people hanging around who have built php 5.2.x successfully on IRIX. Any ideas?
First off, using the --with-mcrypt flag causes the script to return
Code:
checking for mcrypt support... yes, shared
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.
I've found mentions of this problem all over the web, but no solutions. If I remove --with-mcrypt and run configure again, it fails on mysql checking. Here is the end of config.log:
Code:
1. int main() {
2. mysql_close()
3. ; return 0; }
4. configure:58241: checking for mysql_error in -lmysqlclient
5. configure:58260: c99 -o conftest -I/usr/include -O3 -mips4 -I/usr/nekoware/include -TARG:platform=IP35:proc=r14000 -I/usr/nekoware/include -I/usr/include -D_XPG_IV -Wl,-rpath,/usr/nekoware/mysql5/lib/mysql -L/usr/nekoware/mysql5/lib/mysql -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/lib -L/usr/nekoware/lib -L/usr/nekoware/lib -Wl,-rpath -Wl,/usr/nekoware/lib -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib conftest.c -lmysqlclient -ldb-4.4 -lz -lm -lxml2 -lz -liconv -lm 1>&5
6. ld32: FATAL 12 : Expecting n32 objects: /usr/lib/crt1.o is o32.
7. configure: failed program was:
8. #line 58249 "configure"
9. #include "confdefs.h"
10. /* Override any gcc2 internal prototype to avoid an error. */
11. /* We use char because int might match the return type of a gcc2
12. builtin and then its argument prototype would still apply. */
13. char mysql_error();
14.
15. int main() {
16. mysql_error()
17. ; return 0; }
2. mysql_close()
3. ; return 0; }
4. configure:58241: checking for mysql_error in -lmysqlclient
5. configure:58260: c99 -o conftest -I/usr/include -O3 -mips4 -I/usr/nekoware/include -TARG:platform=IP35:proc=r14000 -I/usr/nekoware/include -I/usr/include -D_XPG_IV -Wl,-rpath,/usr/nekoware/mysql5/lib/mysql -L/usr/nekoware/mysql5/lib/mysql -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib -L/usr/lib -L/usr/nekoware/lib -L/usr/nekoware/lib -Wl,-rpath -Wl,/usr/nekoware/lib -Wl,-rpath,/usr/nekoware/lib -L/usr/nekoware/lib conftest.c -lmysqlclient -ldb-4.4 -lz -lm -lxml2 -lz -liconv -lm 1>&5
6. ld32: FATAL 12 : Expecting n32 objects: /usr/lib/crt1.o is o32.
7. configure: failed program was:
8. #line 58249 "configure"
9. #include "confdefs.h"
10. /* Override any gcc2 internal prototype to avoid an error. */
11. /* We use char because int might match the return type of a gcc2
12. builtin and then its argument prototype would still apply. */
13. char mysql_error();
14.
15. int main() {
16. mysql_error()
17. ; return 0; }
I think the problem here is the -L/usr/lib that shows up in the compiler line, which is not in my LDFLAGS, so the php configure script must be inserting it on its own. For the record, I tried compiling the latest version of php 5.2 a couple months ago and had the exact same problems with it. Since 5.2.1 is in nekoware/current, I figure there must be at least a handful of people hanging around who have built php 5.2.x successfully on IRIX. Any ideas?
_________________