tprouty/samba.git
11 years agobuild: fix build of smbget by moving LIBSMBCLIENT_OBJ* defs up again
Michael Adam [Tue, 8 Jul 2008 14:55:52 +0000 (16:55 +0200)]
build: fix build of smbget by moving LIBSMBCLIENT_OBJ* defs up again

to their original place. The problem was that LIBSMCLIENT_OBJ1 is used
in SMBGET_OBJ and that the difinition of LIBSMBCLIENT_OBJ1 was moved
below the bin/smbget target. Somehow it had worked for me.

Thanks to Derrell for pointing that out.

Michael
(cherry picked from commit c4e51f5e761ab23fa08197fa9a52af6db4ab839d)
(cherry picked from commit 2afd72288c54c4a0251cee4c99710bd894cf2b3f)

11 years agobuild: fix creation of libsmbclient.a - don't link in libtalloc.a
Michael Adam [Mon, 7 Jul 2008 16:32:50 +0000 (18:32 +0200)]
build: fix creation of libsmbclient.a - don't link in libtalloc.a

a step in fixing bug #5590

Michael
(cherry picked from commit bae7bd4bba4d49edec9cb58d47c1cb82aba16c6b)
(cherry picked from commit f61d00d18bda40d2736b45d1caf238ed42140e2e)

11 years agobuild: fix creation of libaddns.a - don't link in libtalloc.a
Michael Adam [Mon, 7 Jul 2008 16:30:12 +0000 (18:30 +0200)]
build: fix creation of libaddns.a - don't link in libtalloc.a

a step in fixing bug #5590

Michael
(cherry picked from commit 4d6edcb2c8bd516e09a864d1990675ba9bcec796)
(cherry picked from commit 68aa96ff700feb43fd429c650ff6012a27bc445d)

11 years agobuild: fix creation of libsmbsharemodes.a - don't link in libtdb.a.
Michael Adam [Mon, 7 Jul 2008 09:57:43 +0000 (11:57 +0200)]
build: fix creation of libsmbsharemodes.a - don't link in libtdb.a.

a step in fixing bug #5590

Michael
(cherry picked from commit 76f9e2e64644c6f21baf523b91455dc3aebb2163)
(cherry picked from commit 92e0a9c1b71eda9cc8681e4b28f06431568aaf05)

11 years agobuild: remove library-versions.in - it is not used any more.
Michael Adam [Mon, 7 Jul 2008 15:42:59 +0000 (17:42 +0200)]
build: remove library-versions.in - it is not used any more.

Michael
(cherry picked from commit e2699b7f86302e5c770f8e3160f72f070d700b6c)
(cherry picked from commit 288c4951a102e313a86b461dcd5cf3e7840d65f2)

11 years agobuild: set SONAME version of libraries from configure, not using library-versions
Michael Adam [Mon, 7 Jul 2008 15:35:08 +0000 (17:35 +0200)]
build: set SONAME version of libraries from configure, not using library-versions

This sets the library versions (previously gotten from library-versions
file during make) already at configure time.

For library "foo", the version is stored in the LIBFOO_SOVER configure
variable.  For all libraries except libwbclient, this is done through the
call of SMB_LIBRARY().

NOTE: Currently the versions are hard-coded in the SMB_LIBRARY() calls in
configure.in, but this change makes it easier to retrieve the version from
the libraries source dir at configure time, e.g. for talloc and tdb.

Michael
(cherry picked from commit 3c300f9f8cffb5af32e291ec75007ab98fe96561)
(cherry picked from commit 6a6b90f4c56f040d19c60122c914b7a7ce64a3c6)

11 years agobuild: extend SMB_LIBRARY() to take a version as an optional second argument
Michael Adam [Mon, 7 Jul 2008 15:34:00 +0000 (17:34 +0200)]
build: extend SMB_LIBRARY() to take a version as an optional second argument

This will allow transition away from library-versions in the next step.

Michael
(cherry picked from commit d9d92b64275127e29c80dbdc7cfe193289fef9a3)
(cherry picked from commit e2624c2537e87acad7cfd58c76cb471d7141801c)

11 years agobuild: combine the cleanlibfoo targets to one cleanlibs target
Michael Adam [Mon, 7 Jul 2008 17:06:16 +0000 (19:06 +0200)]
build: combine the cleanlibfoo targets to one cleanlibs target

And use that in make clean

Michael

(cherry picked from commit 887b6231198ce2ff6230e0939ddcf46759bc88bf)

conflicts resolved
(cherry picked from commit 4266976d0f35161af8a8c687589c6010de3035a3)

11 years agobuild: fix shlibs target after internal changes, add libs target.
Michael Adam [Mon, 7 Jul 2008 15:32:18 +0000 (17:32 +0200)]
build: fix shlibs target after internal changes, add libs target.

The shlibs target now only builds the shared libs as the name suggests.
All libraries are built by the new "libs" target.

Michael
(cherry picked from commit 1bb2b576a4fb546f51f1ad70ba8e8b3a86bff2c2)
(cherry picked from commit 196cf8307291aafb65db6291f3c55fdd33a2de85)

11 years agobuild: remove the SONAME_VER variable - not used anymore.
Michael Adam [Mon, 7 Jul 2008 14:24:17 +0000 (16:24 +0200)]
build: remove the SONAME_VER variable - not used anymore.

Michael
(cherry picked from commit 35b2ee2bce93f6e659f95d91b0590edd02c9b348)
(cherry picked from commit 961bb257b590920b7fbcf80bbe26c58a6b4be696)

11 years agobuild: fix typo in use of cleanlibsmbclient target
Michael Adam [Mon, 7 Jul 2008 16:12:02 +0000 (18:12 +0200)]
build: fix typo in use of cleanlibsmbclient target

Michael

(cherry picked from commit 5712062d22237768a671aa918e39a22d290b0f0a)

conflicts resolved
(cherry picked from commit f474363356a965fe712cb2dc4afa3272b2f882cb)

11 years agobuild: add a cleanlibaddns target and use it in "make clean"
Michael Adam [Mon, 7 Jul 2008 12:04:32 +0000 (14:04 +0200)]
build: add a cleanlibaddns target and use it in "make clean"

Michael

(cherry picked from commit 39a447a232d0afbef55437a995f557553cbc8a0e)

conflicts resolved

Michael
(cherry picked from commit 90e56e6b86b3aee208ff326246aaf7dfad1ee0ce)

11 years agobuild: handle libaddns by SMB_LIBRARY() and correctly create SONAME file.
Michael Adam [Mon, 7 Jul 2008 11:57:34 +0000 (13:57 +0200)]
build: handle libaddns by SMB_LIBRARY() and correctly create SONAME file.

Create .so file as a symlink.

Michael
(cherry picked from commit bbf665ad5790e89ff01867e2762fe2b94db7277d)
(cherry picked from commit f0ee69d25da86647a4a75e6994e72a62ad889064)

11 years agobuild: extend SMB_LIBRARY() to optionally take default value.
Michael Adam [Mon, 7 Jul 2008 11:55:31 +0000 (13:55 +0200)]
build: extend SMB_LIBRARY() to optionally take default value.

The default value defaults to "yes".
If no is specified, an optional third argument contains the
reason why building of the shared library is turned off by default.

Michael
(cherry picked from commit af971f79c7d736eb5b7ae8fcd4b2bf7ccf4834f3)
(cherry picked from commit 6c11ed560ae20f712be6c0680f53b1a275da94e7)

11 years agobuild: move LIBADDNS_OBJ0 up again -- needed for NET_OBJ :-\
Michael Adam [Mon, 7 Jul 2008 16:28:53 +0000 (18:28 +0200)]
build: move LIBADDNS_OBJ0 up again -- needed for NET_OBJ :-\

Michael

(cherry picked from commit b871cb0cb6d32e5e97666bd429d0fb9940ae4b2e)

conflicts resolved
(cherry picked from commit 2344a61abc83e26bf7488a1de00289937af4f758)

11 years agobuild: move libaddns related bits to the libaddns section in Makefile.in
Michael Adam [Mon, 7 Jul 2008 09:59:10 +0000 (11:59 +0200)]
build: move libaddns related bits to the libaddns section in Makefile.in

Michael

(cherry picked from commit 61157cb92ec2c12e565fb088170c7f430e3b5b77)

conflicts resolved
(cherry picked from commit a1132b9cf92a16448888e7b64e08efd796677db6)

11 years agobuild: create cleanlibsmbsharemodes target and use it in "make clean".
Michael Adam [Mon, 7 Jul 2008 07:26:21 +0000 (09:26 +0200)]
build: create cleanlibsmbsharemodes target and use it in "make clean".

Michael

(cherry picked from commit 20a5053f0e75176e9ec1d4fd5a18626bbe3a0267)

conflicts resolved
(cherry picked from commit 0ae8cc06532a72ab68ce91d6237d5457dfe369fd)

11 years agobuild: handle libsmbsharemodes by SMB_LIBRARY() and correctly create SONAME file.
Michael Adam [Sun, 6 Jul 2008 22:41:23 +0000 (00:41 +0200)]
build: handle libsmbsharemodes by SMB_LIBRARY() and correctly create SONAME file.

Create libsmbsharemodes.so as a symlink.

Michael
(cherry picked from commit 1157048146084e9ab34d7c2e77e8d00b22df53a4)
(cherry picked from commit 8335245d9164f0bd19b2d018bb3138fde9e05fa7)

11 years agobuild: move libsmbsharemodes related vars and targets to libsmbsharemodes section...
Michael Adam [Sun, 6 Jul 2008 22:23:57 +0000 (00:23 +0200)]
build: move libsmbsharemodes related vars and targets to libsmbsharemodes section in Makefile.in

Michael
(cherry picked from commit 278dde8a6c486505c2d7403103ba011e1abb039e)
(cherry picked from commit ace76729b45730c70915c2656eee5ed83102bcf6)

11 years agobuild: add structuring comment for libbigballofmud
Michael Adam [Sun, 6 Jul 2008 22:20:47 +0000 (00:20 +0200)]
build: add structuring comment for libbigballofmud
(cherry picked from commit 879b000fd3ad123f64017071a6aaa17cdc926995)
(cherry picked from commit fc3dafec9fc6b064de1909ae53099b07100fe1b4)

11 years agobuild: add cleanlibsmbclient target and use it in make clean.
Michael Adam [Sun, 6 Jul 2008 22:06:28 +0000 (00:06 +0200)]
build: add cleanlibsmbclient target and use it in make clean.

Michael

(cherry picked from commit 95a7d21d3150ca9c24d48cf6a2976dcc1dfaaa05)

conflicts resolved
(cherry picked from commit db2a20d834e7ede4a1c97aeb075d6b55afb1c847)

11 years agobuild: handle libsmbclient by SMB_LIBRARY() and correctly create soname file.
Michael Adam [Sun, 6 Jul 2008 22:02:50 +0000 (00:02 +0200)]
build: handle libsmbclient by SMB_LIBRARY() and correctly create soname file.

Create libsmbclient.so as a symlink to libsmbclient.so.0.

Michael
(cherry picked from commit c463bd0cb9927176eec89e25788c6ea78eafdd16)
(cherry picked from commit 706c66f0d893d97646898e7bd69a45db9411ff65)

11 years agobuild: slightly change and extend the logic of SMB_LIBRARY().
Michael Adam [Sun, 6 Jul 2008 21:37:06 +0000 (23:37 +0200)]
build: slightly change and extend the logic of SMB_LIBRARY().

Only call the install/uninstall targets (from make (un)install)
for libraries configured with SMB_LIBRARY(), when the user did
not set --with-libname=no.

Make sure to always (at least) build the static version of the library.

Michael
(cherry picked from commit f440538c9480134ff05cf9c9f78a565808161101)
(cherry picked from commit 2f10a7f631452993a942f2fd7362ebe3bad3859f)

11 years agobuild: rename (un)installclientlib to (un)installlibsmbclient
Michael Adam [Sun, 6 Jul 2008 20:10:23 +0000 (22:10 +0200)]
build: rename (un)installclientlib to (un)installlibsmbclient

keeping old targets as aliases for backward compatibility

Michael
(cherry picked from commit 40ff40de5780fb17567b8d5ea75f5bb7f8d811c4)
(cherry picked from commit 7879c44a695a1b2817f312ba1e276847406b3209)

11 years agobuild: move libsmbclient related variables and targets to libsmbclient section
Michael Adam [Sun, 6 Jul 2008 20:08:28 +0000 (22:08 +0200)]
build: move libsmbclient related variables and targets to libsmbclient section

Michael
(cherry picked from commit ed3c35d307456601ca00d88a5cc278d6604681e1)
(cherry picked from commit 06dfae9a67ccb40bd14192505d26ab4e7870e7c5)

11 years agobuild: move definition of SHLIBS to libraries section
Michael Adam [Sun, 6 Jul 2008 19:27:18 +0000 (21:27 +0200)]
build: move definition of SHLIBS to libraries section

Michael
(cherry picked from commit 36c99a3cad3c938a874f9b9f37c2265045957099)
(cherry picked from commit 96fac8a57a009e1bcf66c04a11fa78e0e4718db8)

11 years agobuild: add a cleanlibwbclient target to Makefile.in and use it for make clean.
Michael Adam [Sun, 6 Jul 2008 19:23:11 +0000 (21:23 +0200)]
build: add a cleanlibwbclient target to Makefile.in and use it for make clean.

Michael

(cherry picked from commit e01a1d8d651f680ca58b809dc569ff74592d53a9)

conflicts resolved
(cherry picked from commit 168a5a4c131e7993d89fb4391e254befe8e03d67)

11 years agobuild: add uninstalllibwbclient to Makefile.in and use it for uninstall
Michael Adam [Sun, 6 Jul 2008 19:20:54 +0000 (21:20 +0200)]
build: add uninstalllibwbclient to Makefile.in and use it for uninstall

Michael
(cherry picked from commit 2712dade9d6495f3dbb75876ec32d73f8bb93f9f)
(cherry picked from commit 3fd4ef99f7a41de203dc5cc7c802bdbf4562efdb)

11 years agobuild: fix the installlibwbclient target to use defined variables and install the...
Michael Adam [Sun, 6 Jul 2008 19:14:17 +0000 (21:14 +0200)]
build: fix the installlibwbclient target to use defined variables and install the symlink

Michael
(cherry picked from commit 922b136ada1c502edcbbb89e9cca155cd6ad376c)
(cherry picked from commit b3a0602cc47c2f3d452c42a475a3103899802729)

11 years agobuild: fix creation of libwbclient shared lib by crating soname file
Michael Adam [Sun, 6 Jul 2008 18:48:00 +0000 (20:48 +0200)]
build: fix creation of libwbclient shared lib by crating soname file

and adding .so file as a symlink

Michael
(cherry picked from commit beab1a31484836014aab5d2bcb38995435f6218b)
(cherry picked from commit ae6adbf863e7662af41e971341ae7e96a346b765)

11 years agoRevert "build: fix creation of libsmbsharemodes.a - don't link in libtdb.a."
Michael Adam [Thu, 14 Aug 2008 12:44:30 +0000 (14:44 +0200)]
Revert "build: fix creation of libsmbsharemodes.a - don't link in libtdb.a."

This reverts commit 4fc57a0a90390ede1161fd6f231ea274c9c74b20.

In preparation of picking libraray creation/install fixes.
To be re-added later in upstream form.

Michael
(cherry picked from commit c72a795bfaade8dd6117384806619f54bc442132)

11 years agoRevert "build: fix creation of libsmbclient.a - don't link in libtalloc.a"
Michael Adam [Thu, 14 Aug 2008 12:43:58 +0000 (14:43 +0200)]
Revert "build: fix creation of libsmbclient.a - don't link in libtalloc.a"

This reverts commit dcf986937ccf5e6947c4214aa0838733ed7f3b9b.

In preparation of picking libraray creation/install fixes.
To be re-added later in upstream form.

Michael
(cherry picked from commit 360b81ff6e83457cfaf1d122bdc6b301ce7f6630)

11 years agoRevert "build: fix creation of libaddns.a - don't link in libtalloc.a"
Michael Adam [Thu, 14 Aug 2008 12:43:31 +0000 (14:43 +0200)]
Revert "build: fix creation of libaddns.a - don't link in libtalloc.a"

This reverts commit 396310775e69baeee06b2e6469854a5ddf759a91.

In preparation of picking libraray creation/install fixes.
To be re-added later in upstream form.

Michael
(cherry picked from commit 7c9e741b2431f1235606ccdf462d1bf3d15049b3)

11 years agoRevert "build: fix build on systems with picky make and without shared libwbclient"
Michael Adam [Thu, 14 Aug 2008 12:43:05 +0000 (14:43 +0200)]
Revert "build: fix build on systems with picky make and without shared libwbclient"

This reverts commit fd9b4bcaa5302d3d6245eb7b21ce0ef9994f718d.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 88d7bdacff4a8354c172b781d217c75c983ace7a)

11 years agoRevert "build: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:42:49 +0000 (14:42 +0200)]
Revert "build: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules."

This reverts commit 2d2b48749e885d2a529dab273c8419c5445568d3.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit f76a628db01f58e50609f1cff05649778a35a916)

11 years agoRevert "build: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:40:54 +0000 (14:40 +0200)]
Revert "build: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules."

This reverts commit 15dd9f78650b0b853cb6955429ae58656be3945e.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 0b34e6d2e2e076e46e7aa6e96543ef183764c720)

11 years agoRevert "build: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:40:37 +0000 (14:40 +0200)]
Revert "build: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules."

This reverts commit 0f609e55d8c58285de73fa0955df951042dfd9a0.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 3c8389f80b6194219f18219520269281b458ce15)

11 years agoRevert "build: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@"
Michael Adam [Thu, 14 Aug 2008 12:40:11 +0000 (14:40 +0200)]
Revert "build: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@"

This reverts commit a60d295d3ac4a6e7a055927951f7207f09a3df7c.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 8a728f74586111b0415c746da3b75f5bb2f7021e)

11 years agoRevert "build: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:39:54 +0000 (14:39 +0200)]
Revert "build: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules."

This reverts commit 22d0f686eb6649b3d4a8c7f142257e303c54568e.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 61e32e9255fd06ecaabc3b27a6d7dc254a7cb521)

11 years agoRevert "build: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:39:37 +0000 (14:39 +0200)]
Revert "build: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules."

This reverts commit a7ee1c16c234ad5d0aa8853081d8f5f4f763614b.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 69fafff2626841ce5e3832f9a96b78f2a2ed6d33)

11 years agoRevert "build: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@...
Michael Adam [Thu, 14 Aug 2008 12:39:20 +0000 (14:39 +0200)]
Revert "build: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in rules."

This reverts commit 7420f409c2fbfd5f90d45a4a435489fe31016581.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit e60e337807c5bb95268aadaf68e619cb6262f8e9)

11 years agoRevert "build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules."
Michael Adam [Thu, 14 Aug 2008 12:38:59 +0000 (14:38 +0200)]
Revert "build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules."

This reverts commit 1aad6661adc5800243969b761c653b57ff280f69.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit f6e5e3a98d6426052150ef35c6ddccac1367bcf9)

11 years agoRevert "build: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@...
Michael Adam [Thu, 14 Aug 2008 12:38:02 +0000 (14:38 +0200)]
Revert "build: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in rules."

This reverts commit 9a2870e936a967b82a100b1e26200d3665311f85.

In preparation of picking libraray creation/install fixes.
To be re-added later.

Michael
(cherry picked from commit 3ae8e1ca573f19ecbdcb1a5fbc64fac22671a6aa)

11 years agobuild: move libwbclient related target to libwbclient section in Makefile.in
Michael Adam [Sun, 6 Jul 2008 18:44:27 +0000 (20:44 +0200)]
build: move libwbclient related target to libwbclient section in Makefile.in

Michael

(cherry picked from commit 8f64706b095b9ca0e2a8f39cc3133bfd02f86158)

resolved conflicts
(cherry picked from commit ba6a10f28f5161f725fff929df6fb8a4fa81b061)

11 years agobuild: move libtdb target further down following common schema like with libtalloc
Michael Adam [Sun, 6 Jul 2008 18:39:45 +0000 (20:39 +0200)]
build: move libtdb target further down following common schema like with libtalloc

Michael
(cherry picked from commit f94b07f0c56928f890ffb1e2aca2c8bfcc954dd5)
(cherry picked from commit ed8622ea9d58620bd5319e5cd5c32ebf7838d6fb)

11 years agobuild: fix uninstalllibnetapi target - handle symlink libnetapi.so
Michael Adam [Sun, 6 Jul 2008 18:38:03 +0000 (20:38 +0200)]
build: fix uninstalllibnetapi target - handle symlink libnetapi.so

and use the defined variables instead of hardcoded bits.
Also move the target into the libnetapi section (forgotten last time).

Michael
(cherry picked from commit 21b6164795344cea45161bc01828ec1127b5b6ab)
(cherry picked from commit f471bcda42f4d504830989f9c69382075c701b39)

11 years agobuild: fix installlibnetapi target - install symlink libnetapi.so (if appropriate)
Michael Adam [Sun, 6 Jul 2008 18:35:13 +0000 (20:35 +0200)]
build: fix installlibnetapi target - install symlink libnetapi.so (if appropriate)

Michael
(cherry picked from commit 59e7827e557c5096fb363051a4cf1835b2a53223)
(cherry picked from commit e4a7abb5f978475493c8c1d10dd078b778a857bf)

11 years agobuild: add a cleanlibnetapi target and use it in make clean
Michael Adam [Sun, 6 Jul 2008 18:28:43 +0000 (20:28 +0200)]
build: add a cleanlibnetapi target and use it in make clean

Michael

(cherry picked from commit ff62887a94a7dd6f09995c820db7d825828bacad)

resolved conflicts
(cherry picked from commit cf7c21409bce6fc39cf62ced54191e7a78ea470b)

11 years agobuild: fix creation of the libnetapi shared lib: create soname library
Michael Adam [Sun, 6 Jul 2008 18:25:16 +0000 (20:25 +0200)]
build: fix creation of the libnetapi shared lib: create soname library

and add the .so file as symlink

Michael
(cherry picked from commit d9af2f7ab6b839e8074a69ce5d1fe66548c08e52)
(cherry picked from commit e278895d41780ba7022a085229d2b0482be5f0ea)

11 years agobuild: move libnetapi related definitions and targets together into the libnetapi...
Michael Adam [Sun, 6 Jul 2008 18:11:50 +0000 (20:11 +0200)]
build: move libnetapi related definitions and targets together into the libnetapi section.

in Makefile.in

Michael

(cherry picked from commit da29e1ce44d4f99b876259fbad892691e2c7d7e0)

resolved conflicts
(cherry picked from commit d3c483ffac09498fc0ebe23b7c9b890586849597)

11 years agobuild: add an uninstalllibtdb target.
Michael Adam [Sun, 6 Jul 2008 12:43:12 +0000 (14:43 +0200)]
build: add an uninstalllibtdb target.

Michael
(cherry picked from commit c50c847f4b9772261f8011f32eec97d8244dccdd)
(cherry picked from commit 25852c3df675cdbbac07d919cb5c088b7146d1ef)

11 years agobuild: fix the installlibtdb target to install the soname file of libtdb.
Michael Adam [Sun, 6 Jul 2008 12:42:30 +0000 (14:42 +0200)]
build: fix the installlibtdb target to install the soname file of libtdb.

and create the .so file as a symlink (if appropriate)

Michael
(cherry picked from commit 5c090762f769b645c411333aef2085362bb2e6cb)
(cherry picked from commit 1fc6b24ac85aee70802d88a9f8280776a0beb3ca)

11 years agobuild: create a cleanlibtdb target and use it in target clean.
Michael Adam [Sun, 6 Jul 2008 12:37:29 +0000 (14:37 +0200)]
build: create a cleanlibtdb target and use it in target clean.

Michael

(cherry picked from commit ebfe13b79b24791bd9c854ac2f239f02796da6bb)

resolved conflicts
(cherry picked from commit 2ae7ab1640b8f8da8c74be5e88480bd3293a4dbf)

11 years agobuild: fix creation of the libtdb shared library.
Michael Adam [Sun, 6 Jul 2008 12:32:36 +0000 (14:32 +0200)]
build: fix creation of the libtdb shared library.

Create the libtdb.so.1 file and create the .so file as the symlink.
Not vice versa.

Michael
(cherry picked from commit 662d666b41b11ae70daf7422b1ced5f86209e608)
(cherry picked from commit dfd2262ca469e7e409e0061ed62c14ac72d5440a)

11 years agobuild: move libtdb related definitions and targets to libtdb section in Makefile.in
Michael Adam [Sun, 6 Jul 2008 11:07:54 +0000 (13:07 +0200)]
build: move libtdb related definitions and targets to libtdb section in Makefile.in

Michael
(cherry picked from commit a4de301af48f4e5b4898751e8836bdb434d047a6)
(cherry picked from commit d0fa43966e5486512e04bd28cf84f24896d035d1)

11 years agobuild: move all libtalloc related definitions into the libtalloc section in Makefile.in
Michael Adam [Sun, 6 Jul 2008 11:02:40 +0000 (13:02 +0200)]
build: move all libtalloc related definitions into the libtalloc section in Makefile.in

Michael
(cherry picked from commit b330892f4b2f9f50fd192e37720217d15fedf1f0)
(cherry picked from commit 8a2c96bd92e2090a7542709819b2f478247da6da)

11 years agobuild: move top level targets for the libs into the corresponding sections in Makefile.in
Michael Adam [Sun, 6 Jul 2008 10:53:21 +0000 (12:53 +0200)]
build: move top level targets for the libs into the corresponding sections in Makefile.in

Michael
(cherry picked from commit 4092059ff0bbb638c937c3f2b977ad431d868331)
(cherry picked from commit ddf6b352fe79e3118e20b50e0f0a981dc44634a9)

11 years agobuild: add more structuring comments to Makefile.in
Michael Adam [Sun, 6 Jul 2008 10:51:04 +0000 (12:51 +0200)]
build: add more structuring comments to Makefile.in

for several shared libs and shared modules section

Michael
(cherry picked from commit 53cc6a3225c0c7baea4d8ea04eefc61283650434)
(cherry picked from commit e5b3718913f52afe7df3b0e017451d9ece330191)

11 years agobuild: add a "make shlibs" target to build all the shared libraries.
Michael Adam [Fri, 23 May 2008 11:42:40 +0000 (13:42 +0200)]
build: add a "make shlibs" target to build all the shared libraries.

Michael
(cherry picked from commit 5a99f59d7514edadbab081dc0c5c28a6ea26972a)
(cherry picked from commit 387707e4e48ebcaf1951d440362c301495903946)

11 years agobuild: add structuring comments for libraries and libtalloc section.
Michael Adam [Sun, 6 Jul 2008 10:39:24 +0000 (12:39 +0200)]
build: add structuring comments for libraries and libtalloc section.

Michael
(cherry picked from commit 3de000890447dd15962fbd6a9b1b3504b9bd1175)
(cherry picked from commit b5ccce5db2f034dbeade68d97f55d973db241321)

11 years agobuild: fix installlibtalloc to not install symlink if the library is not there
Michael Adam [Mon, 7 Jul 2008 14:16:28 +0000 (16:16 +0200)]
build: fix installlibtalloc to not install symlink if the library is not there

Michael
(cherry picked from commit 52ccb52c8e42e748fcc05337849945ddc30d5efa)
(cherry picked from commit 512cf07187c33f17e1724d345fffb4f813fa8768)

11 years agobuild: move libtalloc related targets together.
Michael Adam [Sun, 6 Jul 2008 00:52:09 +0000 (02:52 +0200)]
build: move libtalloc related targets together.

Michael
(cherry picked from commit 01b1e642d72ecccac5277b5f071aab8f6df04c0d)
(cherry picked from commit 9509bfbbb0581d71d15110aa8192c00ef3a89c40)

11 years agobuild: add a cleanlibtalloc target.
Michael Adam [Sun, 6 Jul 2008 00:48:39 +0000 (02:48 +0200)]
build: add a cleanlibtalloc target.

Michael

(cherry picked from commit 5d3c6c3c1c08747c521292ef09648ad528c2dca9)

resolved conflicts
(cherry picked from commit 76cfd3116a0d30301bdb1e728debe615e6caddc3)

11 years agobuild: add an uninstalllibtalloc target
Michael Adam [Sun, 6 Jul 2008 00:40:19 +0000 (02:40 +0200)]
build: add an uninstalllibtalloc target

Michael
(cherry picked from commit 4b6ef6202cd9b6e1e8949c43d0c45c04d4b97438)
(cherry picked from commit 22e28489a7ae01bb7adc994008e6b062b2d74a66)

11 years agobuild: fix creation of link libtalloc.so on some systems.
Michael Adam [Sun, 6 Jul 2008 00:32:09 +0000 (02:32 +0200)]
build: fix creation of link libtalloc.so on some systems.

ln -s -f seem to be unknown on some solaris versions (e.g.).
so if there is an old libtalloc.so around, this will fail.
use rm -f prior to creating the link to circumvent this.

Michael
(cherry picked from commit d913b1e7316e84c1430f9d577f49d3c3e4e7719b)
(cherry picked from commit 1cf4d4aaa4bcec2dcc7b99288f4818b0535fdfad)

11 years agobuild: fix the installlibtalloc target to install SONAME and \.so versions of shared...
Michael Adam [Sun, 6 Jul 2008 00:30:38 +0000 (02:30 +0200)]
build: fix the installlibtalloc target to install SONAME and \.so versions of shared lib.

Michael
(cherry picked from commit 49919889892f258cc669b08417e7569e8f5efaf4)
(cherry picked from commit 03f8b71417188e363d04eacff0904b693a06b339)

11 years agobuild: fix creation of talloc shared lib.
Michael Adam [Sun, 6 Jul 2008 00:29:02 +0000 (02:29 +0200)]
build: fix creation of talloc shared lib.

link the libtalloc.so.1 file and create libtalloc.so as a link

Michael
(cherry picked from commit 946537e6bec904d4a7937eeb6085dfac19c3e2b5)
(cherry picked from commit f75a3ff33255ba3cc12535f1c0405c0a0b2ca410)

11 years agobuild: add ability to use library files of the form NAME.so.VERSION to create version...
Michael Adam [Sun, 6 Jul 2008 00:26:57 +0000 (02:26 +0200)]
build: add ability to use library files of the form NAME.so.VERSION to create version script name.

Michael
(cherry picked from commit b8d13f8773f61863b71bfc9df468f0018b0db0d1)
(cherry picked from commit 3b221c60cc92dfaa7ca7c45b1ee3d8efa0e15197)

11 years agoAdd double-colon where it makes sense.
Jelmer Vernooij [Sun, 18 May 2008 16:39:48 +0000 (18:39 +0200)]
Add double-colon where it makes sense.

(cherry picked from commit 256200e951476ff31c95a7d5621a50ba297ea6e4)

Conflicts resolved (obnox)
(cherry picked from commit df52ff62eb890fd645b1c955d72f4bec90851929)

11 years agoRevert "build: fix bug #5608: link creation for libtalloc.so.1 (and friends) on solar...
Michael Adam [Thu, 14 Aug 2008 09:48:23 +0000 (11:48 +0200)]
Revert "build: fix bug #5608: link creation for libtalloc.so.1 (and friends) on solaris 8"

This reverts commit f4d26db5dfccb962f5ca2cc03e9012a9883e16d8.

In preparation of the library cration / installation changes.

Michael
(cherry picked from commit 8fd80452ec71b621adb48b735229f6214dfca85e)

11 years agoWHATSNEW: Add release date, add hint on printing timeouts.
Karolin Seeger [Fri, 15 Aug 2008 07:45:31 +0000 (09:45 +0200)]
WHATSNEW: Add release date, add hint on printing timeouts.

Karolin
(cherry picked from commit c01f10709b50f26a9513f9a83975c187d9958ecb)

11 years agoWHATSNEW: Update changes since 3.2.1.
Karolin Seeger [Fri, 15 Aug 2008 07:13:32 +0000 (09:13 +0200)]
WHATSNEW: Update changes since 3.2.1.

Karolin
(cherry picked from commit 4f958f09a75f5215044e680cc86edb3eca1c51be)

11 years agoFix show-stopper for 3.2. Smbd depends on group SID
Jeremy Allison [Fri, 15 Aug 2008 04:53:55 +0000 (21:53 -0700)]
Fix show-stopper for 3.2. Smbd depends on group SID
position zero being the primary group sid. Authenicating
via winbindd call returned a non-sorted sid list. This
fixes is for both a winbindd call and a pac list from
an info3 struct. Without this we mess up the
primary group associated with created files. Found by
Herb.
Jeremy.
(cherry picked from commit 5cfa78d6e45477cb952d3b12cc914635842d6251)

11 years agoFix bug #5692 - Core dump in full_audit.so.
Jeremy Allison [Thu, 14 Aug 2008 18:00:47 +0000 (11:00 -0700)]
Fix bug #5692 - Core dump in full_audit.so.
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed).
Jeremy.
(cherry picked from commit 12b4ed7c3c10a6a29d108f6a83d961bf19751ca7)

11 years agosmbspool: Fix printing on port 139.
Karolin Seeger [Wed, 13 Aug 2008 19:27:55 +0000 (21:27 +0200)]
smbspool: Fix printing on port 139.

This one was introduced with 8eff35bc.
Thanks to Noèl Köthe for tracking that down!

Karolin
(cherry picked from commit 250f5a40d6e80305220d7cdc6a8f8459d8d0de74)
(cherry picked from commit d7a50f1b22f5ccc5d027f8c2eeb73fa335d49f81)
(cherry picked from commit 50d6d617e5b76c3566b719dffe0058c5a0599dd0)
(cherry picked from commit 8e4f9b935f57f73c0f1a653ac02b59677c1192d1)

11 years agoWHATSNEW: Update changes since 3.2.1.
Karolin Seeger [Thu, 14 Aug 2008 06:52:36 +0000 (08:52 +0200)]
WHATSNEW: Update changes since 3.2.1.

Karolin
(cherry picked from commit 77c25837addde31086151ce174dcbf463b2569f0)

11 years agoFix coverity CID: 594. Resource leak on error path.
Jeremy Allison [Wed, 13 Aug 2008 23:53:28 +0000 (16:53 -0700)]
Fix coverity CID: 594. Resource leak on error path.
Jeremy.
(cherry picked from commit dcd28df09538922369cb613ac95c147365e02c42)

11 years agoFix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphane...
Jeremy Allison [Wed, 13 Aug 2008 23:46:49 +0000 (16:46 -0700)]
Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphaned if socket address parameter is invalid.
If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0.
Jeremy.
(cherry picked from commit a46dc151f692e6b4bd14d3881f90bca5fe5b9474)

11 years agoFix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
Jeremy Allison [Wed, 13 Aug 2008 22:48:26 +0000 (15:48 -0700)]
Fix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.
xp/2003 explorer freezes browsing shares on samba ipv6 hosts. Caused by missing
reply packet to SMB printclose packet.
Jeremy
(cherry picked from commit 93c977e80594e20ebd562b1eb8a03d57b9299461)

11 years agoPrevent NT_STATUS 0xF1000000 errors from appearing when
Jim McDonough [Wed, 13 Aug 2008 22:03:51 +0000 (18:03 -0400)]
Prevent NT_STATUS 0xF1000000 errors from appearing when
dos errors are used and there is no error.  It should
be mapped directly to NT_STATUS_OK.  smbclient to older
servers didn't work.
(cherry picked from commit 43054b199cb2a5f12c8e0c2bb14cf2328a945152)

11 years agoWHATSNEW: Update changes since 3.2.1.
Karolin Seeger [Wed, 13 Aug 2008 14:38:18 +0000 (16:38 +0200)]
WHATSNEW: Update changes since 3.2.1.

Karolin
(cherry picked from commit f03ffcb78e4ea8a8bd4a5fa0d26642544314a5e4)

11 years agonetapi: add c++ guard.
Günther Deschner [Tue, 12 Aug 2008 17:38:22 +0000 (19:38 +0200)]
netapi: add c++ guard.

Guenther
(cherry picked from commit 5ea69915a75447d9f66b651ef5601c0a7ac6cfbb)

11 years agoAttempt to fix bug 5684
Volker Lendecke [Tue, 12 Aug 2008 20:31:52 +0000 (22:31 +0200)]
Attempt to fix bug 5684

With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for
write-enabled transaction. Sadly, this also removed the possibility to ever
remove dead records left over from tdb_delete calls within a transaction.

Tridge, please check this! Did dde9f3f006 have any reason beyond performance
optimizations?

Thanks,

Volker
(cherry picked from commit 96d683d3ec1e95cddf9ec96326ebaf8e9cc2079c)

11 years agoI found lots of places where we assume error will be set when calling
Andrew Tridgell [Sun, 10 Aug 2008 00:43:36 +0000 (10:43 +1000)]
I found lots of places where we assume error will be set when calling
one of our virtualised functions, such as db_open(), but error is only
set when a system call fails, and it is not uncommon for us to fail a
function internally without ever making a system call. That led to us
passing back success when a function had in fact failed.

I found two places where we relied on map_nt_error_from_unix()
returning success when errno==0, but lots and lots of places where we
relied on the reverse, so I fixed those two places.

map_nt_error_from_unix() will now always return an error, returning
NT_STATUS_UNSUCCESSFUL if errno is 0
(cherry picked from commit 69d40ca4c1af925d4b0e59ddc69ef8c26e6501d1)
(cherry picked from commit 8c66020a82d9b92fb10d14359b1381d58ad4972b)

11 years agoFix unix_convert() for "*" after changing map_nt_error_from_unix().
Michael Adam [Tue, 12 Aug 2008 12:59:59 +0000 (14:59 +0200)]
Fix unix_convert() for "*" after changing map_nt_error_from_unix().

map_nt_error_from_unix() now assumes that it is called in
an error path and returns an error even for a given errno == 0.
The original behaviour of unix_convert() used the mapping
of errno == 0 ==> NT_STATUS_OK to return success through
an error path.

I think this must have been an oversight, and unix_convert() worked
only by coincidence (or because explicitly using the knowledge
of the conceptually wrong working of map_nt_error_from_unix().

This patch puts this straight by not interpreting errno == 0
as an error condition and proceeding in that case.

Jeremy - please check!

Michael
(cherry picked from commit 736bdf15d934028b579a02dc411aed6c14a437f3)

11 years agoMake sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael Adam [Tue, 12 Aug 2008 13:19:17 +0000 (15:19 +0200)]
Make sure to always set errno on error path in OpenDir (and hence scan_directory).

Michael
(cherry picked from commit 06304f3c5f538c75bfc63c7abc1457d2b4dc0f0b)

11 years agoprint correct test status
Herb Lewis [Tue, 12 Aug 2008 20:38:51 +0000 (13:38 -0700)]
print correct test status
(cherry picked from commit ccd413b8b10c99f18b6369717116765c3397edfb)

11 years agoFix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Jeremy Allison [Tue, 12 Aug 2008 20:34:00 +0000 (13:34 -0700)]
Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
(cherry picked from commit 4779f1efccc8364fd8b3ba446aa96ba0bddec689)

11 years agofix build warning.
Günther Deschner [Mon, 11 Aug 2008 09:20:38 +0000 (11:20 +0200)]
fix build warning.

Guenther
(cherry picked from commit eb7c3dc2ca92ef7885eef8f89e4397b5df486b65)

11 years agoWHATSNEW: Update changes since 3.2.1.
Karolin Seeger [Mon, 11 Aug 2008 14:46:15 +0000 (16:46 +0200)]
WHATSNEW: Update changes since 3.2.1.

Karolin
(cherry picked from commit 0099cb0741c159db7f389bcca52a3cc6a3762771)

11 years agofix smb_len calculation for chained requests
Volker Lendecke [Sun, 10 Aug 2008 15:53:35 +0000 (17:53 +0200)]
fix smb_len calculation for chained requests

I think chain_reply() is one of the most tricky parts of Samba. This recursion
needs to go away, we need to sequentially walk the chain list.
(cherry picked from commit 34b56cb54e06f9b38d2bb0a626ec7b04030fc4fa)

11 years agoFix andx offset calculation for more than 2 chained requests
Volker Lendecke [Sun, 10 Aug 2008 15:37:08 +0000 (17:37 +0200)]
Fix andx offset calculation for more than 2 chained requests

Untested code is broken code.... Test follows later, it's quite an intrusive
change to libsmb/
(cherry picked from commit 2abeea64e15f0e8e8c413744de9194bdcedd6f16)

11 years agoOne more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined before we...
Jeremy Allison [Fri, 8 Aug 2008 23:08:36 +0000 (16:08 -0700)]
One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined before we compile the new code.
Jeremy.
(cherry picked from commit fc309e41a45079d58c03dc6fb0c35ceb4517f0ae)

11 years agoTry and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy Allison [Fri, 8 Aug 2008 22:16:04 +0000 (15:16 -0700)]
Try and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy.
(cherry picked from commit 02862653724355b32e0c6e38e0ebcbb1a9954759)

11 years agoAdd Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
Jeremy Allison [Fri, 8 Aug 2008 21:33:00 +0000 (14:33 -0700)]
Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
work by me and advice by Love.
Jeremy.
(cherry picked from commit 5f419135ba1acae6bc37692fa77ae1162b62e0e3)

11 years agousing NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutin...
Yannick Bergeron [Fri, 8 Aug 2008 17:32:15 +0000 (13:32 -0400)]
using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutine in lib/replace/replace.c
(cherry picked from commit 6d6b205e444154e1bd2993d964eff4cf532bacd8)

11 years agoFix bug #5675 with a varient of Tim Waugh's patch,
Jeremy Allison [Fri, 8 Aug 2008 00:56:50 +0000 (17:56 -0700)]
Fix bug #5675 with a varient of Tim Waugh's patch,
as proposed by James Peach.
Jeremy.
(cherry picked from commit 1ee1e8306f3578c19fe015145eb8da1013f7b820)

11 years agoSolve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array...
Yannick Bergeron [Wed, 6 Aug 2008 17:23:00 +0000 (13:23 -0400)]
Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array initialization in client/smbspool.c
(cherry picked from commit f6ffc95a363d3ed8aa480ac25e440d2472551891)

11 years agofixed permissions on ctdb databases
Andrew Tridgell [Wed, 6 Aug 2008 06:35:43 +0000 (16:35 +1000)]
fixed permissions on ctdb databases
(cherry picked from commit 123fc3980a83d956bffaa689f3af81bbf81ce1c1)
(cherry picked from commit 61274204b63cf077a826671a9e0d807bd17dfec3)

11 years agofixed a fd leak when trying to regain contact to a domain controller
Andrew Tridgell [Wed, 6 Aug 2008 04:02:45 +0000 (14:02 +1000)]
fixed a fd leak when trying to regain contact to a domain controller
in winbind

When a w2k3 DC is rebooted the 139/445 ports come up before the
udp/389 cldap port. During this brief period, winbind manages to
connect to 139/445 but not to udp 389. It then enters a tight loop
where it leaks one fd each time. In a couple of seconds it runs out of
file descriptors, and leaves winbind crippled after the DC does
finally come up
(cherry picked from commit 57187cafbcc053e75bb54750494df9feabe3a738)
(cherry picked from commit 892e41d60469e1e8adccd2b1ff860210db58dcb0)