Skip Menu |
 

Subject: Use macros to detect endianness whenever possible
The krb5 build system should (where it needs to know the endianness of the machine)
prefer the compile-time macros __BIG_ENDIAN__ and __LITTLE_ENDIAN__ or
BYTE_ORDER (from endian.h) over the autoconf-generated variables if they are available.
This will make cross-compilation to systems with different endianness possible for
compilers that provide these variables.

This is needed for Darwin i386 builds.

Note that in the Darwin case, we need to check the compiler variables at compile time and
not in an autoconf test. With the Apple mach-o compiler, a single gcc invocation can build a
fat object file with code for multiple architectures (ie: "CFLAGS=-arch pcc -arch i386").

This bug exists to track the need for this support in krb5. The original bug was 2551 which
was a report of the problem in AES and Berkeley db.
From: raeburn@mit.edu
Subject: CVS Commit
Use compile-time tests using system headers to determine byte order on AIX.
(cf ticket 2551, already pulled up and marked resolved)

* configure.in: Check for sys/param.h too.
* include/db-int.h: Include sys/param.h if available.


To generate a diff of this commit:



cvs diff -r1.45 -r1.46 krb5/src/util/db2/ChangeLog
cvs diff -r1.14 -r1.15 krb5/src/util/db2/configure.in
cvs diff -r1.11 -r1.12 krb5/src/util/db2/include/ChangeLog
cvs diff -r1.10 -r1.11 krb5/src/util/db2/include/db-int.h
From: tlyu@mit.edu
Subject: CVS Commit
* aesopt.h (PLATFORM_BYTE_ORDER): Treat _WIN32 as always
little-endian. Default to little-endian if there's no other
compile-time way to detect endianness, noting it as a guess.
(SAFE_IO): Error out if SAFE_IO is not set and endianness was
guessed.


To generate a diff of this commit:



cvs diff -r1.10 -r1.11 krb5/src/lib/crypto/aes/ChangeLog
cvs diff -r1.2 -r1.3 krb5/src/lib/crypto/aes/aesopt.h
From: tlyu@mit.edu
Subject: CVS Commit
pullup from trunk


To generate a diff of this commit:



cvs diff -r1.4.2.4 -r1.4.2.5 krb5/src/lib/crypto/aes/ChangeLog
cvs diff -r1.1.2.1 -r1.1.2.2 krb5/src/lib/crypto/aes/aesopt.h
cvs diff -r1.40.2.2 -r1.40.2.3 krb5/src/util/db2/ChangeLog
cvs diff -r1.12.2.1 -r1.12.2.2 krb5/src/util/db2/configure.in
cvs diff -r1.9.2.1 -r1.9.2.2 krb5/src/util/db2/include/ChangeLog
cvs diff -r1.8.2.1 -r1.8.2.2 krb5/src/util/db2/include/db-int.h