[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool installation problem

From: Ralf Wildenhues
Subject: Re: libtool installation problem
Date: Mon, 21 Mar 2005 08:30:57 +0100
User-agent: Mutt/1.4.1i

Hi Ambarish,

I'm sorry for taking so long to respond.
Something just dawned on me, looking at
all the Solaris test failures reported.

* Ambarish Mitra wrote on Thu, Jan 20, 2005 at 10:12:09AM CET:
> * Ambarish Mitra wrote on Tue, Jan 18, 2005 at 10:06:38AM CET:
> >
> > I downloaded the following package package from
> > http://www.sunfreeware.com/indexsparc8.html
> > PACKAGE: libtool-1.5.tar.gz
> > I am using Solaris under Sparc and the version is 8.
> > bash-2.03$ uname -a
> > SunOS hostsun1 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-5_10
> > A snippet of the output of make check is pasted below.
> > ====================================
> > 4 of 101 tests failed
> > (4 tests were not run)
> > Please report to address@hidden
> > ====================================
> I will answer your specific questions now:
> 1) In all, it showed 4 tests failed: (I do not know, but tagdemo-make.test
> appeared 3 times)
>       -       demo-make.test
>       -       tagdemo-make.test

The demo failure should be fixed in a newer Libtool release (it skips
that test, which is ok for Solaris).

For the other failures, for example tagdemo-make after tagdemo-static:

| g++ -g -O2 -o tagdemo main.o  ./.libs/libbaz.a 
-L/usr2/SOURCES/S8/gcc-3.3/objdir/gcc -L/usr/local/sparc-sun-solaris2.8/bin 
/usr/local/lib/./libstdc++.so -lgcc_s -Wl,-R -Wl,/usr/local/lib/. -Wl,-R 
| ld: warning: file 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/../../libstdc++.so: linked to 
/usr/local/lib/./libstdc++.so: attempted multiple inclusion of file
| Undefined                       first referenced
|  symbol                             in file
| cout                                main.o
| endl(ostream &)                     main.o
| ostream::operator<<(char const *)   main.o
| ostream::operator<<(double)         ./.libs/libbaz.a(foo.o)
| ostream::operator<<(int)            main.o
| ld: fatal: Symbol referencing errors. No output written to tagdemo

You have a custom gcc installation.  Please show the output of
$ g++ -v
and take a show the .la files installed under that prefix, for example

I bet they contain references to within the build tree, in your case
that would be /usr2/SOURCES/S8/gcc-3.3/objdir/.  These references are
wrong.  I have seen this behavior before, I do not know whether it is
a bug of the gcc-provided libtool.

Remove all these references by hand and rerun the libtool test suite,

Thank you,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]