Topic: Help with Installation on Solaris

Hi

I am trying to install OOFEM-1.8 on Solaris. I am facing problem when I compile using "make".

Following is the output from the ./configure and make commands.


abhishek@abhishek-zone$ ./configure OOFEM_TARGET=unopt
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking OOFEM_DIR... /gdzusers/abhishek/oofem-1.8
configuring OOFEM_TARGET=unopt
existing target directory found
target directory configured
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... yes
checking how to run the C++ preprocessor... CC -E
checking for a BSD-compatible install... ./install.sh -c
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strncasecmp... yes
checking for access... yes
checking for nearest... no
checking FALSE, TRUE enum/constants... no
checking typedef bool... yes
checking M_PI constant... yes
checking M_LN2 constant... yes
checking STL support... yes
checking Macro __VA_ARGS__ support... yes
checking Function Templates support... yes
checking for sqrt in -lm... yes
checking Determining hostname... uname: error in setting name: Not owner

checking OOFEM version... 1.8
configure: creating ./config.status
config.status: creating makefile
config.status: creating targets/unopt/include/oofemdef.h
config.status: creating targets/unopt/makefile
config.status: creating targets/unopt/lib/oofemlib/makefile
config.status: creating targets/unopt/lib/sm/makefile
config.status: creating targets/unopt/lib/tm/makefile
config.status: creating targets/unopt/lib/fm/makefile
config.status: creating targets/unopt/lib/dss/makefile
config.status: creating targets/unopt/lib/main/makefile
config.status: creating tools/makefile
config.status: creating targets/unopt/include/oofemcfg.h
config.status: targets/unopt/include/oofemcfg.h is unchanged

Modules to be included: oofemlib sm tm fm
Target configured: unopt
PROG_NAME: oofem
abhishek@abhishek-zone$ make OOFEM_TARGET=unopt
if [ -d targets/unopt ]; then \
        cd targets/unopt; make OOFEM_TARGET=unopt;\
        echo;\
        echo unopt target done;\
        echo;\
else\
        echo ;\
        echo Error: unopt not configured;\
        echo ;\
fi
make: Fatal error in reader: makefile, line 9: Unexpected end of line seen
Current working directory /gdzusers/abhishek/oofem-1.8/targets/unopt
*** Error code 1
make: Fatal error: Command failed for target `all'



Kindly help me in this regards

2

Re: Help with Installation on Solaris

Hi,

as we have solved the problem in private e-mail communication, I am posting here the procedure, how to compile oofem under Solaris, as it may help other users working in this environment.

1) GNU make is required, the system default make tool reports errors. The gnu make can be download from here:
http://ftp.gnu.org/pub/gnu/make/

2) The oofem uses timersub and  timeradd routines. The timeradd()  adds  the time values (of type  struct timeval ) in a and b, and places the sum in the last parameter. The timersub() subtracts the time value in b from the time value in a, and places the result in the last parameter.
One can have a look in your system routines for a similar one. If you can live without oofem time reporting, you can comment out these sections safely (for example by putting #define _MSC_VER at the beginning of timer.h file).


After these modifications, oofem has been successfully compiled on Solaris.

Borek

Re: Help with Installation on Solaris

That was truly a usual information. It will help a lot to have an idea on the proper procedure on compiling on Solaris.

Great thanks!

4 (edited by AndrewSlayton 27-09-2021 14:40:16)

Re: Help with Installation on Solaris

hfronstve wrote:

That excellent Proextender article was truly a usual information. It will help a lot to have an idea on the proper procedure on compiling on Solaris.

Great thanks!

Hey BP thanks so much for posting the solution. I can't tell you how many times I've seen posts on forums where the person's just said "don't worry I've fixed it my self" and not posted the solution. So thanks again for posting.

5 (edited by Nicole53 01-10-2010 04:30:24)

Re: Help with Installation on Solaris

Wow!

Thanks for the informative info...
Really helps on me...
I really learn in this site...
Thank you for sharing....
how to treat depression