NetBSD Problem Report #9759

Received: (qmail 12555 invoked from network); 3 Apr 2000 16:48:27 -0000
Message-Id: <200004031647.LAA13253@jdarrowpiii.wheaton.edu>
Date: Mon, 3 Apr 2000 11:47:10 -0500 (CDT)
From: John.P.Darrow@wheaton.edu
Reply-To: John.P.Darrow@wheaton.edu
To: gnats-bugs@gnats.netbsd.org
Cc: John.P.Darrow@wheaton.edu
Subject: devel/ldapsdk pkg broken due to regex cruft
X-Send-Pr-Version: 3.95

>Number:         9759
>Category:       pkg
>Synopsis:       devel/ldapsdk pkg broken due to regex cruft
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 03 16:51:00 +0000 2000
>Closed-Date:    Thu Mar 14 11:51:06 +0000 2002
>Last-Modified:  Thu Mar 14 11:51:06 +0000 2002
>Originator:     John Darrow
>Release:        pkgsrc 2000-03-31, src 2000-03-21
>Organization:
Computing Services, Wheaton College, Wheaton, IL
>Environment:
System: NetBSD jdarrowpiii.wheaton.edu 1.4V NetBSD 1.4V (JDARROW) #0: Tue Mar 21 15:04:28 CST 2000 jdarrow@jdarrowpiii.wheaton.edu:/var/src/sys/arch/i386/compile/JDARROW i386


>Description:
	pkgsrc/devel/ldapsdk contains internal code which interfaces to
	regex using functions called 're_comp' and 're_exec'.  The package
	also includes its own version of regex, but that's only compiled
	in if defined( NEED_BSDREGEX ).  Our regex interface uses functions
	called 'regcomp' and 'regexec', different calling parameters than
	're_comp' and 're_exec' (so it can't be fixed by a simple #define).

	As a result, code attempting to link to the ldapsdk libldap.so
	fails with (for example, ldap-enabled pine):

cc  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -O    -DENABLE_LDAP -I/usr/pkg/include  -DNETBSD -DSYSTYPE=\"NEB\" -DMOUSE -o pine addrbook.o adrbkcmd.o adrbklib.o args.o bldaddr.o context.o filter.o  folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o  mailindx.o mailpart.o mailview.o newmail.o other.o pine.o  reply.o screen.o send.o signals.o status.o strings.o takeaddr.o  os.o date.c -L/usr/pkg/lib -Wl,-R/usr/pkg/lib/  -lpico ../c-client/c-client.a -lldap -llber -ltermlib  `cat ../c-client/LDFLAGS`
/usr/pkg/lib/libldap.so: undefined reference to `re_comp'
/usr/pkg/lib/libldap.so: undefined reference to `re_exec'
collect2: ld returned 1 exit status
*** Error code 1

Stop.

>How-To-Repeat:
	Work on enabling ldap support in pine package.  Get it working fine
	with openldap.  Decide it would be nice if it Just Worked with
	ldapsdk, too.  Build ldapsdk.  Attempt to build pine.  See errors.
>Fix:
	Unknown at this time.  Could be as simple as convincing the ldapsdk
	build to use NEED_BSDREGEX, but would probably be better done by
	converting to our regex.  I'm not particularly interested in using
	ldapsdk, as what I'm trying to do (enable ldap support in pine)
	works just fine with openldap.  The version of ldapsdk we're using
	is rather old, too, but I don't know if any further development is
	going on (I haven't heard that much news recently about mozilla,
	either...)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: tron 
State-Changed-When: Sun Jan 27 08:41:34 PST 2002 
State-Changed-Why:  
The "ldapsdk" was built succesfully during the last bulk build. Could 
you please check if the problem still exists? 
State-Changed-From-To: feedback->closed 
State-Changed-By: wiz 
State-Changed-When: Thu Mar 14 03:51:00 PST 2002 
State-Changed-Why:  
Feedback timeout. 
>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.