This is the first time I try this alias. Sorry if this is not the right one to post for assistance.
My customer target platform (Ultra60 hardware running Solaris 8) does not contain the patch for the shared library /usr/lib/libmtsk.so. They are on a closed, classified network, and it is not trivial to obtain permission to install a patch. The old forte 6 compiler came with a libmtsk.a that they statically linked in. The new version of Sunstudio 11 does not have the static libmtsk.a. Is there a way to remove the dependency on libmtsk.o for a fortran compile? If not, is there a way to statically link to it? Cust has the following: /usr/ccs/bin/ld -t -R/opt/SUNWspro/lib/v8plus:/opt/SUNWspro/lib -o progname <our objects> <our libs> -Bstatic -lf77compat -lfui <... a bunch more libs> -Bdynamic -lmtsk -Bstatic -lm -lc /opt/SUNWspro/prod/lib/crtn.o They put in the first -Bdynamic. The libraries were filled in automoatically. Their problem is "-Bstatic -lmtsk". They don't know where it comes from and why it suddenly switches to dynamic when all the other libraries are static. Customet has distilled their problem down to the simplest possible case as below. Othen than to get the patch, I don't have a better clue in this. Any suggestion/information is appreciated. Thanks, Yu-Jing ================= e.g. helloworld.f: PROGRAM helloworld print *, "Hello World!" END program helloworld he is not linking in any other libraries. Compile output: f90 -c -v -Bstatic helloworld.f ### command line files and options (expanded): ### -c -v -Bstatic helloworld.f ### f90: Note: NLSPATH = /opt/SUNWspro/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/prod/bin /../../lib/locale/%L/LC_MESSAGES/%N.cat /opt/SUNWspro/prod/bin/f90comp -y-o -yhelloworld.o -ev -y-trap=common -m3 -dq -y-fbe -y/opt/SUNWspro/bin/fbe -y-xarch=generic -H "/opt/SUNWspro/prod/bin/f90 -c -v " -y-xcache=generic -xcache=generic -I/opt/SUNWspro/prod/include/f95/v8 -p/opt/SUNWspro/lib/modules -y-verbose -xall -xmemalign=8i -y-xmemalign=8i -y-xdbggen=no%dwarf2+stabs -xassume_control=optimize -y-xassume_control=optimize -iorounding=processor-defined -xhasc=yes helloworld.f Link output: f90 -v -Bstatic -o helloworld helloworld.o ### command line files and options (expanded): ### -v -Bstatic -o helloworld helloworld.o ### f90: Note: NLSPATH = /opt/SUNWspro/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/pro d/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat ### f90: Note: LD_LIBRARY_PATH = (null) ### f90: Note LD_RUN_PATH = (null) ### f90: Note: LD_OPTIONS = (null) /usr/ccs/bin/ld -t -R/opt/SUNWsproo/lib/v8plus:/opt/SUNWspro/lib -o helloworld /opt/SUNWspro/prod/lib/crti.o /opt/SUNWspro/prod/lib/crt1.o /opt/SUNWspro/prod/lib/misalign.o /opt/SUNWspro/prod/lib/values-xi.o -Y -P,/opt/SUNWspro/lib/v8plus:/opt/SUNWspro/prod/lib/v8plus:/opt/SUNWspro/lib: /opt/SUNWspro/prod/lib:/usr/cc/lib:/lib:/usr/lib -Bstatic helloworld.o -lfui -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai -lfminvai -lfmaxvai -lfsu -lsunmath -Bdynamic -lmtsk -Bstatic -lm -lc /opt/SUNWspro/prod/lib/crtn.o
