ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] проблема с libtool
Date: Thu, 11 May 2006 17:18:20 +0400
Message-ID: <4463399C.7020605@altlinux.com> (raw)
In-Reply-To: <446335C2.7050506@altlinux.com>

[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]

Anton Farygin wrote:
> Anton Farygin wrote:
>> Всем привет.
>>
>> Есть проблема.
>>
>> Имеем: новый ImageMagick со сменой soname. (был so.9, стал so.10)
>>
> 
> <skip>
> 
>> Т.е. - команда:
>> ./libtool --silent --mode=install /bin/install -c  'wand/libWand.la' 
>> '/home/rider/RPMS/git/ImageMagick.git/BUILD/ImageMagick-6.2.7/tmp//usr/lib64/libWand.la'
>>
>> Перелинковывает дополнительные библиотеки с установленным в систему 
>> ImageMagick'ом.
>>
>> Может быть кто-то сталкивался с таким странным поведением и знает как 
>> его лечить ?
> 
> Вопрос:
> а зачем вообще libtool делает relink всему что собирал, но только уже 
> при установке в реальную систему и совсем с другими путями к библиотекам ?
> 
> Судя по коду - это выполняется в момент install, когда libtool не 
> находит одной из требуемых библиотек в путях.
> 
> То он делает relink с тем, что установлено в системе, не подозревая о 
> том, что линковаться надо со свежесобранными библиотеками.
> 
> Да и почему бы просто не изменить rpath ?

Собственно lafile от libmagick++, attached.

Rgds,
Rider

[-- Attachment #2: libMagick++.lai --]
[-- Type: text/plain, Size: 1030 bytes --]

# libMagick++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libMagick++.so.10'

# Names of this library.
library_names='libMagick++.so.10.0.2 libMagick++.so.10 libMagick++.so'

# The name of the static archive.
old_library='libMagick++.a'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib64 -L/usr/lib /usr/local/lib/libWand.la /usr/local/lib/libMagick.la -ljbig -llcms -ltiff -ljasper -ljpeg -lpng -lfontconfig -lwmflite -lXext -lXt -lbz2 -lxml2 -lfreetype -lz -ldl -lSM -lICE -lX11'

# Version information for libMagick++.
current=10
age=0
revision=2

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/lib'

  reply	other threads:[~2006-05-11 13:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-11 10:07 Anton Farygin
2006-05-11 13:01 ` Anton Farygin
2006-05-11 13:18   ` Anton Farygin [this message]
2006-05-13  5:11     ` Anton Farygin
2006-05-19 13:03       ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4463399C.7020605@altlinux.com \
    --to=rider@altlinux.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git