From bug-octave-request at bevo dot che dot wisc dot edu Fri Oct 29 16:35:46 1999 Subject: octave-2.1.xxx installation problems on irix6.5 From: "Billinghurst, David (RTD)" To: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 29 Oct 1999 16:35:16 -0500 (CDT) I have been unable to build libcruft for octave-2.1.xxx on irix6.5. I have finally managed to find the problem and solve it. System: SGI Irix 6.5.3 Compilers: gcc 2.95.1 (and others) Make: GNU make 3.75 -> 3.78.1 Configure with ac_cv_lib_elf_nlist=no ac_cv_lib_gen_getmntent=no ac_cv_lib_sun=no ac_cv_lib_sun_getpwnam=no ac_cv_lib_sun_getmntent=no ac_cv_lib_sun_yp_match=no ac_cv_lib_socket=no ${SRCDIR}/configure \ --enable-shared \ --disable-static \ --enable-lite-kernel \ --enable-dlopen Problem Compilation of libcruft/misc/machar.o fails because special CFLAGS are not passed to it Real problem With the above combination of configure options, and on Irix 6, the target "all" in all the subdirectories of libcruft is empty. The rule is pic $(LIBCRUFT_DEPEND) $(CRUFT_PICOBJ) $(SPECIAL_PICDEPEND) and each of the dependency macros is empty as SHARED_LIBS is true but FPICFLAG is empty Solution The following patch to libcruft/Makerules.in solves the problem for me *** libcruft/Makerules.in.0 Fri Oct 29 15:06:27 1999 --- libcruft/Makerules.in Fri Oct 29 15:09:32 1999 *************** *** 14,26 **** DISTFILES = Makefile.in $(SOURCES) $(SPECIAL) ! CRUFT_FSRC = $(wildcard $(srcdir)/*.f) ! CRUFT_BASE = $(notdir $(CRUFT_FSRC)) ! CRUFT_OBJ = $(patsubst %.f, %.o, $(CRUFT_BASE)) ifeq ($(SHARED_LIBS), true) ifdef FPICFLAG CRUFT_PICOBJ := $(addprefix pic/, $(CRUFT_OBJ)) endif endif --- 14,30 ---- DISTFILES = Makefile.in $(SOURCES) $(SPECIAL) ! CRUFT_SRC = $(wildcard $(srcdir)/*.f) \ ! $(wildcard $(srcdir)/*.c) \ ! $(wildcard $(srcdir)/*.cc) ! CRUFT_BASE = $(basename $(notdir $(CRUFT_SRC)) ) ! CRUFT_OBJ = $(addsuffix .o, $(CRUFT_BASE) ) ifeq ($(SHARED_LIBS), true) ifdef FPICFLAG CRUFT_PICOBJ := $(addprefix pic/, $(CRUFT_OBJ)) + else + CRUFT_PICOBJ := $(CRUFT_OBJ) endif endif +++++++++++++++++++++++++++++++++++++++++ (Mr) David Billinghurst Comalco Research Centre PO Box 316, Thomastown, Vic, Australia, 3074 Phone: +61 3 9469 0642 FAX: +61 3 9462 2700 Email: David dot Billinghurst at riotinto dot com dot au --------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. To ensure that development continues, see www.che.wisc.edu/octave/giftform.html Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html ---------------------------------------------------------------------