Stefan Metzmacher
b091d182fe
r17264: - remove unused includes from talloc
...
- check explicit check for varargs.h as fallback from stdarg.h
and fail the build if both are not present
metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
195754b169
r17263: export talloc_free_children()
...
metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
196803a6c6
r17257: make the size_t is to small error more verbose
...
(hopefully nobody will ever see this:-)
metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
ed5ffc7bfc
r17241: substitude @datarootdir@ with old autoconf versions:-)
...
metze
2007-10-10 14:10:23 -05:00
Jelmer Vernooij
c575dee5c7
r17238: Add datarootdir (required for newer autoconf versions)
2007-10-10 14:10:22 -05:00
Stefan Metzmacher
f47b7bb656
r17176: remove off_t from talloc. size_t is large enough to hold
...
the max amount of memory of one process
metze
2007-10-10 14:10:16 -05:00
Stefan Metzmacher
f94198c2a8
r17157: bail out if sizeof(size_t) < sizeof(void *)
...
metze
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
58e124ade3
r17156: check for the size of a pointer
...
metze
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
2977e7097a
r17109: - use AC_SYS_LARGEFILE so that type sizes are the same when talloc
...
is build standalone and inside samba
- add configure checks for the some type sizes for debugging
metze
2007-10-10 14:10:13 -05:00
Stefan Metzmacher
c5672a54a0
r17062: make correct use of talloc destructors, and make the code much simpler
...
should I merge that aslo to samba3?
metze
2007-10-10 14:10:10 -05:00
Stefan Metzmacher
0559222b62
r17061: - remove the currect talloc chunk from it's parent before freeing the children
...
this fixes an endless loop bug!
- reenable the test for this
should I merge this to samba3?
metze
2007-10-10 14:10:09 -05:00
Stefan Metzmacher
4c68e315e2
r16922: move some macros out of talloc.h as the don't belong to talloc
...
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
3db6bd8715
r16447: print the result of talloc_set_parent()
...
trying to find the bug on HPUX
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
7aa07a1e0b
r16446: talloc_set_name() allocates and can fail...
...
pass the error to the callers
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
972634b202
r16445: print out values
...
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
f3cd971ab7
r16442: if we want to use CHECK_SIZE(NULL, 3)
...
we need null tracking, so enable it explicit before running any tests
metze
2007-10-10 14:09:14 -05:00
Andrew Tridgell
bba33a976b
r15856: fixed talloc_asprintf_append() on solaris
2007-10-10 14:08:33 -05:00
Andrew Tridgell
babbff5f77
r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
...
type safe. This only works on recent gcc versions. With other
compilers it reverts to a non-typesafe cast
The patch also ensures that talloc_free() does not change error on
systems where free() can change errno
2007-10-10 14:08:32 -05:00
Andrew Tridgell
e00ff9f35e
r15828: a talloc steal optimisation spotted by metze
2007-10-10 14:08:29 -05:00
Andrew Tridgell
70531dcaee
r15824: fixed a subtle talloc bug to do with memory context loops. When you
...
have a structure that references one of its parents, and a parent of
that parent is freed, then the whole structure should be freed, not
just the reference.
this was found by the change notify code, as a side effect of fixing
the memory leak yesterday
2007-10-10 14:08:28 -05:00
Jelmer Vernooij
adc8a019b6
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
a5c87360a7
r14999: Remove more unused autoconf code
...
Simplify va_copy() replacement code a bit
2007-10-10 14:04:00 -05:00
Jelmer Vernooij
3c7a5ce291
r14720: Add torture_context argument to all torture tests
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
33709dc5b3
r14587: Allow building without GNU make and/or without xsltproc
2007-10-10 13:58:54 -05:00
Jelmer Vernooij
5673ee1182
r14586: Some small fixes, update TODO.
2007-10-10 13:58:53 -05:00
Jelmer Vernooij
4682bc5ce0
r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
9c37f847d3
r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
7871b07e21
r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
...
- VERSION: should contain the current version. Will be made part of the filename.
- SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.
Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
2007-10-10 13:57:12 -05:00
Andrew Tridgell
bc45451ddd
r14288: - make the snprintf call in talloc portable to older solaris boxes
...
- fixed an error found sing the beam analyser
2007-10-10 13:57:08 -05:00
Volker Lendecke
4d0aa6f525
r14131: Fix Coverity bug # 127
2007-10-10 13:56:53 -05:00
James Peach
1ab4674196
r13400: Only return NULL from talloc_asprintf if vsnprintf returns an
...
error (ie. zero is not an error).
2007-10-10 13:51:52 -05:00
James Peach
23782f899a
r13397: Propagate the error return from vsnprintf to trap the case where
...
we aren't linked against a C99 vsnprintf.
2007-10-10 13:51:52 -05:00
Andrew Tridgell
7a0e7074f6
r12633: expose talloc_vasprintf_append()
2007-10-10 13:49:10 -05:00
Jelmer Vernooij
b24f2583ed
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
2007-10-10 13:47:45 -05:00
Andrew Tridgell
ed90975bf5
r11984: LGPL on header and testsuite as well
2007-10-10 13:46:55 -05:00
Andrew Tridgell
5bdd50fa38
r11983: make talloc LGPL. This makes more sense given that ldb depends on
...
talloc, and ldb is now LGPL
2007-10-10 13:46:54 -05:00
Volker Lendecke
aad52d9a5f
r11869: talloc has been ported :-)
2007-10-10 13:46:38 -05:00
Jelmer Vernooij
0b54405685
r11377: Add support for building LIBRARY elements as shared libraries:
...
- Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries.
- Writes out pkg-config files when building shared libs
- Supports automatic fallback to MERGEDOBJ (which is the default) or
OBJ_LIST (if ld -r is not supported)
Building with shared libs reduces the size of the Samba binaries from
197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging).
To build with shared libraries support enabled, run:
LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status
init functions don't get called correctly yet when using shared libs, so
you won't be able to actually run anything with success :-)
Once init functions are done, I'll look at support for loading shared
modules once again.
Based on a patch by Peter Novodvorsky (nidd on IRC).
2007-10-10 13:45:28 -05:00
Jelmer Vernooij
b4745032a2
r11303: Support defining and installing public headers for libraries.
...
Support installing libraries.
Get rid of pkg-config file (will be autogenerated later on).
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
98d1f9b1dc
r11300: Treat libraries as a special kind of subsystem
...
(one that can also be built as a library and installed).
2007-10-10 13:45:15 -05:00
Jelmer Vernooij
24e1030090
r11244: Relative path names in .mk files
2007-10-10 13:45:06 -05:00
Jelmer Vernooij
7fffc5c917
r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html )
2007-10-10 13:45:03 -05:00
Andrew Tridgell
f31a2376f3
r10726: fix to talloc_parent() from Michael O'Brien
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
b53313dc51
r10586: Add MergedObject() builder. Default to Library() rather
...
then StaticLibrary()
2007-10-10 13:39:08 -05:00
Andrew Tridgell
d4af4b11ae
r10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
...
type is always available, which means we need less #ifdefs
2007-10-10 13:39:01 -05:00
Jelmer Vernooij
4f0d7f75b9
r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
...
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Tim Potter
540a3649e8
r10328: Add more emacs python-mode markers.
2007-10-10 13:38:28 -05:00
Jelmer Vernooij
829568d759
r10323: Add first bits required for getting compile with scons working. This does
...
not work yet and can exist parallel with the existing build system.
2007-10-10 13:38:25 -05:00
Jelmer Vernooij
2f481ac93c
r8985: Automatically generate make dependency rules for
...
the asn1 and error table files.
This removes the need for HEIMDAL_EXTERNAL
2007-10-10 13:31:04 -05:00
Andrew Tridgell
0e5b89b1e8
r8443: added talloc.3 to the tree to try to allow talloc to build on systems without xsltproc
2007-10-10 13:23:03 -05:00