[Samba] Error compiling Samba 3.5.5 on HP-UX 11.11

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Jan 13 13:09:05 MST 2011


On Thu, Jan 13, 2011 at 02:36:58PM -0500, Stan.Pietkiewicz at statcan.gc.ca wrote:
> I've run into an error when trying to compile libnet/libnet_join.c:
> 
> cc: "libnet/libnet_join.c", line 111: error 1588: "LDAP_NO_MEMORY"
> undefined.
> cc: "libnet/libnet_join.c", line 111: warning 563: Argument #2 is not
> the correct type.
> 
> The source below is what triggers it (line 111 is marked): 
> 
> static ADS_STATUS libnet_connect_ads(const char *dns_domain_name,
>                                      const char *netbios_domain_name,
>                                      const char *dc_name,
>                                      const char *user_name,
>                                      const char *password,
>                                      ADS_STRUCT **ads)
> {
> #define TLDAP_NO_MEMORY (0x5a)
>         ADS_STATUS status;
>         ADS_STRUCT *my_ads = NULL;
> 
>         my_ads = ads_init(dns_domain_name,
>                           netbios_domain_name,
>                           dc_name);
>         if (!my_ads) {
> -----> Line 111                return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
>         }
> 
> Digging through the include files, I have not found a definition of
> LDAP_NO_MEMORY. However, I have found references to TLDAP_NO_MEMORY in
> tldap.h....
> 
> I'm puzzled - which is it supposed to be ?

TLDAP_NO_MEMORY is a Samba-internal define. The
LDAP_NO_MEMORY needs to come from the LDAP libraries in your
system. Do you have that #define somewhere in /usr/include,
or in the include paths you installed your LDAP libs to? It
should be next to a #define LDAP_SUCCESS.

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen


More information about the samba mailing list