There is a bug in the installclientlib section of the Makefile. If you
redefine your LIBDIR during the configure step via a --libdir argument,
the lib directory never gets created by the installdirs section, and the
installation of the libsmbclient.* files gets done to a
$(DESTDIR)${prefix}/lib file, not to the directory. The easy fix is to put
@$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib
at the beginning of the installclientlib section. Attached is the patch.

                        Bill Knox
                        Lead Operating Systems Programmer/Analyst
                        The MITRE Corporation
--- samba-3.0.1pre3/source/Makefile     Thu Nov 20 15:56:13 2003
+++ samba-3.0.1pre3/source/Makefile.new Tue Nov 25 12:03:46 2003
@@ -1237,6 +1237,7 @@
        @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
 
 installclientlib: installdirs libsmbclient
+       @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/lib
        -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.so $(DESTDIR)${prefix}/lib
        -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)${prefix}/lib
        @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/include
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to