Further correspondence with Zach confirms that the behaviour of ln on IRIX is different than Linux or FreeBSD.
Description
Sgi IRIX 6.5.28
Originally reported by Zach McDanel:
Python 2.4.1, removed a reference in makefile to libmpc cause it was causing problems with mod_python compile and Apache 2.0.54
mod_python 3.1.4
this is the error I'm getting, I tracked down that it occurs in dist/Makefile
ln -s ../lib/python/mod_python
Insufficient arguments
Usage: ln [-fis] file1 file2
ln [-fis] file1 ... file2 dir
*** Error code 2 (bu21)
*** Error code 1 (bu21)
Further correspondence with Zach confirms that the behaviour of ln on IRIX is different than Linux or FreeBSD.
Fixed dist/Makefile so it works on IRIX. The ln command in linux and bsd has the format
ln [OPTION]... TARGET [LINK_NAME]
where LINK_NAME is option. On IRIX, LINK_NAME is required. The fix is trivial - explicitly
give the LINK_NAME wherever "ln -s" is used.
Ref MODPYTHON-80
Index: dist/Makefile.in
===================================================================
--- dist/Makefile.in (revision 280687)
+++ dist/Makefile.in (working copy)
@@ -44,10 +44,10 @@
exit 1
mod_python:
- ln -s ../lib/python/mod_python
+ ln -s ../lib/python/mod_python mod_python
src:
- ln -s ../src
+ ln -s ../src src
clean:
rm -rf mod_python build dist