From krb5-bugs-incoming-bounces@PCH.mit.edu Tue Jul 21 19:53:28 2009
Return-Path: <krb5-bugs-incoming-bounces@PCH.mit.edu>
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90])
by krbdev.mit.edu (Postfix) with ESMTP id 4CE7CCCA01;
Tue, 21 Jul 2009 19:53:28 +0000 (UTC)
Received: from pch.mit.edu (pch.mit.edu [127.0.0.1])
by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n6LJrSDD011097;
Tue, 21 Jul 2009 15:53:28 -0400
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
[18.7.21.83])
by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n6LHvixM015471
for <krb5-bugs-incoming@PCH.mit.edu>; Tue, 21 Jul 2009 13:57:44 -0400
Received: from mit.edu (M24-004-BARRACUDA-2.MIT.EDU [18.7.7.112])
by pacific-carrier-annex.mit.edu (8.13.6/8.9.2) with ESMTP id
n6LHvZ5X004546
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 13:57:35 -0400 (EDT)
Received: from mss-uk.mssgmbh.com (localhost [127.0.0.1])
by mit.edu (Spam Firewall) with ESMTP id C85A22450A32
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 13:57:34 -0400 (EDT)
Received: from mss-uk.mssgmbh.com (mss-uk.mssgmbh.com [217.174.251.109]) by
mit.edu with ESMTP id elMEnLSbLOOC3qUW (version=TLSv1
cipher=AES256-SHA bits=256 verify=NO) for <krb5-bugs@mit.edu>;
Tue, 21 Jul 2009 13:57:34 -0400 (EDT)
Received: from fever.mssgmbh.com ([217.111.56.3]) (authenticated bits=0)
by mss-uk.mssgmbh.com (8.13.5.20060308/8.13.5/Debian-3ubuntu1) with
ESMTP id n6LHvVK6017447
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 19:57:33 +0200
Received: from fever.mssgmbh.com (localhost [127.0.0.1])
by fever.mssgmbh.com (8.14.3/8.13.8/Debian-3) with ESMTP id
n6LHvQd2023040
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 19:57:26 +0200
Received: (from rw@localhost)
by fever.mssgmbh.com (8.14.3/8.13.4/Submit) id n6LHvQI7023037;
Tue, 21 Jul 2009 19:57:26 +0200
Date: Tue, 21 Jul 2009 19:57:26 +0200
Message-Id: <200907211757.n6LHvQI7023037@fever.mssgmbh.com>
To: krb5-bugs@mit.edu
Subject:
From: rweikusat@mssgmbh.com
X-send-pr-version: 3.99
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0
(mss-uk.mssgmbh.com [217.174.251.109]);
Tue, 21 Jul 2009 19:57:33 +0200 (CEST)
X-Spam-Score: 2.278
X-Spam-Level: ** (2.278)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
X-Mailman-Approved-At: Tue, 21 Jul 2009 15:53:26 -0400
X-BeenThere: krb5-bugs-incoming@mailman.mit.edu
X-Mailman-Version: 2.1.6
Precedence: list
Reply-To: rweikusat@mssgmbh.com
Sender: krb5-bugs-incoming-bounces@PCH.mit.edu
Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu
System: Linux fever 2.6.30 #2 SMP Thu Jun 18 19:35:55 CEST 2009 i686 GNU/Linux
or Debian 5.0.2 because the assert-macros is used in various files
without its definition having been included, eg
+ gcc -shared -fPIC -Wl,-h,libkrb5support.so.0,--no-undefined -o libkrb5support.so.0.1 threads.so init-addrinfo.so plugins.so errors.so k5buf.so gmt_mktime.so fake-addrinfo.so utf8.so utf8_conv.so strlcpy.so -Wl,-R/usr/local/pmg-krb5/stow/krb5-1.7/lib -lresolv -ldl -Wl,--version-script binutils.versions
utf8_conv.so: In function `k5_utf8s_to_ucs2s':/home/rw/build/krb/build/src/util/support/utf8_conv.c:120: undefined reference to `assert'
collect2: ld returned 1 exit status
make[2]: *** [libkrb5support.so.0.1] Error 1
diff -pru krb5-1.7/src/include/k5-platform.h krb5-1.7.patched/src/include/k5-platform.h
--- krb5-1.7/src/include/k5-platform.h 2009-02-18 19:18:21.000000000 +0100
+++ krb5-1.7.patched/src/include/k5-platform.h 2009-07-21 19:42:47.000000000 +0200
@@ -42,6 +42,7 @@
#define K5_PLATFORM_H
#include "autoconf.h"
+#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
Return-Path: <krb5-bugs-incoming-bounces@PCH.mit.edu>
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90])
by krbdev.mit.edu (Postfix) with ESMTP id 4CE7CCCA01;
Tue, 21 Jul 2009 19:53:28 +0000 (UTC)
Received: from pch.mit.edu (pch.mit.edu [127.0.0.1])
by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n6LJrSDD011097;
Tue, 21 Jul 2009 15:53:28 -0400
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
[18.7.21.83])
by pch.mit.edu (8.13.6/8.12.8) with ESMTP id n6LHvixM015471
for <krb5-bugs-incoming@PCH.mit.edu>; Tue, 21 Jul 2009 13:57:44 -0400
Received: from mit.edu (M24-004-BARRACUDA-2.MIT.EDU [18.7.7.112])
by pacific-carrier-annex.mit.edu (8.13.6/8.9.2) with ESMTP id
n6LHvZ5X004546
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 13:57:35 -0400 (EDT)
Received: from mss-uk.mssgmbh.com (localhost [127.0.0.1])
by mit.edu (Spam Firewall) with ESMTP id C85A22450A32
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 13:57:34 -0400 (EDT)
Received: from mss-uk.mssgmbh.com (mss-uk.mssgmbh.com [217.174.251.109]) by
mit.edu with ESMTP id elMEnLSbLOOC3qUW (version=TLSv1
cipher=AES256-SHA bits=256 verify=NO) for <krb5-bugs@mit.edu>;
Tue, 21 Jul 2009 13:57:34 -0400 (EDT)
Received: from fever.mssgmbh.com ([217.111.56.3]) (authenticated bits=0)
by mss-uk.mssgmbh.com (8.13.5.20060308/8.13.5/Debian-3ubuntu1) with
ESMTP id n6LHvVK6017447
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 19:57:33 +0200
Received: from fever.mssgmbh.com (localhost [127.0.0.1])
by fever.mssgmbh.com (8.14.3/8.13.8/Debian-3) with ESMTP id
n6LHvQd2023040
for <krb5-bugs@mit.edu>; Tue, 21 Jul 2009 19:57:26 +0200
Received: (from rw@localhost)
by fever.mssgmbh.com (8.14.3/8.13.4/Submit) id n6LHvQI7023037;
Tue, 21 Jul 2009 19:57:26 +0200
Date: Tue, 21 Jul 2009 19:57:26 +0200
Message-Id: <200907211757.n6LHvQI7023037@fever.mssgmbh.com>
To: krb5-bugs@mit.edu
Subject:
From: rweikusat@mssgmbh.com
X-send-pr-version: 3.99
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0
(mss-uk.mssgmbh.com [217.174.251.109]);
Tue, 21 Jul 2009 19:57:33 +0200 (CEST)
X-Spam-Score: 2.278
X-Spam-Level: ** (2.278)
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42
X-Mailman-Approved-At: Tue, 21 Jul 2009 15:53:26 -0400
X-BeenThere: krb5-bugs-incoming@mailman.mit.edu
X-Mailman-Version: 2.1.6
Precedence: list
Reply-To: rweikusat@mssgmbh.com
Sender: krb5-bugs-incoming-bounces@PCH.mit.edu
Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu
Show quoted text
>Submitter-Id: net
>Originator: Rainer Weikusat
>Organization:
MadPartners LTD.>Originator: Rainer Weikusat
>Organization:
Show quoted text
>Confidential: no
>Synopsis: krb5-1.7 cannot be compiled on Debian stable (5.0.2)
>Severity: non-critical
>Priority: medium
>Category: krb5-libs
>Class: sw-bug
>Release: 1.7
>Environment:
>Synopsis: krb5-1.7 cannot be compiled on Debian stable (5.0.2)
>Severity: non-critical
>Priority: medium
>Category: krb5-libs
>Class: sw-bug
>Release: 1.7
>Environment:
System: Linux fever 2.6.30 #2 SMP Thu Jun 18 19:35:55 CEST 2009 i686 GNU/Linux
Show quoted text
>Description:
The Kerberos 5 1.7 release cannot be compiled on either Ubuntu 6.06or Debian 5.0.2 because the assert-macros is used in various files
without its definition having been included, eg
+ gcc -shared -fPIC -Wl,-h,libkrb5support.so.0,--no-undefined -o libkrb5support.so.0.1 threads.so init-addrinfo.so plugins.so errors.so k5buf.so gmt_mktime.so fake-addrinfo.so utf8.so utf8_conv.so strlcpy.so -Wl,-R/usr/local/pmg-krb5/stow/krb5-1.7/lib -lresolv -ldl -Wl,--version-script binutils.versions
utf8_conv.so: In function `k5_utf8s_to_ucs2s':/home/rw/build/krb/build/src/util/support/utf8_conv.c:120: undefined reference to `assert'
collect2: ld returned 1 exit status
make[2]: *** [libkrb5support.so.0.1] Error 1
Show quoted text
>How-To-Repeat:
Show quoted text
>Fix:
A possible fix:diff -pru krb5-1.7/src/include/k5-platform.h krb5-1.7.patched/src/include/k5-platform.h
--- krb5-1.7/src/include/k5-platform.h 2009-02-18 19:18:21.000000000 +0100
+++ krb5-1.7.patched/src/include/k5-platform.h 2009-07-21 19:42:47.000000000 +0200
@@ -42,6 +42,7 @@
#define K5_PLATFORM_H
#include "autoconf.h"
+#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>