From: Robert R. <re...@ii...> - 2004-07-28 15:08:07
|
Hi Trying to build the latest octave-forge release (2004.07.07) on solaris (sparc) 2.8 using gcc 3.4.1 with octave 2.1.57 I ran into a couple of problems. To get through the build process, I had to do use the following workarounds. Some of this is probably due to the exact setup here, some of them might be more general problems. - /bin/sh versus /bin/bash The octave-forge build seems to assume that /bin/sh actually is a bash shell, which it isn't on a std solaris box. I therefore changed "/bin/sh" to "/bin/bash" in the following places: - Makeconf (SHELL = ...) - all *.sh files in all directories (#!/bin/bash, not #!/bin/sh). - term.h does not compile on solaris if curses.h isn't included first. For this, I commented out the TERM_H and TERMCAP stuff in Makeconf. This should probably be handled better by the configure process, but I don't know enough about that to try to fix it. - "-R" option in "X_LIBS" My configure sets "-R/usr/openwin/lib" in X_LIBS, which leads to problems since mkoctfile does not accept "-R". I therefore removed the "-R" option from X_LIBS in Makeconf (might lead to problems later on, but at least build should work ...). - dispatch.cc doesn't compile gcc does not compile the last statement in main/miscellaneous/dispatch.cc ("template std::map<std::string,std::string>;"). I therefore commented that out. - installing: install-sh not found due to relative path. install-sh is set with a relative path ("./install-sh") in Makeconf and octinst.sh (INSTALL = ...). This fails when INSTALL is executed in subdirs. I therefore set this to the full absolute path to install-sh in those two definitions. With this, I can build and install octave-forge. gmake check fails (segmentation violation while in main/signal). I don't know yet, what other problems I still have. If anybody has experience with building octave and octave-forge on solaris 2.8 with gcc I'll be thankful for any hints and better solutions. Versions: - sparc-sun-solaris2.8 - octave 2.1.57 - octave-forge 2004.07.07 - gcc 3.4.1 - autoconf 2.59 - automake 1.8b - gmake 3.80 Thanks, Robert |