Subject: pkg/9759: devel/ldapsdk pkg broken due to regex cruft
To: None <netbsd-bugs@netbsd.org>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: netbsd-bugs
Date: 04/05/2000 14:58:22
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


>Number:         9759
>Category:       pkg
>Synopsis:       devel/ldapsdk pkg broken due to regex cruft
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 03 09:51:00 PDT 2000
>Closed-Date:    
>Last-Modified:  
>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:
>Unformatted: