[Top][All Lists]

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

Re: lots of -lresolv added to command line?

From: Robert Boehne
Subject: Re: lots of -lresolv added to command line?
Date: Thu, 17 May 2001 11:10:59 -0500

Ossama Othman wrote:
> Hi,
> Here's another libtool 1.4 bug report from a Debian user:
> -----------------------------------------------------------
> Is this a bug or a feature?
> /bin/sh ../../libtool --mode=link gcc  -Wall -Wmissing-prototypes 
> -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs 
> -g -O2   -o ipropd-slave  ipropd_slave.o 
> ../../lib/hdb/  ../../lib/krb5/ ../../lib/asn1/ 
> -lcrypto ../../lib/vers/ ../../lib/roken/ -ldb  -lgdbm 
> -ldl -lresolv -lresolv
> gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 
> -Wmissing-declarations -Wnested-externs -g -O2 -o .libs/ipropd-slave 
> ipropd_slave.o  ./.libs/ -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv 
> /home/bam/source/ext2fs/heimdal-0.3e/build-tree/heimdal-0.3e/lib/hdb/.libs/
>  -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv ../../lib/hdb/.libs/ 
> /home/bam/source/ext2fs/heimdal-0.3e/build-tree/heimdal-0.3e/lib/krb5/.libs/
>  -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv !
> -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> -lresolv -lresolv -lresolv -lresolv ../../lib/krb5/.libs/ -lresolv 
> -lresolv -lresolv 
> /home/bam/source/ext2fs/heimdal-0.3e/build-tree/heimdal-0.3e/lib/asn1/.libs/
>  -lresolv -lresolv -lresolv -lresolv -lresolv -lresolv 
> /home/bam/source/ext2fs/heimdal-0.3e/build-tree/heimdal-0.3e/lib/roken/.libs/
>  -lresolv -lresolv -lresolv -lresolv -lresolv ../../lib/asn1/.libs/ 
> /home/bam/source/ext2fs/heimdal-0.3e/build-tree/heimdal-0.3e/lib/com_err/.libs/
>  -lresolv -lresolv -lresolv -lresolv ../../lib/vers/.libs/ -lresolv 
> -lresolv ../../lib/roken/.libs/ -lresolv -lcrypto -lresolv 
> -lresolv -ldb -lgdbm -ldl -lresolv -lresolv
> creating ipropd-slave


That depends on your point of view.  :)  I don't think we totally
resolved this issue when it came up last time, so I'll rehash.
The duplicate library opetions are preserved to support some systems'
static library linking that needs to have dependent libraries
linked in particular order, sometimes that means with duplicates.
So code was added to Libtool to preserve duplicates, or rather 
duplicate removal code was taken out.  This turned out to cause
problems when the list of duplicates gets long, often too long
for the shell to execute.  So this code was revised to find 'special'
libraries $special_deplibs, and preserve only those in duplicates.
I can't tell you how these get deemed "special" though.  

Has this changed in the merge?
Did we ever find a solution that makes everyone happy?



Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden

reply via email to

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