Subject: pkg/29729: xemacs cannot build without ldap support
To: None <,,>
From: None <>
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
Case Western Reserve University
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/
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.
Build xemacs without PKG_OPTIONS.xemacs=ldap
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.