[darwinbuild] adding LDAP support to Postfix
greetings my build is failing. I'm trying add ldap support for postfix under OSX server 10.4.5 here is the build portion of my Make file build : echo "ENV = $(ENV)" $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="- DBIND_8_COMPAT -DHAS_SSL -DUSE_SASL_AUTH -D__APPLE__ \ -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \ CCARGS="-I/usr/include -DHAS_LDAP" \ AUXLIBS="-L/usr/lib -lldap -llber -lssl -lsasl2.2.0.1 -lgssapi_krb5" $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) cd $(SRCROOT)/postfix/src/smtpstone && make all I have added the ; CCARGS="-I/usr/include -DHAS_LDAP" \ AUXLIBS="-L/usr/lib -lldap -llber -lssl -lsasl2.2.0.1 -lgssapi_krb5" here is the output from darwinbuild cc -I/usr/include -DHAS_LDAP -DBIND_8_COMPAT -DNO_NETINFO -g - DBIND_8_COMPAT -DHAS_SSL -DUSE_SASL_AUTH -D__APPLE__ -I/AppleInternal/ Developer/Headers/sasl -framework DirectoryService -mdynamic-no-pic - Os -pipe -no-cpp-precomp -arch ppc -arch i386 -I. -I../../include - DMACOSX -c dict_ldap.c dict_ldap.c:164:18: lber.h: No such file or directory dict_ldap.c:165:18: ldap.h: No such file or directory dict_ldap.c:174:2: #error "Your LDAP version is too old" dict_ldap.c:205: error: parse error before "LDAP" dict_ldap.c:205: warning: no semicolon at end of struct or union dict_ldap.c:207: error: parse error before '}' token dict_ldap.c:207: warning: data definition has no type or storage class dict_ldap.c:249: error: parse error before "LDAP" dict_ldap.c:249: warning: no semicolon at end of struct or union dict_ldap.c:250: warning: data definition has no type or storage class dict_ldap.c:285: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_get_errno': dict_ldap.c:289: error: `ld' undeclared (first use in this function) dict_ldap.c:289: error: (Each undeclared identifier is reported only once dict_ldap.c:289: error: for each function it appears in.) dict_ldap.c:289: error: `LDAP_OPT_ERROR_NUMBER' undeclared (first use in this function) dict_ldap.c:290: error: `LDAP_OTHER' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:294: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_set_errno': dict_ldap.c:296: error: `ld' undeclared (first use in this function) dict_ldap.c:296: error: `LDAP_OPT_ERROR_NUMBER' undeclared (first use in this function) dict_ldap.c:296: error: `rc' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:304: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_bind_st': dict_ldap.c:307: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:307: error: `res' undeclared (first use in this function) dict_ldap.c:310: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:311: error: `LDAP_AUTH_SIMPLE' undeclared (first use in this function) dict_ldap.c:320: error: `LDAP_TIMEOUT' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:389: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_connect': dict_ldap.c:423: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:497: error: `LDAP_OPT_SIZELIMIT' undeclared (first use in this function) dict_ldap.c:507: error: `LDAP_OPT_DEREF' undeclared (first use in this function) dict_ldap.c:569: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:581: error: parse error before ')' token dict_ldap.c: At top level: dict_ldap.c:593: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_conn_find': dict_ldap.c:603: error: `conn' undeclared (first use in this function) dict_ldap.c:608: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:636: error: parse error before ')' token dict_ldap.c:641: error: parse error before ')' token dict_ldap.c: At top level: dict_ldap.c:706: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_get_values': dict_ldap.c:714: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:714: error: `resloop' undeclared (first use in this function) dict_ldap.c:715: error: `entry' undeclared (first use in this function) dict_ldap.c:716: error: `BerElement' undeclared (first use in this function) dict_ldap.c:716: error: `ber' undeclared (first use in this function) dict_ldap.c:721: error: `LDAPURLDesc' undeclared (first use in this function) dict_ldap.c:721: error: `url' undeclared (first use in this function) dict_ldap.c:723: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:731: error: `res' undeclared (first use in this function) dict_ldap.c:747: warning: assignment makes pointer from integer without a cast dict_ldap.c:750: warning: assignment makes pointer from integer without a cast dict_ldap.c:751: warning: assignment makes pointer from integer without a cast dict_ldap.c:803: error: `result' undeclared (first use in this function) dict_ldap.c:839: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) dict_ldap.c:844: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:847: error: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this function) dict_ldap.c: In function `dict_ldap_lookup': dict_ldap.c:898: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:898: error: parse error before ')' token dict_ldap.c:899: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:899: error: `res' undeclared (first use in this function) dict_ldap.c:943: error: parse error before ')' token dict_ldap.c:972: error: `LDAP_NO_LIMIT' undeclared (first use in this function) dict_ldap.c:973: error: `LDAP_OPT_SIZELIMIT' undeclared (first use in this function) dict_ldap.c:1055: error: `LDAP_SERVER_DOWN' undeclared (first use in this function) dict_ldap.c:1061: error: parse error before ')' token dict_ldap.c:1077: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:1091: error: `LDAP_DECODING_ERROR' undeclared (first use in this function) dict_ldap.c:1113: error: parse error before ')' token dict_ldap.c: In function `dict_ldap_close': dict_ldap.c:1143: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:1143: error: parse error before ')' token dict_ldap.c:1144: error: `conn' undeclared (first use in this function) dict_ldap.c:1144: error: parse error before ')' token dict_ldap.c: In function `dict_ldap_open': dict_ldap.c:1184: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:1197: error: parse error before ')' token dict_ldap.c:1214: error: `LDAP_PORT' undeclared (first use in this function) dict_ldap.c:1222: error: `LDAP_VERSION2' undeclared (first use in this function) dict_ldap.c:1225: error: `LDAP_VERSION3' undeclared (first use in this function) dict_ldap.c:1297: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function) dict_ldap.c:1299: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) dict_ldap.c:1301: error: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function) make: *** [dict_ldap.o] Error 1 make[1]: *** [update] Error 1 make: *** [build] Error 2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++ EXIT STATUS: 2 /Volumes/Builds/Build8H14/BuildRoot/private/var/tmp/postfix/ postfix-144.root is empty. Build verification failed. help -jeff
Just from
dict_ldap.c:174:2: #error "Your LDAP version is too old"
I'm thinking you may need to grab a newer LDAP... if this is too obvious, feel free to smack me :) _Mark On Mar 14, 2006, at 5:09 PM, donovan wrote:
greetings my build is failing. I'm trying add ldap support for postfix under OSX server 10.4.5
here is the build portion of my Make file build : echo "ENV = $(ENV)" $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="- DBIND_8_COMPAT -DHAS_SSL -DUSE_SASL_AUTH -D__APPLE__ \ -I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \ CCARGS="-I/usr/include -DHAS_LDAP" \ AUXLIBS="-L/usr/lib -lldap -llber -lssl -lsasl2.2.0.1 - lgssapi_krb5" $(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) cd $(SRCROOT)/postfix/src/smtpstone && make all
I have added the ;
CCARGS="-I/usr/include -DHAS_LDAP" \ AUXLIBS="-L/usr/lib -lldap -llber -lssl -lsasl2.2.0.1 -lgssapi_krb5"
here is the output from darwinbuild
cc -I/usr/include -DHAS_LDAP -DBIND_8_COMPAT -DNO_NETINFO -g - DBIND_8_COMPAT -DHAS_SSL -DUSE_SASL_AUTH -D__APPLE__ -I/ AppleInternal/Developer/Headers/sasl -framework DirectoryService - mdynamic-no-pic -Os -pipe -no-cpp-precomp -arch ppc -arch i386 -I. - I../../include -DMACOSX -c dict_ldap.c dict_ldap.c:164:18: lber.h: No such file or directory dict_ldap.c:165:18: ldap.h: No such file or directory dict_ldap.c:174:2: #error "Your LDAP version is too old" dict_ldap.c:205: error: parse error before "LDAP" dict_ldap.c:205: warning: no semicolon at end of struct or union dict_ldap.c:207: error: parse error before '}' token dict_ldap.c:207: warning: data definition has no type or storage class dict_ldap.c:249: error: parse error before "LDAP" dict_ldap.c:249: warning: no semicolon at end of struct or union dict_ldap.c:250: warning: data definition has no type or storage class dict_ldap.c:285: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_get_errno': dict_ldap.c:289: error: `ld' undeclared (first use in this function) dict_ldap.c:289: error: (Each undeclared identifier is reported only once dict_ldap.c:289: error: for each function it appears in.) dict_ldap.c:289: error: `LDAP_OPT_ERROR_NUMBER' undeclared (first use in this function) dict_ldap.c:290: error: `LDAP_OTHER' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:294: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_set_errno': dict_ldap.c:296: error: `ld' undeclared (first use in this function) dict_ldap.c:296: error: `LDAP_OPT_ERROR_NUMBER' undeclared (first use in this function) dict_ldap.c:296: error: `rc' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:304: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_bind_st': dict_ldap.c:307: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:307: error: `res' undeclared (first use in this function) dict_ldap.c:310: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:311: error: `LDAP_AUTH_SIMPLE' undeclared (first use in this function) dict_ldap.c:320: error: `LDAP_TIMEOUT' undeclared (first use in this function) dict_ldap.c: At top level: dict_ldap.c:389: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_connect': dict_ldap.c:423: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:497: error: `LDAP_OPT_SIZELIMIT' undeclared (first use in this function) dict_ldap.c:507: error: `LDAP_OPT_DEREF' undeclared (first use in this function) dict_ldap.c:569: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:581: error: parse error before ')' token dict_ldap.c: At top level: dict_ldap.c:593: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_conn_find': dict_ldap.c:603: error: `conn' undeclared (first use in this function) dict_ldap.c:608: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:636: error: parse error before ')' token dict_ldap.c:641: error: parse error before ')' token dict_ldap.c: At top level: dict_ldap.c:706: error: parse error before '*' token dict_ldap.c: In function `dict_ldap_get_values': dict_ldap.c:714: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:714: error: `resloop' undeclared (first use in this function) dict_ldap.c:715: error: `entry' undeclared (first use in this function) dict_ldap.c:716: error: `BerElement' undeclared (first use in this function) dict_ldap.c:716: error: `ber' undeclared (first use in this function) dict_ldap.c:721: error: `LDAPURLDesc' undeclared (first use in this function) dict_ldap.c:721: error: `url' undeclared (first use in this function) dict_ldap.c:723: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:731: error: `res' undeclared (first use in this function) dict_ldap.c:747: warning: assignment makes pointer from integer without a cast dict_ldap.c:750: warning: assignment makes pointer from integer without a cast dict_ldap.c:751: warning: assignment makes pointer from integer without a cast dict_ldap.c:803: error: `result' undeclared (first use in this function) dict_ldap.c:839: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) dict_ldap.c:844: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:847: error: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this function) dict_ldap.c: In function `dict_ldap_lookup': dict_ldap.c:898: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:898: error: parse error before ')' token dict_ldap.c:899: error: `LDAPMessage' undeclared (first use in this function) dict_ldap.c:899: error: `res' undeclared (first use in this function) dict_ldap.c:943: error: parse error before ')' token dict_ldap.c:972: error: `LDAP_NO_LIMIT' undeclared (first use in this function) dict_ldap.c:973: error: `LDAP_OPT_SIZELIMIT' undeclared (first use in this function) dict_ldap.c:1055: error: `LDAP_SERVER_DOWN' undeclared (first use in this function) dict_ldap.c:1061: error: parse error before ')' token dict_ldap.c:1077: error: `LDAP_SUCCESS' undeclared (first use in this function) dict_ldap.c:1091: error: `LDAP_DECODING_ERROR' undeclared (first use in this function) dict_ldap.c:1113: error: parse error before ')' token dict_ldap.c: In function `dict_ldap_close': dict_ldap.c:1143: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:1143: error: parse error before ')' token dict_ldap.c:1144: error: `conn' undeclared (first use in this function) dict_ldap.c:1144: error: parse error before ')' token dict_ldap.c: In function `dict_ldap_open': dict_ldap.c:1184: error: `dict_ldap' undeclared (first use in this function) dict_ldap.c:1197: error: parse error before ')' token dict_ldap.c:1214: error: `LDAP_PORT' undeclared (first use in this function) dict_ldap.c:1222: error: `LDAP_VERSION2' undeclared (first use in this function) dict_ldap.c:1225: error: `LDAP_VERSION3' undeclared (first use in this function) dict_ldap.c:1297: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function) dict_ldap.c:1299: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) dict_ldap.c:1301: error: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function) make: *** [dict_ldap.o] Error 1 make[1]: *** [update] Error 1 make: *** [build] Error 2 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++ EXIT STATUS: 2 /Volumes/Builds/Build8H14/BuildRoot/private/var/tmp/postfix/ postfix-144.root is empty. Build verification failed.
help
-jeff
_______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild
participants (2)
-
donovan
-
Mark Pauley