Latest samba4.21 configure cannot find ldap.h, lber.h files and libraries on freebsd

sandeep nag sandeepnagamalli at gmail.com
Fri Nov 8 14:12:00 UTC 2024


I am able to resolve by adding  /usr/local/include

     conf.ADD_EXTRA_INCLUDES('#include/public #source4 #lib #source4/lib
#source4/include #include #lib/replace')
+    conf.ADD_EXTRA_INCLUDES('/usr/local/include')

On Fri, Nov 8, 2024 at 6:56 PM sandeep nag <sandeepnagamalli at gmail.com>
wrote:

> Though I installed the openldap server and client and see that  ldap.h,
> lber.h are present  in /usr/local/includes on my machine.
>
> On Fri, Nov 8, 2024 at 6:53 PM sandeep nag <sandeepnagamalli at gmail.com>
> wrote:
>
>> Hi All,
>>
>> Seeing following error on freebsd with samba 4.21  ./configure
>>
>> > [1/1] Compiling
>> ^[[32mbin/.conf_check_cb0399a8760ccc5bafb05dce08fe487f/test.c^[[0m
>>
>> ['/usr/bin/clang', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-MMD',
>> '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '../../test.c', '-c',
>> '-o/root/src/samba
>>
>> /bin/.conf_check_cb0399a8760ccc5bafb05dce08fe487f/testbuild/default/test.c.1.o']
>> err: ../../test.c:455:10: fatal error: 'ldap.h' file not found
>>   455 | #include <ldap.h>
>>       |          ^~~~~~~~
>> 1 error generated.
>>
>> I see the 3 patches mentioned here, are already in the code.
>> https://bugzilla.samba.org/show_bug.cgi?id=15623
>>
>>
>> Thanks,
>> Sandeep
>>
>>


More information about the samba-technical mailing list