[Top][All Lists]

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

Re: Weird problem with LIBADD

From: Ralf Wildenhues
Subject: Re: Weird problem with LIBADD
Date: Fri, 6 Oct 2006 15:43:07 +0200
User-agent: Mutt/1.5.13 (2006-09-08)

Hello Sylvestre,

I can look at your issue sometime next week at the earliest, but here
are some quick notes:

* Sylvestre Ledru wrote on Fri, Oct 06, 2006 at 03:24:27PM CEST:
> This lib has many dependencies.

The following: ...

> libcore_la_DEPENDENCIES = \
> $(top_builddir)/libs/blas/ \
> $(top_builddir)/libs/lapack/ \
> $(top_builddir)/libs/MALLOC/ \
> $(top_builddir)/modules/cacsd/ \
> $(top_builddir)/modules/differential_equations/ \
> $(top_builddir)/modules/polynomials/ \
> $(top_builddir)/modules/elementaries_functions/ \
> $(top_builddir)/modules/signal_processing/
> libcore_la_LIBADD = $(libcore_la_DEPENDENCIES)

... is shorter (and more precisely) written as follows: ...

libcore_la_LIBADD = \
$(top_builddir)/libs/blas/ \
$(top_builddir)/libs/lapack/ \
$(top_builddir)/libs/MALLOC/ \
$(top_builddir)/modules/cacsd/ \
$(top_builddir)/modules/differential_equations/ \
$(top_builddir)/modules/polynomials/ \
$(top_builddir)/modules/elementaries_functions/ \

... because Automake is able to compute libcore_la_DEPENDENCIES from
this.  If this causes any kind of issues, please report them.  Thanks.

> However, when I try to compile this, it says that :
> grep: /home/sylvestre/dev/scilab5/modules/core/ No such file
> or directory

> When I commet the last line of DEPENDENCIES
> ($(top_builddir)/modules/signal_processing/, it
> is working... I have this problem when I try to include other libs.

Show how you create this library:
(i.e., the command line used to create it).  It looks like it depends on (which would be a circular dependency).

> It is not the first time that I see that with the autotools.

It would be the first time that I see that and at the same time it were
not a user error.  ;-)

> I am using automake 1.9.6, autoconf 2.60a and libtool 2.1a.

> PS 1 : sorry if it is more a libtool issue than an automake problem.

It may well be, but you're more than forgiven for posting a nice problem
report in the first place.  :-)

If my above assumption is not true, then I would like to see the packed
output of this command below, with --debug added as the first argument
to libtool; like this:
  /bin/sh ../../libtool --debug --tag=F77 --mode=... ...  2>&1 | gzip > log.gz 

> PS 2 :The command which fails is :
> /bin/sh ../../libtool --tag=F77 --mode=link gfortran  -g -Wall
> -I/home/sylvestre/dev/scilab5/modules/core/includes  -lieee -o
> -rpath /usr/lib  libcore_la-history.lo libcore_la-inffic.lo

> sci_error.lo sci_sciargs.lo
> sci_isglobal.lo ../../libs/blas/ ../../libs/lapack/ 
> ../../libs/MALLOC/ ../../modules/cacsd/ 
> ../../modules/differential_equations/ 
> ../../modules/polynomials/ 
> ../../modules/elementaries_functions/ 
> ../../modules/signal_processing/


reply via email to

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