Commit Graph

118 Commits

Author SHA1 Message Date
Jeffrey Altman
aed7a3b948 Windows: missing exports on Windows
synchronize the export lists on Windows and UNIX.
When new functions are exported on UNIX or Windows,
the "test" build target on Windows will verify if
the export lists are in sync.

Change-Id: I9df3607983b03ee8dc6fa7cd22f85b07a6cee784
2012-06-12 18:48:37 -04:00
Roland C. Dowdeswell
cc47c8fa7b Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer.  Note that we get different
warnings on different machines and so this will be a work in
progress.  So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).

Notably, we fixed

	1.  a lot of missing structure initialisers,

	2.  unchecked return values for functions that glibc
	    marks as __attribute__((warn-unused-result)),

	3.  made minor modifications to slc and asn1_compile
	    which can generate code which generates warnings,
	    and

	4.  a few stragglers here and there.

We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g.  rsh, rcp,
popper, ftp and telnet.

Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.

We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Stefan Metzmacher
55d66f2aff lib/wind: export wind_ucs2write()
Pair-Programmed-With: Arvid Requate <requate@univention.de>

metze

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-11-16 19:42:45 -08:00
Stefan Metzmacher
805304d3f8 lib/winbd: fix wind_ucs2write with WIND_RW_LE
Pair-Programmed-With: Arvid Requate <requate@univention.de>

metze

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-11-16 19:42:44 -08:00
Stefan Metzmacher
dcd34e5967 lib/wind: fix wind_ucs4utf8() and wind_ucs2utf8()
Pair-Programmed-With: Arvid Requate <requate@univention.de>

metze

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-11-16 19:42:44 -08:00
Linus Nordberg
2e35198908 Add version-script.map to _DEPENDENCIES.
Added to 11 out of 14 directories with map files.  Not lib/ntlm,
lib/hcrypto and kdc which have the map file as an explicit dependency
to _OBBJECTS.

Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
2011-07-24 14:07:59 -07:00
Love Hörnquist Åstrand
12403a31ce sprinkle more windows files 2011-07-23 11:18:21 -07:00
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
f5f9014c90 Warning fixes from Christos Zoulas
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Asanka C. Herath
6d662f71d7 Windows: Fix export lists 2010-11-29 10:53:49 -05:00
Asanka C. Herath
9d7227d1c1 Windows: Fix missing exports 2010-11-24 15:32:47 -05:00
Love Hornquist Astrand
cf925c82b8 typecase to avoid warning 2010-09-15 22:47:52 -07:00
Asanka Herath
e3ce1ff01b lib/wind/test-normalize.c: Dump failing vectors
If a Unicode string fails a normalization test, dump it so we can
figure out why its failing.
2010-08-20 13:09:48 -04:00
Asanka Herath
12909ec109 lib/wind: Canonical ordering can't use unstable sort 2010-08-20 13:09:45 -04:00
Asanka Herath
f807cb8152 Windows: Update exports 2010-08-20 13:07:58 -04:00
Asanka Herath
ba44354336 Windows: Check exported symbols
During a test run, cross check the Windows exports list against the
version-script files.  For the test to pass, all symbols on either
list should be accounted for.

If there are symbols that are specific to Windows or symbols that are
not included on Windows, they should be annotated in the .def file as
follows:

    ;!  non_windows_symbol

    	common_symbol

        windows_only_symbol ;!
2010-08-20 13:06:55 -04:00
Asanka Herath
d83611238a Windows: Build a single heimdal.dll
Heimdal.dll is a combination of libasn1, libwind, libhcrypto, libhx509
and libkrb5.
2010-08-20 13:06:54 -04:00
Asanka Herath
ea4d8dbfdb Windows: Use EXEPREP and DLLPREP macros for processing binaries
Once DLLs and EXEs are built, they need to have their manifests
processed and signed.  These steps are encapsulated in the EXEPREP and
DLLPREP Makefile macros.  Use them instead of invoking each processing
macro individually.
2010-08-20 13:04:06 -04:00
Asanka Herath
24cbddd4b9 Resolve warnings on Windows
Appease the compiler by resolving some of the reported warnings,
including:

- Control paths that don't return.

- Potentially uninitialized variables.

- Unused local variables.

- Unreachable code.

- Type safety.

- Synchronize declarations with definitions for functions.
2010-08-20 13:03:38 -04:00
Asanka Herath
e9160dbcfa Support parallelized builds on Windows 2010-08-20 13:03:32 -04:00
Love Hornquist Astrand
abcbfe08fb don't use python if (!maintainer mode and we have built files) 2010-05-26 11:03:41 -05:00
Love Hornquist Astrand
af0f2717c2 test case compare 2010-05-01 11:45:40 +02:00
Love Hornquist Astrand
a76daa7e35 support WIND_PROFILE_LDAP_CASE 2010-03-29 01:13:30 -07:00
Love Hornquist Astrand
04d3215d39 _wind_ucs2read is not a private symbol 2010-02-02 20:16:47 -08:00
Asanka Herath
1d624801c1 Compile on windows
- include <stdlib.h>
- export file
- fill out structs to make it compile with visual studio

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 12:33:37 -08:00
Love Hornquist Astrand
c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
Love Hornquist Astrand
1e9ec73bbc [HEIMDAL-646] aix
AIX qsort() is unstable and might change the order of the elements
if they are equal, libwind require them to be in the same order as they were
on the input, pull in FreeBSD qsort and use that instead of AIX version.
2009-10-11 15:08:58 -07:00
Love Hornquist Astrand
e1b14b7854 Use right type when mallocing data (allocated too much) 2009-10-11 15:08:27 -07:00
Love Hornquist Astrand
377543e78e use size_t for index 2009-10-11 14:36:46 -07:00
Love Hornquist Astrand
93f0e450cc fix sizeof, only matter on platforms where sizeof(unsigned) != sizeof(uint32_t) 2009-10-11 12:22:19 -07:00
Love Hornquist Astrand
983d0f66f1 print lineno 2009-10-11 12:18:22 -07:00
Love Hornquist Astrand
9bace01559 Check for malloc(0) to make AIX happy
Prompted by [HEIMDAL-646] by Anton Lundin
2009-09-24 07:32:35 -07:00
Love Hornquist Astrand
9e4bc686d3 drop rcsid 2009-09-07 21:22:46 -07:00
Love Hornquist Astrand
d0aadb9a0d Fix depenencies for test_punycode
This only matters in development enviroments and where you run make check.
2009-07-16 22:26:43 -07:00
Love Hörnquist Åstrand
1ba2a45b7b ep not use, don't increment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:22:20 +00:00
Love Hörnquist Åstrand
fea9aa5894 don't set unused variables, move cc to propper scope.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24867 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:32:42 +00:00
Love Hörnquist Åstrand
7f8bf49564 makefile fixes from Martin von Gagern
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:29:27 +00:00
Love Hörnquist Åstrand
940cbcfcae drop libnwind.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:48:39 +00:00
Love Hörnquist Åstrand
80842059fc drop HAVE_CONFIG_H
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:31:00 +00:00
Love Hörnquist Åstrand
24a0e35602 Spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:27:49 +00:00
Love Hörnquist Åstrand
ed56de38d9 make profiles const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-23 22:05:05 +00:00
Love Hörnquist Åstrand
d9e9b83469 add libnwind.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:00:35 +00:00
Love Hörnquist Åstrand
8e7e0f8130 provide convenice lib
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 02:59:51 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
7bb270c1ee x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23370 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 20:38:30 +00:00
Love Hörnquist Åstrand
47c72666f4 Try to do depencies better.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23369 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 20:38:17 +00:00
Love Hörnquist Åstrand
2ef3feda03 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23361 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:25:02 +00:00
Love Hörnquist Åstrand
2e03f4d7b4 add punycode_examples.[ch] to built files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23360 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-15 11:24:45 +00:00