Hi,

As part of openchange, we use functions from libsamba-util. 

In the waf build, that leads to a linking problem (because we weren't linking 
to it). I can fix that on the openchange side, but it needs a hand from samba 
to ensure we can find the library.

A patch to add samba-util.pc support (similar to samba-hostconfig.pc) is 
attached. Please apply.

Brad
diff --git a/lib/util/samba-util.pc.in b/lib/util/samba-util.pc.in
new file mode 100644
index 0000000..b189fc5
--- /dev/null
+++ b/lib/util/samba-util.pc.in
@@ -0,0 +1,11 @@
+pref...@prefix@
+exec_pref...@exec_prefix@
+libd...@libdir@
+included...@includedir@
+
+Name: samba-util
+Description: Samba utility functions
+Requires: talloc tevent
+Version: 0.0.1
+Libs: -L${libdir} -lsamba-util 
+Cflags: -I${includedir}  -DHAVE_IMMEDIATE_STRUCTURES=1
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index a606058..122027a 100644
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -4,9 +4,10 @@ bld.SAMBA_LIBRARY('LIBSAMBA-UTIL',
 	source='xfile.c debug.c fault.c signal.c system.c time.c genrand.c dprintf.c util_str.c rfc1738.c substitute.c util_strlist.c util_file.c data_blob.c util.c blocking.c util_net.c fsusage.c ms_fnmatch.c mutex.c idtree.c become_daemon.c rbtree.c talloc_stack.c smb_threads.c params.c parmlist.c util_id.c',
 	public_deps='talloc LIBCRYPTO CHARSET execinfo UID_WRAPPER tevent',
 	public_headers='attr.h byteorder.h data_blob.h debug.h memory.h mutex.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h tevent_ntstatus.h tevent_unix.h',
-        header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
-        local_include=False,
-	vnum='0.0.1'
+	header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
+	local_include=False,
+	vnum='0.0.1',
+	pc_files='samba-util.pc',
 	)
 
 
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to