Bug 87411 - Error during Heimdal compilation on x86-64
Bug#: 87411 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: kerberos@gentoo.org Reported By: xholer@fi.muni.cz
Component: Applications
URL: 
Summary: Error during Heimdal compilation on x86-64
Keywords:  
Status Whiteboard: 
Opened: 2005-03-31 05:54 0000
Description:   Opened: 2005-03-31 05:54 0000
If I compile heimdal-0.6.3-r1 on x86-64 platform I get this output from one
test:

...
/bin/sh ../../libtool --mode=link x86_64-pc-linux-gnu-gcc  -Wall
-Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations
-Wnested-externs -O3 -mmmx -m3dnow -msse -msse2 -mfpmath=sse -funroll-loops
-pipe -fprefetch-loop-arrays -fomit-frame-pointer -march=k8 -frename-registers 
 -o strpftime-test  strpftime-test.o libtest.la libroken.la -lcrypt -lresolv 
x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wbad-function-cast -Wmissing-declarations -Wnested-externs -O3 -mmmx -m3dnow
-msse -msse2 -mfpmath=sse -funroll-loops -pipe -fprefetch-loop-arrays
-fomit-frame-pointer -march=k8 -frename-registers -o .libs/strpftime-test
strpftime-test.o  ./.libs/libtest.a ./.libs/libroken.so -ldb -lcrypt -lresolv
creating strpftime-test
make[4]: Leaving directory
`/var/tmp/portage/heimdal-0.6.3-r1/work/heimdal-0.6.3/lib/roken'
make  check-TESTS check-local
make[4]: Entering directory
`/var/tmp/portage/heimdal-0.6.3-r1/work/heimdal-0.6.3/lib/roken'
PASS: base64-test
PASS: getaddrinfo-test
PASS: parse_bytes-test
PASS: parse_reply-test
failed: format = "%d", "-2147483648" != "-7400"
failed: format = "%x", "80000000" != "30"
failed: format = "%X", "80000000" != "2A"
failed: format = "%o", "20000000000" != "52"
failed: format = "%#x", "0x80000000" != "0x2d"
...
failed: format = "%-#10llx", "0x8000000000000000" != "0x45      "
failed: format = "%-#10llX", "0X8000000000000000" != "0X42      "
failed: format = "%-#10llo", "01000000000000000000000" != "0102      "
FAIL: snprintf-test
PASS: strpftime-test
========================================
1 of 6 tests failed
Please report to heimdal-bugs@pdc.kth.se
========================================
...

Reproducible: Always
Steps to Reproduce:
1. emerge -pv heimdal and
2. wait because test is not included in Configure



This bug was reported to Heimdal developers by:

From: Peter Kruty <xkruty@fi.muni.cz>
Subject: [BUG Report] snprintf-test.c
Date: Thu, 31 Mar 2005 13:32:10 +0200
To: heimdal-bugs@pdc.kth.se

------- Comment #1 From Vlastimil Holer 2005-03-31 05:57:52 0000 -------
Created an attachment (id=54923) [details]
Patch to repair test

------- Comment #2 From Seemant Kulleen (RETIRED) 2005-06-06 12:56:10 0000 -------
fixed in 0.6.4-r1 coming to portage in a few minutes.