Subject: pkg/29729: xemacs cannot build without ldap support
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sak8@eecs.cwru.edu>
List: pkgsrc-bugs
Date: 03/18/2005 04:57:01
>Number:         29729
>Category:       pkg
>Synopsis:       xemacs cannot build without ldap support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 18 04:57:00 +0000 2005
>Originator:     Simon Kuhn
>Release:        pkgsrc-current
>Organization:
Case Western Reserve University
>Environment:
>Description:
Built xemacs with PKG_OPTIONS.xemacs=-canna. Everything is fine, until the final link end with:

Undefined                       first referenced
 symbol                             in file
ber_pvt_opt_on                      eldap.o  (symbol belongs to implicit dependency /usr/local/lib/liblber-2.2.so.7)
ld: fatal: Symbol referencing errors. No output written to temacs

liblber is a library that comes with openldap. The configure script suggests that xemacs needs liblber solely for this symbol and can't do without it.
>How-To-Repeat:
Build xemacs without PKG_OPTIONS.xemacs=ldap
>Fix:
Set PKG_OPTIONS.xemacs=ldap -canna in my case, and the link and thus the build works fine. I suggest making this option mandatory or at least the default.