Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.2.219])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j2N6rSAi018357
        for <joris.at.lebbeke@skynet.be>; Wed, 23 Mar 2005 07:53:28 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j2N6r7xu000469
        for <joris.at.lebbeke@skynet.be>; Wed, 23 Mar 2005 07:53:12 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 5CC1B1724822; Wed, 23 Mar 2005 01:52:43 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mail0.u-aizu.ac.jp (mail0.u-aizu.ac.jp [163.143.1.43])
	by xserve.flids.com (Postfix) with ESMTP id E3CDF17247FF
	for <tiff@remotesensing.org>; Wed, 23 Mar 2005 01:52:40 -0500 (EST)
Received: from proxsv18.u-aizu.ac.jp (localhost [127.0.0.1])
	by mail0.u-aizu.ac.jp (8.11.6+3.4W/8.11.6/u-aizu internet-gw) with
	ESMTP id j2N6qde14729
	for <tiff@remotesensing.org>; Wed, 23 Mar 2005 15:52:39 +0900 (JST)
Received: (from s1080224@localhost) by proxsv18.u-aizu.ac.jp
	(8.9.3p2+3.1W/3.7Wistcmx+kanji)
	id PAA24243; Wed, 23 Mar 2005 15:52:38 +0900 (JST)
To: tiff@remotesensing.org
Subject: Re: [Tiff] bug #732 caused other problems in building (configure
	andlibport.so*)
In-Reply-To: Your message of "Tue, 22 Mar 2005 13:35:31 +0300".
	<20050322103531.GA5404@localhost.localdomain>
From: s1080224@u-aizu.ac.jp (Norihiko Murase)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Mailer: mnews [version 1.22PL7a] 2004-10/21(Thu)
Date: Wed, 23 Mar 2005 15:52:38 +0900
Message-ID: <050323155238.M0112872@proxsv18.u-aizu.ac.jp>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 941694a67da0f2eca5dc91726f9319fb

Thanks, Andrey.


|From: dron [AT] ak4719.spb.edu
|Subject: Re: [Tiff] bug #732 caused other problems in building (configure andlibport.so*)
|Message-ID: <20050322103531.GA5404@localhost.localdomain>
|Date: 2005/03/22(Tue) 19:35:31 JST
|
|>I have made a change in the current CVS to use libtool abilities to add
|>rpath instead of direct linker options. Please, try this in your
|>environment.

I got the source from the CVS repository and checked the
following change:
------------------------------------------------------------
2005-03-22  Andrey Kiselev  <dron@remotesensing.org>

	* configure.ac, libtiff/Makefile.am}: Use libtool machinery to pass
	rpath option.
------------------------------------------------------------

First, I refer to the conclusion --- you should modify also
tools/Makefile* (at least) as you did libtiff/Makefile.am.
Currently, the -R options are NOT added to the linker when
the tools (bmp2tiff, fax2ps, and so on) are built. The
contents of the tools/Makefile was as the following:
------------------------------------------------------------
LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
	$(AM_LDFLAGS) $(LDFLAGS) -o $@
.....
LDFLAGS = -L/PATH_TO_JPEG/lib -L/PATH_TO_ZLIB/lib 
LIBDIR = -R /PATH_TO_JPEG/lib -R /PATH_TO_ZLIB/lib 
LIBOBJS = 
LIBS = -ljpeg -lz -lm -lc 
.....
bmp2tiff_SOURCES = bmp2tiff.c
bmp2tiff_LDADD = $(LIBTIFF) $(LIBPORT)
.....
bmp2tiff$(EXEEXT): $(bmp2tiff_OBJECTS) $(bmp2tiff_DEPENDENCIES) 
	@rm -f bmp2tiff$(EXEEXT)
	$(LINK) $(bmp2tiff_LDFLAGS) $(bmp2tiff_OBJECTS) $(bmp2tiff_LDADD) $(LIBS)
.....
------------------------------------------------------------
This means that the value of LIBDIR is *NOT* specified as
the parameter for the libtool.


I got the build-logs by means of script(1) when I tried
building it on IRIX (IRIX64 ****** 6.5 10151453 IP35) as
well as on FreeBSD (4.8-RELEASE).
    * 3.7.2 on FreeBSD            : log-3.7.2
    * CVS (03/23/2005) on FreeBSD : log-cvs_20050323
    * CVS (03/23/2005) on IRIX    : log-cvs_20050323_IRIX

# I don't attach them to this mail message --- if I did, the
# size of it would get too large... Of course, I'll send to
# those who would like to look into these log files.


These logs mean the following:
============================================================
(1) (3.7.2 -> CVS) port/libport.*: ONLY the libport.a is
    generated, and the libport.so* is NOT generated.
(2) (3.7.2 -> CVS) libtiff/{libtiff,libtiffxx}.so*: The
    rpath options (--rpath <dir>) are now added correctly.
(3) (CVS) FreeBSD vs. IRIX: "--rpath" (FreeBSD) vs. "-rpath"
    as the rpath option.
------------------------------------------------------------
(4) (3.7.2 -> CVS) tools/.libs/*: Now the --enable-rpath
    option does NOT work --- the rpath options are *NOT*
    added for libjpeg or for zlib!!
============================================================

(1) and (2) show that this change is good. (3) does that we
can build it even on IRIX. (4) does that this change is
incomplete, so I referred to it above.


=====
Norihiko Murase
  @ The Univ. of Aizu
    The School of Computer Science and Engineering
    Department of Computer Software
---
E-mail: s1080224 [AT] u-aizu.ac.jp
        skeleten [AT] shillest.net
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
