1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

1303 Commits

Author SHA1 Message Date
Björn Jacke
1f7e97a8a2 s3: syntax fix 2010-01-27 23:45:14 +01:00
Björn Jacke
6bade10a1e s3: get pthread detection also on HP-UX right 2010-01-27 18:59:16 +01:00
Björn Jacke
5439e1a03f s3: fix detection and flags for using pthread
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26 00:19:10 +01:00
Björn Jacke
e8a99ac980 s3: fix dnsupdate configure check 2010-01-21 01:09:01 +01:00
Lars Müller
30ea9932f5 Add cross option to samba_cv_linux_getgrouplist_ok
"cross" as an option got removed accidentl with commit e5a95132 while
moving in direction of 3.2.

Patch proposed by Richard Sharpe <realrichardsharpe@gmail.com>.
2010-01-20 12:41:43 +01:00
Björn Jacke
3bf9bbb275 s3: build with dnsupdate support when possible 2010-01-20 00:09:38 +01:00
Olivier Sessink
31e142854b s3: Add the "scannedonly" vfs virus scanner interface module 2010-01-12 22:57:18 +01:00
Björn Jacke
e172b219ee ѕ3:configure: use gettimeofday check from lib/util/ 2010-01-06 18:28:16 +01:00
Jonas Gorski
e3ee8ffc1b s3: Fix bug 6992, make test for getgrouplist cacheable 2009-12-17 11:38:03 +01:00
Bo Yang
c7e3a2dc31 s3: check for PAM_RADIO_TYPE.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-10 19:29:24 +08:00
Björn Jacke
b6174662df s3:configure: check for lutimes, futimes and futimens 2009-12-09 02:58:40 +01:00
Stefan Metzmacher
886fe5b920 s3: require tdb 1.1.7 with tdb_check()
metze
2009-12-07 19:56:55 +01:00
Volker Lendecke
a902c4cc50 s3: Support NetWkstaGetInfo 101 and 102 2009-12-06 13:07:03 +01:00
Björn Jacke
3264a98ff1 s3: check if glibc has broken posix_fallocate 2009-12-04 23:29:56 +01:00
Björn Jacke
a2929a638f s3:build: remove redundant qnx block size definition 2009-12-03 00:14:16 +01:00
Björn Jacke
1d013fd032 s3:build: fix shared library build on QNX
Fixes #6860. Thanks to Matt Kraai!
2009-12-03 00:02:44 +01:00
Björn Jacke
95c1862610 s3: prefer posix_fallocate for doing "strict allocate"
posix_fallocate is more efficient than manual zero'ing the file. When
preallocation in kernel space is supported it's extremely fast. Support for
preallocation at fs layer via posix_fallocate and fallocate at kernel site
can be found in Linux kernel 2.6.23/glibc 2.10 with ext4, XFS and OCFS2. Other
systems that I know of which support fast preallocation in kernel space are
AIX 6.1 with JFS2 and recent Solaris versions with ZFS maybe UFS2, too.

People who have a system with preallocation in kernel space might want to set
"strict allocate = yes". This reduces file fragentation and it's also safer for
setups with quota being turned on.

As of today most systems still don't have preallocation in kernel space, and
that's why "strict allocate = no" will stay the default for now.
2009-12-02 21:21:43 +01:00
Volker Lendecke
53744f01dc s3: Cope with older external libtdb 2009-12-02 00:38:03 +01:00
Günther Deschner
ecb071ca2a Revert "s3-build: taise tdb version when building against system libtdb library."
This reverts commit ea20678c55.

Just one new error code does probably not justify raising the required tdb version.

Guenther
2009-12-02 00:38:03 +01:00
Michael Adam
9d8867f676 s3:build: fix detection of CTDB headers on systems without system-libtalloc
Michael
2009-12-01 17:10:25 +01:00
Michael Adam
51b6e23f9a s3:build: fix the build when no external talloc and tdb are installed.
The check for the external libs and the addition of the include paths
to the CPPFLAGS was too late in configure.

This patch moves the whole subsystem/library section up right below
the detection of "BLDSHARED".
And it updates not only SAMBA_CPPFLAGS but also SAMBA_CONFIGURE_CPPFLAGS
so that many tests that use these flags can now succeed.

Michael
2009-12-01 17:10:24 +01:00
Günther Deschner
ea20678c55 s3-build: taise tdb version when building against system libtdb library.
Try to fix the build on "buildsamba02". At least fixes the build on fedora12
with libtdb-devel-1.1.5-2.fc12.x86_64 installed.

Volker, please check.

Guenther
2009-12-01 01:24:33 +01:00
Günther Deschner
51328a7056 s3-kerberos: fix the build on Mac OS X 10.6.2.
Guenther
2009-11-27 20:10:32 +01:00
Günther Deschner
04f8c229de s3-kerberos: only use krb5 headers where required.
This seems to be the only way to deal with mixed heimdal/MIT setups during
merged build.

Guenther
2009-11-27 16:36:00 +01:00
Günther Deschner
1a8f838274 s3-kerberos: Fix Bug #6929: build with recent heimdal.
Heimdal changed the KRB5_DEPRECATED define (which now may not take an identifier
for activation) in new releases (like 1.3.1).

Guenther
2009-11-27 01:40:35 +01:00
Günther Deschner
5b3a32be97 s3-kerberos: next step to resolve Bug #6929: build with recent heimdal.
Based on patch from Allan <allan@archlinux.org>.

Also should fix the FreeBSD build on the buildfarm.

Guenther
2009-11-26 10:15:45 +01:00
Günther Deschner
c438b2b392 s3-kerberos: add check for prerequisite krb5/krb5.h header while checking for krb5/locate_plugin.h.
(Needed for new Heimdal versions).

Guenther
2009-11-25 21:39:49 +01:00
Günther Deschner
35dcc133c9 s3-kerberos: add smb_krb5_get_{creds,credentials} incl. support for S4U2SELF impersonation.
Guenther
2009-11-06 12:43:03 +01:00
Günther Deschner
2cd507fe14 s3-kerberos: add configure checks for krb5_get_creds_X api.
Guenther
2009-11-06 12:43:02 +01:00
Björn Jacke
51cb96271b s3: add support for full windows timestamps resolution on files
setting nanosecond timestamps using utimensat() was first supported by Linux
kernel 2.6.22 and glibc 2.6. It's specified in POSIX.1-2008.

This effectively makes us use Windows' full 100ns timestamp resolution -
actually just an improvement from 10^-6 to 10^-7.

For now Linux CIFS vfs will also just be able to make use of 100ns resolution,
not 1ns.
2009-11-04 15:54:51 +01:00
Michael Adam
08d2a3f4bf s3:configure: add a check for the new CTDB_CONTROL_TRANS2_ACTIVE
Michael
2009-11-03 01:02:37 +01:00
Volker Lendecke
9ab1f793ff s3: Fix the RPC server SUBSYSTEM declaration
If I read SMB_SUBSYSTEM right then the 2nd argument needs to be the file where
the static_init_rpc (in this case) is defined. This seems to have moved from
server.c to process.c.

Jelmer, please check!

Volker
2009-10-31 11:28:55 +01:00
Björn Jacke
4ae950d211 ѕ3:buildsystem: fix depenencies for libreplace
This problem became visible after adding the picky -z defs linker option: On
Solaris libreplace had unresolved symbols, which showed up in the libtalloc
build. PAM_WINBIND_EXTRA_LIBS and WINBIND_NSS_EXTRA_LIBS had been workarounds
to make things work at two placeѕ. These variables have been obsoleted now.
This patch introduces LIBREPLACE_LIBS which contans the linker flags needed for
linking anything using libreplace.
2009-10-31 00:48:20 +01:00
Stefan Metzmacher
ee13e9c0be s3:configure: only check for gpfs_gpl.h
The header is everything we need in order to build vfs_gpfs.

metze

Signed-off-by: Michael Adam <obnox@samba.org>
2009-10-28 13:08:26 +01:00
Björn Jacke
4243e6e3a9 s3:configure: add support for Solaris' ld -z ignore
try linker flags for ignoring unused libs in this order:
-Wl,--as-needed (gcc like + binutils)
-Wl,-z,ignore (gcc like + Solaris linker)
-z ignore (old Sun C)
2009-10-20 10:52:07 +02:00
Björn Jacke
f96f8f9c77 s3: make unresolved symbols in libs throw errors
except for the Samba internal plugins unresolved symbol references should not
show up in shared libraries. For historical reasons it's the default behaviour
of linkers to ignore those in shared libs. We use -z defs (alias
--no-undefined) to not ignore them in shared libs.
2009-10-20 10:52:06 +02:00
Björn Jacke
718d2801d6 s3:configure: fix avahi activation
Avahi was correctly found but not activated since e4a26c942.
2009-10-18 17:06:29 +02:00
Björn Jacke
7655282ede s3: build pam_smbpass when possible 2009-10-16 23:46:52 +02:00
Andrew Tridgell
a6e4cb500b s3: fixed krb5 build problem on ubuntu karmic
Karmic has MIT krb5 1.7-beta3, which has the symbol
krb5_auth_con_set_req_cksumtype but no prototype for it.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635
2009-10-16 10:40:50 +11:00
Günther Deschner
67b544ba96 s3-build: we need to have talloc 2.0.1 when building with external talloc.
2.0.0 did not got the exports right.
This and the 2.0.1 talloc fixes resolve bug #6808.

Guenther
2009-10-14 17:45:59 +02:00
Björn Jacke
984d001cae s3:Makefile: another attempt to fix the wbclient dependency
in the dependencies we always used a variable that was not jet defined.
2009-10-04 02:20:21 +02:00
Björn Jacke
be348842f5 Revert "s3:Makefile: fix libwbclient dependencies with static build"
This reverts commit d7795f2afa.
2009-10-04 02:20:20 +02:00
Volker Lendecke
70e1d816b3 s3: Make default_[static|shared]_modules a bit more readable 2009-10-03 14:39:51 +02:00
Björn Jacke
d7795f2afa s3:Makefile: fix libwbclient dependencies with static build
analogical to previous libtalloc fix
2009-10-03 00:22:53 +02:00
Björn Jacke
e1ebadb85b s3:configure: use --aѕ-needed linker option when supported
Based on a patch from Andreas Schneider but modified that --aѕ-needed is also
used when own libs are not build shared (--enable-shared). Also change order of
options so that user supplied LDFLAGS are put *after* the automatic --aѕ-needed
flag. This way it's pollible to force not use as-needed by setting LDFLAGS
environment variable to "-Wl,--no-as-needed".
2009-10-03 00:22:51 +02:00
Björn Jacke
0265891cfc s3:configure: don't throw away PRINT_LIBS
PRINT_LIBS might have been set before intentionally, so don't thow it away.
2009-10-01 19:27:37 +02:00
Volker Lendecke
0cf317f36f s3: Remove the lua interpreter again
This was meant to support async winbind. But as the hairy parts of async
winbind (getgrent) are done without it, it can go again.
2009-09-29 13:51:43 +02:00
Björn Jacke
9e49ad558e s3: build with pam support when possible 2009-09-17 21:05:54 +02:00
Björn Jacke
18f1f5b56b s3: ignore cups-config to tidy up library dependencies
contrary to krb5-config for example, which outputs useful things, cups-config
--libs does not output libs we have to link against. It outputs libs that cups
linked against. We just have to link against cups.
2009-09-15 19:48:32 +02:00
Björn Jacke
f410d23185 s3: BSD needs sys/sysctl.h included to build properly
FreeBSD (and other BSDs, too) need sys/sysctl.h inclueded to use sysctlbyname().

Thanks to Timur Bakeyev for that.
2009-09-15 06:54:31 +02:00
Matt Kraai
6657598168 Do not redefine strupr
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-02 13:02:39 +02:00
Simo Sorce
a28b499e80 s3: Fix libtalloc so version 2009-08-30 13:54:42 -04:00
Aravind Srinivasan
c1b8eb884b s3: Add catia to the list of modules compiled by default
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-08-28 16:38:57 -07:00
Andrew Tridgell
2c846058ff LIBREPLACEOBJ now contains the full path 2009-08-24 16:30:00 +10:00
Stefan Metzmacher
851b01f64e s3:configure: require talloc >= 2.0.0
metze
2009-08-24 16:30:00 +10:00
Jeremy Allison
88fd98b7c4 Fix EVERY SINGLE build on the buildfarm that doesn't have
bindtextdomain or textdomain. C'mon, this is what configure.in
is *FOR*.
Jeremy.
2009-08-12 17:44:48 -07:00
Björn Jacke
2540710b5e s3:configure: honor CFLAGS in compile tests
When compilation is done for the architecture that's not the compiler's
default, for example by setting CFLAGS to -m64, then compile tests might fail
when they are done with the comiler's default arch. This should fix
bugzilla #6162.
2009-07-05 13:11:20 +02:00
Simo Sorce
2738178d13 Restore ABI compatibility for talloc. 2009-07-03 08:45:29 -04:00
Björn Jacke
b54e48b830 s3:configure: fix syntax error in avahi configure test 2009-07-03 14:26:28 +02:00
Matt Kraai
0b06aa2304 s3:configure: define _LARGEFILE64_SOURCE on QNX 2009-07-03 11:43:52 +02:00
Andrew Tridgell
acfb01a8f6 change talloc to 2.0.0
This is needed to prevent samba3 and samba4 from using an ABI
incompatible system version of talloc

See ongoing discussion on the samba-technical mailing list
2009-07-02 15:19:40 +10:00
Jeff Layton
f7250144ed umount.cifs: don't build it by default
Now that the sanity checks for mount.cifs default to matching the
behavior of /bin/mount, then there is virtually no need for umount.cifs.
The only exception is when someone enables the loose setuid behavior in
mount.cifs.

If an unprivileged user mounts a share that isn't in /etc/fstab, then
/bin/mount won't allow that user to unmount it. In that situation,
umount.cifs will be necessary to allow unmounting the share.

Signed-off-by: Jeff Layton <jlayton@samba.org>
Acked-by: Steve French <smfrench@us.ibm.com>
2009-06-30 15:03:13 -04:00
Michael Adam
69af9eacb9 s3:build: check for external liblua, link lua statically if using internal lib
So liblua is treated the same way as libtalloc and libtdb.

Michael
2009-06-29 23:25:38 +02:00
Volker Lendecke
04e4d03868 The solaris linker seems to require an extra mention of dependent libs 2009-06-26 23:15:51 +02:00
Michael Adam
23c7eccc27 s3:build: build talloctort only when using the internal liballoc
Fixes the build with the external libtalloc.
And is the reasonable thing to do anyways.

Michael
2009-06-19 21:13:38 +02:00
Michael Adam
bd70351b94 s3:build: build the tdb tools only when using the internal libtdb
This fixes the build when internal libtdb is used.

Michael
2009-06-19 21:13:38 +02:00
Michael Adam
5ceda58b8d s3:build: check for availability of external libtdb and use it if available
Link internal libtalloc statiaclly if extenal libtalloc is not found
or does not have appropriate version.

Michael
2009-06-19 21:13:37 +02:00
Michael Adam
ec154a1d81 s3:build: link libtalloc statically if using internal libtalloc
Michael
2009-06-19 21:13:37 +02:00
Jelmer Vernooij
3174de69d5 Fix build with external talloc. 2009-06-11 16:31:07 +02:00
Timur I. Bakeyev
16f5aedea0 Check for dmalloc at the end of the configure
Enabling dmalloc in Samba3 build leads to the wrong detection of the
strndup() function - there isn't one in FreeBSD prior to 7.2, but
dmalloc defines it, so, farther tests with -ldmalloc added wrongly
find it. the cheapest fix is to move dmalloc detection and inclusion
to the bottom of configure, so it can't affect detection of the system
capabilities.

Here is the patch.

With regards,
Timur Bakeyev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-08 13:20:52 +02:00
Volker Lendecke
23b501e02a Add an early prototyp of pdb_ads.c.
The purpose of this module is to connect to a locally running samba4 ldap
server for an alternative "Franky" setup. Right now it contains a couple of
gross hacks: For example it just takes the s4-chosed RID directly as uid/gid...

Checking in tldap and pdb_ads now, I think 3777 insertions are enough for a
start...
2009-06-06 13:10:30 +02:00
Volker Lendecke
3ada1a19ab Attempt to fix the build on HP/UX 2009-05-26 23:38:22 +02:00
Volker Lendecke
e3b5e286d0 Do not do a merged build without shared libs
Jelmer, you might want to take a look at Andrew B's problem with

--enable-developer --disable-shared --disable-shared-libs
2009-05-20 08:59:27 +02:00
Volker Lendecke
8811aa1376 Only build the krb5 locator when building shared libs 2009-05-20 08:41:57 +02:00
Volker Lendecke
05870b7ee7 Another attempt at fixing the static build of vfs_notify_fam 2009-05-19 20:46:52 +02:00
Volker Lendecke
3e1b6487e7 Fix detection of "enum FAMCodes" 2009-05-19 20:46:52 +02:00
Volker Lendecke
31a2347a0a Fix static linking of vfs_notify_fam 2009-05-16 19:22:03 +02:00
Michael Adam
66dff4073d s3:build: extend the support fo Debian GNU/kFooBar to kOpenSolaris
As suggested by Robert Millan.

Michael
2009-05-12 08:41:01 +02:00
Michael Adam
5fba1e938c s3:build: support non-linux gnu ports
This is based on a patch by the debian package maintainers,
adapted for the merged branch.

Michael
2009-05-12 08:41:01 +02:00
Jeremy Allison
3d6f4a7af7 Fix bug #6330 - DFS doesn't work on AIX. Jeremy. 2009-05-08 11:39:05 -07:00
Björn Jacke
ddd37c2b23 s3:configure: "test" only takes one "=" 2009-05-08 00:33:30 +02:00
Geza Gemes
5c2404fb86 Fix bug 6136: New AFS syscall conventions
Haven't checked this myself, but as I've already got several reports that Samba
won't compile against current OpenAFS anymore, I just believe Geza Gemes. This
patch only affects AFS code, so it should not hurt anything else.

Volker
2009-05-03 22:16:01 +02:00
Volker Lendecke
cacfd6ee01 Explicitly link in pthreads for lib/pthreadpool if required
No idea why it works on my Linux without -lpthread ... :-)
2009-05-02 17:15:02 +02:00
Volker Lendecke
db2cc8c9f2 Add thread pool
Included if pthreads are found, can be disabled with --enable-pthreadpool=no

Tim, Steven, I haven't yet seen comments from you. You have been asking for
such a thing at SambaXP. Do you like this? :-)
2009-05-01 12:30:58 +02:00
Björn Jacke
740c2c4366 ѕ3/configure: fix regexp for ld version recognition
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-04-22 16:05:36 +02:00
Jelmer Vernooij
31120c9eac Move syslog check out of m4 library file into configure.in 2009-04-20 16:25:17 +02:00
Volker Lendecke
ffdc2a3fe8 Print an error if trying a merged build without a system kerberos lib
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-04-01 16:31:10 +02:00
Michael Adam
993c87495b s3:build: rename WINBIND_LIBS -> LIBWBCLIENT_LIBS for unification
Michael
2009-04-01 10:41:34 +02:00
Michael Adam
baf39de623 s3:build: unify linking of libwbclient with a @LIBWBCLIENT_TARGET@
just like for the libs configured with SMB_LIBRARY().
This makes @LIBWBCLIENT_STATIC@ vanish from the object collections.

Michael
2009-04-01 10:41:33 +02:00
Björn Jacke
4b184eaea1 s3/cups: add encryption support 2009-03-30 11:11:19 +02:00
Volker Lendecke
63aae58fdc Use avahi to register _smb._tcp in smbd 2009-03-23 17:09:53 +01:00
Volker Lendecke
93e13fe3e0 Add tevent avahi binding 2009-03-23 17:09:53 +01:00
Volker Lendecke
4c1794c41c Add avahi detection to configure 2009-03-23 17:09:53 +01:00
Volker Lendecke
dfa93041ab Disable dns_sd by default 2009-03-23 17:09:53 +01:00
Michael Adam
a4cc3e2538 s3:build: prevent from setting "-O -g", check for $debug first.
This makes configure actually behave as the comments describe.
The reversal of order was introduced by mistake in
90ea8ae9b1

Michael
2009-03-23 14:22:37 +01:00
Björn Jacke
2dc8ce59b2 don't set -O twice
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-23 14:20:46 +01:00
Volker Lendecke
1bff89c4ad Only build the dirsort module if we have the dirfd function
Fix the build on HP/UX
2009-03-22 13:17:42 +01:00
Andy Kelk
2835d0d463 Add dirsort module 2009-03-22 11:44:13 +01:00
Günther Deschner
36d0785806 s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.
Guenther
2009-03-18 17:09:33 +01:00
Steve Langasek
c6b570ce30 s3: Fix bugs in the detection of the GNU ld version (Bug #6147)
This bug results in a failure to use linker scripts to limit the set of symbols
exported by our shared libraries.

Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 22:10:23 +01:00