ccan dependencies seems to break external projects

Matthieu Patou mat at
Sun Feb 12 14:34:49 MST 2012

On 02/11/2012 02:49 PM, Matthieu Patou wrote:
> Hello Rusty,
> I'm trying to compile openchange as described here : 
> I'm using the latest git tree instead of alpha17, after a couple of 
> tweak in the script that setup the prerequisits I have a samba4 with 
> using system talloc/tdb/tevent and ldb.
> Then I try to build openchange and got:
> /usr/local/src/openchange$ make
> Linking sample application bin/libmapixx-test
> g++ -I.  -O3 -Wall -g3 -fstrict-aliasing -Wp,-D_FORTIFY_SOURCE=2 
> -Wl,-rpath,/usr/local/samba/lib -I/usr/local/samba/include
>    -I/usr/local/samba/include   -I/usr/local/samba/include   
> -I/usr/local/samba/include     -o bin/libmapixx-test 
> libmapi++/tests/test.cpp
> .11 -Wl,-rpath,/usr/local/samba/lib -L/usr/local/samba/lib -ldcerpc 
> -ldcerpc-binding -lndr -lsamba-hostconfig -lsamba-util -ltevent 
> -ltalloc   -Wl,-rpath,/usr/local/samb
> a/lib -L/usr/local/samba/lib -lldb -ltalloc   
> -Wl,-rpath,/usr/local/samba/lib -L/usr/local/samba/lib -ltalloc   
> -lpthread
> /usr/local/samba/lib/ undefined reference to 
> `hash_any at SAMBA_4.0.0ALPHA18_GIT_0B3A262'
By the way it seems that it's not only this library that cause a problem.

I tried to run samba for a couple of minutes and got:

/usr/local/src/samba/source4/scripting/bin/samba_spnupdate: ldb: unable 
to dlopen /usr/local/samba/lib/ldb/ : 
/usr/local/samba/lib/private/ version `LDB_1.1.4' not found 
(required by /usr/local/samba/lib/ldb/

I'm supposing that is already loaded by samba but with a 
version SAMBA_4_0.0.0ALPHA ...
Maybe for this one I should have specified to use the system lib though.


Matthieu Patou
Samba Team

More information about the samba-technical mailing list