NetBSD Problem Report #18582

Received: (qmail 21893 invoked by uid 605); 8 Oct 2002 10:33:38 -0000
Message-Id: <200210081037.g98Abt225089@darkstar.local>
Date: Tue, 8 Oct 2002 12:37:55 +0200 (CEST)
From: Julio Merino <jmmv@menta.net>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: jmmv@menta.net
To: gnats-bugs@gnats.netbsd.org
Subject: textproc/libpspell does not build
X-Send-Pr-Version: 3.95

>Number:         18582
>Category:       pkg
>Synopsis:       textproc/libpspell does not build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 08 10:34:00 +0000 2002
>Closed-Date:    Tue Oct 08 12:21:40 +0000 2002
>Last-Modified:  Sat Apr 29 08:50:05 +0000 2006
>Originator:     Julio Merino
>Release:        NetBSD 1.6I
>Organization:
HispaBSD
>Environment:


System: NetBSD darkstar.local 1.6I NetBSD 1.6I (DARKSTAR) #3: Sun Oct 6 21:17:31 CEST 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	textproc/libpspell does not build. It requires the file ltdl.h, which
	is not present in the buildlink directory. This file is provided by
	libtool, so adding its buildlink2.mk file solves the problem.
>How-To-Repeat:
	cd /usr/pkgsrc/textproc/libpspell
	make
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/libpspell/Makefile,v
retrieving revision 1.7
diff -u -u -r1.7 Makefile
--- Makefile	2002/08/25 18:40:07	1.7
+++ Makefile	2002/10/08 10:29:19
@@ -19,4 +19,5 @@
 LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig
 CONFIGURE_ARGS+=	--enable-doc-dir=${PREFIX}/share/doc/pspell

+.include "../../devel/libtool/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Tue Oct 8 05:20:54 PDT 2002 
State-Changed-Why:  
Added it as requested (though it did build for me, with 
the included libltdl...). 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/18582 CVS commit: pkgsrc/textproc/libpspell
Date: Tue,  8 Oct 2002 15:20:39 +0300 (EEST)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Oct  8 12:20:39 UTC 2002

 Modified Files:
 	pkgsrc/textproc/libpspell: Makefile

 Log Message:
 Add libtool buildlink2.mk, per PR 18582 by Julio Merino.


 To generate a diff of this commit:
 cvs rdiff -r1.7 -r1.8 pkgsrc/textproc/libpspell/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Lubomir Sedlacik <salo@Xtrmntr.org>
To: Julio Merino <jmmv@menta.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/18582: textproc/libpspell does not build
Date: Sat, 11 Jan 2003 06:43:10 +0100

 On Tue, Oct 08, 2002 at 12:37:55PM +0200, Julio Merino wrote:
 > 
 > >Synopsis:       textproc/libpspell does not build
 > >Description:
 > 	textproc/libpspell does not build. It requires the file ltdl.h,
 > 	which is not present in the buildlink directory. This file is
 > 	provided by libtool, so adding its buildlink2.mk file solves the
 > 	problem.
 > >How-To-Repeat:
 > 	cd /usr/pkgsrc/textproc/libpspell
 > 	make

 the real problem lies elsewhere.  from libpspell's README:

   2.3.3 Problems with Libltdl

   Pspell also requires libltdl, Libtool's portable "dlopen" wrapper
   library, in order to function properly. If configure does not find libltdl
   installed on your system it will generally compile it and install it with
   the rest of Pspell. However, this can create problems if the compile
   environment is different than the environment that Pspell runs under. For
   example if configure was able to find libltdl at compile time but libltdl
   is no longer visible at runtime you will run into problems. The easiest
   thing to do here is copy the libltdl library found when compiling Pspell
   into the library directly Pspell was installed in. Another potently source
   of problems is the fact that the version of Libltdl found in the Pspell
   distribution is not the same as the one found in the released version of
   Libtool. In fact the two, while being source code compatible, are not
   binary compatible. This should normally not be a problem because if
   configure finds libltdl already installed on your system it will use that
   one. However, this might cause problems if the compile environment is
   different than the environment that Pspell runs under.

 so what we do is somehow correct but maybe TRT to do would be to
 actually link libpspell with its own libltdl (renamed), install it and
 add it to libpspell's buildlink.mk file for further reference where it
 will be picked up by e.g. aspell.  and remove the ad-hoc realtime
 dependency on libtool from both packages.

 comments?


 regards,

 -- 
 -- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
 --                  <salo@silcnet.org>                   --
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.