[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with cvs-libtool and Solaris CC
From: |
Erik Assum |
Subject: |
Re: Problems with cvs-libtool and Solaris CC |
Date: |
08 Jan 2003 10:13:10 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
* Robert Boehne
| Could you give a bit more detail as to what the problem is?
| You say it compilains about "x", could you send us an
| error message?
Of course!
/opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include
-I/segfs/tango/ORB/omniORB4.0.0/solaris7_CC/include -mt -mt -c
pollthread.cpp -o pollthread.o >/dev/null 2>&1
/bin/bash ../../../libtool --mode=link /opt/SUNWspro/bin/CC -mt -mt -o
libtango.la -rpath /users/taurel/tmp/erik/16-12/install_dir_sol/lib
-version-info 2:2:2 version.lo tangoSK.lo tangoDynSK.lo device.lo
device_2.lo command.lo dserversignal.lo thsig.lo basiccommand.lo utils.lo
dserverclass.lo dserver.lo class_factory.lo blackbox.lo classattribute.lo
multiattribute.lo attribute.lo attrdesc.lo except.lo attrmanip.lo seqvec.lo
pollring.lo pollobj.lo pollcmds.lo dserverpoll.lo pollthread.lo
../client/libclient.la -lpthread -lposix4
-L/segfs/tango/ORB/omniORB4.0.0/solaris7_CC/lib -lomniORB4 -lomniDynamic4
-lpthread -lposix4 -lomnithread -lnsl -lsocket
-L/segfs/tango/ORB/omniORB4.0.0/solaris7_CC/lib -lpthread -lposix4
-lomnithread -lpthread -lposix4
/opt/SUNWspro/bin/CC -G -nolib -hlibtango.so.0 -o .libs/libtango.so.0.2.2
.libs/version.o .libs/tangoSK.o .libs/tangoDynSK.o .libs/device.o
.libs/device_2.o .libs/command.o .libs/dserversignal.o .libs/thsig.o
.libs/basiccommand.o .libs/utils.o .libs/dserverclass.o .libs/dserver.o
.libs/class_factory.o .libs/blackbox.o .libs/classattribute.o
.libs/multiattribute.o .libs/attribute.o .libs/attrdesc.o .libs/except.o
.libs/attrmanip.o .libs/seqvec.o .libs/pollring.o .libs/pollobj.o
.libs/pollcmds.o .libs/dserverpoll.o .libs/pollthread.o -Qoption ld -z
-Qoption ld allextract ../client/.libs/libclient.a -Qoption ld -z -Qoption
ld defaultextract -L/segfs/tango/ORB/omniORB4.0.0/solaris7_CC/lib
-lomniORB4 -lomniDynamic4 -lnsl -lsocket -lomnithread -lpthread -lposix4 -lc
(cd .libs && rm -f libtango.so.0 && ln -s libtango.so.0.2.2 libtango.so.0)
(cd .libs && rm -f libtango.so && ln -s libtango.so.0.2.2 libtango.so)
rm -fr .libs/libtango.lax
mkdir .libs/libtango.lax
rm -fr .libs/libtango.lax/libclient.a
mkdir .libs/libtango.lax/libclient.a
(cd .libs/libtango.lax/libclient.a && /opt/SUNWspro/bin/CC -xar x
/users/taurel/tmp/erik/16-12/tango-2.1.3/lib/cpp/server/../client/.libs/libclient.a)
CC: Outfile required when -xar flag is used
As you see, CC is called with -xar, which I believe is correct, but I
don't know what the `x' is supposed to do. As you saw in the previous
mail, I found the following bit of code in the generated libtool:
| > # The archiver.
| > AR="/opt/SUNWspro/bin/CC -xar"
| > AR_FLAGS="-o"
Which seems to be correct, but further down.
| > if test -n "$convenience"; then
| > if test -n "$whole_archive_flag_spec"; then
| > save_libobjs=$libobjs
| > eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
| > else
| > gentop="$output_objdir/${outputname}x"
| > $show "${rm}r $gentop"
| > $run ${rm}r "$gentop"
| > $show "$mkdir $gentop"
| > $run $mkdir "$gentop"
| > status=$?
| > if test "$status" -ne 0 && test ! -d "$gentop"; then
| > exit $status
| > fi
| > generated="$generated $gentop"
| >
| > for xlib in $convenience; do
| > # Extract the objects.
| > case $xlib in
| > [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
| > *) xabs=`pwd`"/$xlib" ;;
| > esac
| > xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
| > xdir="$gentop/$xlib"
| >
| > $show "${rm}r $xdir"
| > $run ${rm}r "$xdir"
| > $show "$mkdir $xdir"
| > $run $mkdir "$xdir"
| > status=$?
| > if test "$status" -ne 0 && test ! -d "$xdir"; then
| > exit $status
| > fi
| > $show "(cd $xdir && $AR x $xabs)"
| > $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
| >
| > libobjs="$libobjs "`find $xdir -name \*.$objext -print -o
-name \*.lo -print | $NL2SP`
| > done
| > fi
| > fi
The
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
looks a bit strange to me?
Erik.
--
"There seems to be a very, very fine line between cutting-edge physicists
and utter nutballs." -- Steve VanDevender in the monastery