Barry A. Warsaw wrote:
I'm building XEmacs 21.4.3 from source (xemacs-21.4.3.tar.gz) on
a
Mandrake 7.2-ish system and have run into the following compilation
errors in eldap.c. A quick search of google and
xemacs.org didn't
turn up anything relevant. Has anybody else hit similar problems?
gcc -c -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow -Wsign-compare
-Demacs -I. -DHAVE_CONFIG_H -I/usr/X11R6/include eldap.c
eldap.c: In function `Fldap_open':
eldap.c:322: dereferencing pointer to incomplete type
eldap.c:323: dereferencing pointer to incomplete type
eldap.c:324: dereferencing pointer to incomplete type
eldap.c:328: dereferencing pointer to incomplete type
eldap.c:331: dereferencing pointer to incomplete type
eldap.c: In function `Fldap_search_basic':
eldap.c:568: dereferencing pointer to incomplete type
eldap.c:67: warning: inlining failed in call to `signal_ldap_error'
eldap.c:568: warning: called from here
make[1]: *** [eldap.o] Error 1
make[1]: Leaving directory `/usr/local/src/xemacs-21.4.3/src'
All of these lines contain attempts to use "->" on a variable of type
"LDAP *". On my system (with openldap 1.2.9), LDAP is defined in
ldap.h as:
typedef struct ldap {
...
} LDAP;
I would guess that you are using an LDAP library (or version) which
isn't compatible with the code in XEmacs (e.g. because LDAP is an
opaque type).
--
Glynn Clements <glynn.clements(a)virgin.net>