Installation of LDAS (version 0.0.16) ---------------------------------------- Platform: --------- SUN Ultra SPARC II, Solaris 2.6 Prerequisites: -------------- Package mpich-1.2.0 removed by command 'stow --delete mpich-1.2.0' since it is not required and cause conflict with introduced MPI package LAM. All required software is installed or renewed. List of packages in /ldcg/stow directory: BWidget-1.2.1 ObjectSpace-1.2.0 autoconf-2.13 automake-1.4 binutils-2.10.1 cURL-6.4 fftw-2.1.3 gcc-2.95.2 lam-6.3.2 libtool-1.3.3 m4-1.4 make-3.79.1 perceps-3.5.0p1 stow-1.3.2 swig-1.1-883 tcl-8.3.2 tk-8.3.2 Building LDAS -------------- 0) Since during compilation of C++ code via GNU C++ very large assembler files are temporary created there is necessary to have enough disk space (may be more 50 MB) in directory /var/tmp. If there is lack of space in /var/tmp it is recommended to direct compiler to write temporary files in directory /tmp, which usually has more space. It may be achieved by setting environment variable: setenv TMPDIR /tmp 1) Package unpacked. 2) Shared library libposix4 is required for building test porgrams in Solaris 2.6 environment. Othervise build script exits with error message: /ldcg/lib/libospace.so.0: undefined reference to `sched_yield' File 'ldas-0.0.16/lib/framecpp/tests/Makefile.in' was edited to add option '-lposix4' at the end of defintion of every variable 'xxxxx_LDADD': frmts_LDADD = ../src/libframecpp.la -lz -lposix4 3) Command './build-ldas --prefix=/ldcg --enable-metadata-api=no' issued in directory 'ldas-0.0.16' Build script exited with error message. ---------------------------------------- make[5]: Entering directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/ genericAPI/so/doc/html' Makefile:244: *** target pattern contains no `%'. Stop. make[5]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/g enericAPI/so/doc/html' make[4]: *** [all-recursive] Error 1 4) Line 244 in file ldas-0.0.16/SunOS-sun4u/api/genericAPI/so/doc/html/Makefile changed from: perceps_cc_toc $(perceps_cc_docs): $(docfiles) $(giffiles) to: perceps_cc_toc: Then command 'make' issued in directory ldas-0.0.16/SunOS-sun4u/. Compilation proceeded untill next error. 5) Line 242 in file ldas-0.0.16/SunOS-sun4u/api/frameAPI/so/doc/html/Makefile changed from: perceps_cc_toc $(perceps_cc_docs) : $(docfiles) $(giffiles) to: perceps_cc_toc: Then command 'make' issued in directory ldas-0.0.16/SunOS-sun4u/. Compilation proceeded untill next error: ------------------------------------------ c++ -DHAVE_CONFIG_H -I. -I../../../../../api/wrapperAPI/so/src -I. -I../../../ ../api/genericAPI/so/src -I../../../../include -I../../../../lib/ilwd/src -I../. ./../../include -I../../../../lib/general/src -I../../../../include -O2 -I/ldcg/ include -I/ldcg/stow_pkgs/lam-6.3.2/include -I/ldcg/stow_pkgs/lam-6.3.2/include/ mpi2c++ -I../../../../api/genericAPI/so/src -I../../../../include -I../../../. ./lib/ilwd/src -I../../../../include -I../../../../lib/general/src -I../../../.. /include -Wall -DLDAS_BUILD -g -O2 -O2 -D_REENTRANT -I/ldcg/include -c ../../.. /../../api/wrapperAPI/so/src/msgserver.cc In file included from ../../../../include/ilwd/ldascontainer.hh:35, from ../../../../../api/wrapperAPI/so/src/initargs.hh:14, from ../../../../../api/wrapperAPI/so/src/msgserver.cc:12: ../../../../include/general/util.hh:113: warning: aggregate has a partly bracket ed initializer ../../../../include/general/util.hh:113: warning: aggregate has a partly bracket ed initializer ../../../../../api/wrapperAPI/so/src/msgserver.cc: In method `void MsgServer::co nnectClient()': ../../../../../api/wrapperAPI/so/src/msgserver.cc:128: passing `UINT4 *' as argu ment 3 of `accept(int, sockaddr *, int *)' changes signedness ../../../../../api/wrapperAPI/so/src/msgserver.cc: In method `class MsgSocket Ms gServer::getConnection(bool = false)': ../../../../../api/wrapperAPI/so/src/msgserver.cc:201: passing `UINT4 *' as argu ment 3 of `accept(int, sockaddr *, int *)' changes signedness make[4]: *** [msgserver.o] Error 1 make[4]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/w rapperAPI/so/src' ------------------------------------ 6) File ldas-0.0.16/api/wrapperAPI/so/src/msgserver.cc" line 123 UINT4 replaced by INT4 File ldas-0.0.16/api/wrapperAPI/so/src/msgserver.cc" line 196 UINT4 replaced by INT4 Then command 'make' issued in directory ldas-0.0.16/SunOS-sun4u/. Compilation proceeded untill next error: ------------------------------------------ c++ -I../../../../api/genericAPI/so/src -I../../../../include -I../../../../lib /ilwd/src -I../../../../include -I../../../../lib/general/src -I../../../../incl ude -Wall -DLDAS_BUILD -g -O2 -O2 -D_REENTRANT -I/ldcg/include -L../../../../ap i/genericAPI/so/src/.libs -L../../../../lib/ilwd/src/.libs -L../../../../lib/gen eral/src/.libs -O2 -L/ldcg/lib -o wrapperAPI -lgeneral -lilwd -lgenericAPI -lAp iCommon -ltcl8.3 -ltclstub8.3 dynamiccom.o initargs.o mpiargs.o mpicmdargs.o lda serror.o ldasdatatype.o multidimdata.o mpiutil.o msgsocket.o intervaltype.o mpil altypes.o ldasdata.o historytype.o statevectype.o inputdatatype.o databasetype.o outputtype.o ldasrequest.o loadbalance.o nodeinfo.o mpidatautil.o nodemanager.o mastermanager.o slavemanager.o msgserver.o -lpthread -lsocket -lsocket -L/ld cg/stow_pkgs/lam-6.3.2/lib -lmpi++ -lmpi -ltstdio -ltrillium -largs -lt -lsocket -lnsl -lgen ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `deflate' ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `inflate' ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `inflateInit_' ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `deflateInit_' ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `inflateEnd' /ldcg/lib/libospace.so.0: undefined reference to `sched_yield' ../../../../lib/ilwd/src/.libs/libilwd.so: undefined reference to `deflateEnd' collect2: ld returned 1 exit status make[4]: *** [wrapperAPI] Error 1 make[4]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/w rapperAPI/so/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/w rapperAPI/so' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api/w rapperAPI' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api' make: *** [all-recursive] Error 1 7) At the end of line 113 in file ldas-0.0.16/SunOS-sun4u/api/wrapperAPI/so/src/Makefile '-lposix4 -lz' was added to the definition of variable 'LIBS'. LIBS= .... -lposix4 -lz Then command 'make' issued in directory ldas-0.0.16/SunOS-sun4u/. Compilation proceeded untill next error: ------------------------------------------ make[2]: Entering directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api' chmod -f 0775 ./tcldoc mkdir -p ./tcl_docs ( for file in \ ../../api/hotgrep \ ../../api/*/tcl/*.tcl \ ../../api/*/tcl/client/cmon* \ ../../api/*/tcl/server/db2utils* \ ../../api/*/tcl/server/logscan* \ ../../api/*/tcl/server/snapSysData* \ ../../api/*/tcl/server/*.tcl \ ./bin/LDASapi.rsc \ ../../api/*/tcl/macros/meta/*.meta \ ../../api/*/tcl/macros/frame/*.frame \ ../../api/*/tcl/macros/datacond/*.datacond \ ../../api/*/tcl/macros/ligolw/*.ligolw \ ../../api/*/tcl/macros/manager/*.manager \ ../../api/*/tcl/macros/metadata/*.metadata \ ../../api/*/tcl/macros/mpi/*.mpi \ ../../api/metadataAPI/tcl/test/examples.sql; \ do \ test -f $file && ./tcldoc $file; \ done; \ /bin/mv *.html ./tcl_docs; \ true; \ ) Bus Error make[2]: Leaving directory `/ligo/tmp3/sw/install3/ldas-0.0.16/SunOS-sun4u/api' The source of this error is unclear. If expression inside round brackets is passed as script to 'sh' then it works. If expression inside round brackets is passed as script to 'bash' (ver. 2.03) then it fails with 'Bus error'. 9) In file"SunOS-sun4u/api/Makefile" line 375 changed all-local: tclDocs to all-local: 10) 'make install' issued in directory ldas-0.0.16/SunOS-sun4u/ finishes installation of LDAS chmod -R o-rwx /ldcg chmod: WARNING: can't change /ldcg make[2]: *** [dbms_docs_install] Error 1 11) Command sh -c 'make -i install > install.log 2>&1' allows make to ignore those insignificant errors and resume installation. ------------------------------------ A.Sazonov April 17 2001