In order to compile the 32 bit versions of the test programs correctly you must explicitly specify 32 bit to gcc. This is a fix for some distros that compile 64 bit by default. The switch should be backwards compatible.
Signed-off-by: Jon Tollefson <[EMAIL PROTECTED]> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks to Adam Litke for helping me debug this. diff -ru libhugetlbfs-2.1-pre1.orig/Makefile libhugetlbfs-2.1-pre1/Makefile --- libhugetlbfs-2.1-pre1.orig/Makefile 2008-09-30 11:58:06.000000000 -0500 +++ libhugetlbfs-2.1-pre1/Makefile 2008-10-08 10:42:34.584197416 -0500 @@ -29,7 +29,7 @@ LIB64 = lib64 LIB32 = lib ifneq ($(BUILDTYPE),NATIVEONLY) -CC32 = gcc +CC32 = gcc -m32 ELF32 = elf32ppclinux endif else ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel