build of 1.0.7 fails on redhat 6.x SOLVED

Joseph Shraibman joseph@xtenit.com
Tue Aug 13 23:14:02 2002


I added
#include <lber.h>
to keyserver/gpgkeys_ldap.c and it compiles.

Joseph Shraibman wrote:
> make[2]: Leaving directory `/home/data/src/gnupg-1.0.7/g10'
> Making all in keyserver
> make[2]: Entering directory `/home/data/src/gnupg-1.0.7/keyserver'
> source='gpgkeys_ldap.c' object='gpgkeys_ldap.o' libtool=no \
> depfile='.deps/gpgkeys_ldap.Po' tmpdepfile='.deps/gpgkeys_ldap.TPo' \
> depmode=gcc /bin/sh ../scripts/depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -g -O2 -Wall -c `test 
> -f gpgkeys_ldap.c || echo './'`gpgkeys_ldap.c
> In file included from gpgkeys_ldap.c:28:
> /usr/include/ldap.h:302: parse error before `BerElement'
> /usr/include/ldap.h:302: warning: no semicolon at end of struct or union
> /usr/include/ldap.h:306: parse error before `}'
> /usr/include/ldap.h:306: warning: data definition has no type or storage 
> class
> /usr/include/ldap.h:371: parse error before `LDAPMessage'
> /usr/include/ldap.h:371: warning: no semicolon at end of struct or union
> /usr/include/ldap.h:372: warning: data definition has no type or storage 
> class
> /usr/include/ldap.h:380: parse error before `}'
> /usr/include/ldap.h:380: warning: data definition has no type or storage 
> class
> /usr/include/ldap.h:424: parse error before `Sockbuf'
> etc.
> 
>  >rpm -qf /usr/include/ldap.h
> openldap-devel-1.2.12-3
> 
> part of ldap.h that causes problem:
> 
> typedef struct ldapmsg {
>         int             lm_msgid;       /* the message id */
>         int             lm_msgtype;     /* the message type */
>         BerElement      *lm_ber;        /* the ber encoded message 
> contents */
>         struct ldapmsg  *lm_chain;      /* for search - next msg in the 
> resp */
>         struct ldapmsg  *lm_next;       /* next response */
>         unsigned int    lm_time;        /* used to maintain cache */
> } LDAPMessage;
> 
> 


-- 
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://xis.xtenit.com