Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.1/8.12.1/Debian -1) with ESMTP id f9FLPPV9001342
	for <dron@localhost>; Tue, 16 Oct 2001 01:26:31 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.9.0)
	for dron@localhost (single-drop); Tue, 16 Oct 2001 01:26:31 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Mon Oct 15 11:48:18 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id OAA02490;
	Mon, 15 Oct 2001 14:39:39 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 15 Oct 2001 14:39:30 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id OAA02467
	for tiff-outgoing; Mon, 15 Oct 2001 14:39:29 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from ns.srz-berlin.de (ns.srz-berlin.de [212.5.11.1])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id OAA02464
	for <tiff@olympiakos.com>; Mon, 15 Oct 2001 14:39:27 -0400
Received: from SunFrame1 (didymus.srz-berlin.de [212.5.11.254])
	by ns.srz-berlin.de (8.8.7/8.8.7) with SMTP id UAA15721;
	Mon, 15 Oct 2001 20:39:21 +0200
Message-ID: <3BCB2D5F.127F@srz-berlin.de>
Date: Mon, 15 Oct 2001 20:39:27 +0200
From: Helge Blischke <H.Blischke@srz-berlin.de>
Organization: SRZ BERLIN
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Ziying Sherwin <sherwin@nlm.nih.gov>
CC: tiff@olympiakos.com
Subject: Re: undefined symoble _TIFFmalloc
References: <Pine.GSO.4.21.0110151428200.22072-100000@hume.nlm.nih.gov>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1308
Lines: 34

Ziying Sherwin wrote:
> 
> I am trying to compile a package which uses imlib and libtiff on Solaris 2.8
> using gcc 3.0, and I kept getting the following error message:
> 
> Undefined                       first referenced
>  symbol                             in file
> _TIFFmalloc                         /depot/package/imlib_1.9.10/vendor/lib/libImlib.so
> _TIFFfree                           /depot/package/imlib_1.9.10/vendor/lib/libImlib.so
> TIFFDefaultStripSize                /depot/package/imlib_1.9.10/vendor/lib/libImlib.so
> ld: fatal: Symbol referencing errors. No output written to xcdroast
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> I installed libtiff 3.5.5 and imlib 1.9.10 following the instruction. And the
> environmental variable LD_LIBRARY_PATH is set to include the path to both
> libraries.
> 
> The only observation I have is that all three symbols are defined as "extern" in
> the header file. Does anyone have any ideas what I should do to get rid of
> the error message?
> 

Redefine them as malloc and free, respectively.

Helge

-- 
H.Blischke@srz-berlin.de
H.Blischke@srz-berlin.com
H.Blischke@acm.org

To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

