Skip Menu |
 

Download (untitled) / with headers
text/plain 9.7KiB
From mmadore@turbolinux.com Fri Mar 23 14:25:16 2001
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83])
by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id OAA23956
for <bugs@RT-11.mit.edu>; Fri, 23 Mar 2001 14:25:16 -0500 (EST)
Received: from mail.us.tlan (munch-it.turbolinux.com [38.170.88.129])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id OAA21824
for <krb5-bugs@mit.edu>; Fri, 23 Mar 2001 14:25:15 -0500 (EST)
Received: (from nobody@localhost)
by mail.us.tlan (8.9.3/8.9.3) id LAA09518
for <krb5-bugs@mit.edu>; Fri, 23 Mar 2001 11:25:04 -0800
Received: from drevil.us.tlan(172.16.13.106), claiming to be "drevil.dev.us.tlan"
via SMTP by mail.us.tlan, id smtpdx8SrMq; Fri Mar 23 11:25:01 2001
Received: (from mmadore@localhost)
by drevil.dev.us.tlan (8.9.3/8.9.3) id LAA08838
for krb5-bugs@mit.edu; Fri, 23 Mar 2001 11:25:07 -0800
Message-Id: <20010323112507.E8468@drevil.no>
Date: Fri, 23 Mar 2001 11:25:07 -0800
From: Michael Madore <mmadore@turbolinux.com>
To: krb5-bugs@mit.edu
Subject: Patch for Linux-IA64

Show quoted text
>Number: 932
>Category: krb5-libs
>Synopsis: Patch for Linux-IA64
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Mar 23 14:26:01 EST 2001
>Last-Modified: Mon Mar 26 21:59:01 EST 2001
>Originator: Michael Madore <mmadore@turbolinux.com>
>Organization:
>Release: krb5-1.2.1
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:

Responsible-Changed-From-To: gnats-admin->krb5-unassigned
Responsible-Changed-By: raeburn
Responsible-Changed-When: Mon Mar 26 21:54:32 2001
Responsible-Changed-Why:

Recategorized; mostly about library code.


From: Ken Raeburn <raeburn@MIT.EDU>
To: mmadore@turbolinux.com
Cc: krb5-bugs@MIT.EDU
Subject: Re: krb5-libs/932: Patch for Linux-IA64
Date: Mon, 26 Mar 2001 21:58:44 -0500

Thanks for the patch.

We're only assuming C89, so inttypes.h is out, but will using size_t
instead of intptr_t in that case cause any problems for you?

Ken
Show quoted text
>Unformatted:
--9amGYk9869ThD9tj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

Here is a small patch I created for Linux-IA64 to get rid of warnings due to
missing function prototypes from string.h, and a integer -> pointer
conversion warnings. Without string.h, gcc assumes the function return
integer. On Linux-IA64 integers are 32 bits while pointers are 64 bits.
String functions which return pointers will have them trashed if they are
converted to ints.

--
Mike Madore
Software Engineer
TurboLinux, Inc.

--9amGYk9869ThD9tj
Content-Type: application/x-patch
Content-Disposition: attachment; filename="krb5-1.2.1-ia64.patch"

diff -Nur krb5-1.2.1/src/appl/telnet/telnetd/sys_term.c krb5-1.2.1.new/src/appl/telnet/telnetd/sys_term.c
--- krb5-1.2.1/src/appl/telnet/telnetd/sys_term.c Thu Jun 29 19:27:13 2000
+++ krb5-1.2.1.new/src/appl/telnet/telnetd/sys_term.c Fri Mar 23 10:20:26 2001
@@ -1430,7 +1430,7 @@
;
if (cpp == &argv[(int)argv[-1]]) {
--argv;
- *argv = (char *)((int)(*argv) + 10);
+ *argv = (char *)((*argv) + 10);
argv = (char **)realloc(argv, (int)(*argv) + 2);
if (argv == NULL)
return(NULL);
diff -Nur krb5-1.2.1/src/appl/user_user/server.c krb5-1.2.1.new/src/appl/user_user/server.c
--- krb5-1.2.1/src/appl/user_user/server.c Thu Jun 29 19:27:13 2000
+++ krb5-1.2.1.new/src/appl/user_user/server.c Fri Mar 23 10:03:59 2001
@@ -33,6 +33,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
+#include <string.h>
#include <fcntl.h>

#include "krb5.h"
diff -Nur krb5-1.2.1/src/kadmin/v4server/kadm_supp.c krb5-1.2.1.new/src/kadmin/v4server/kadm_supp.c
--- krb5-1.2.1/src/kadmin/v4server/kadm_supp.c Thu Jun 29 19:27:42 2000
+++ krb5-1.2.1.new/src/kadmin/v4server/kadm_supp.c Fri Mar 23 10:03:24 2001
@@ -12,6 +12,7 @@

#include <mit-copyright.h>
#include <stdio.h>
+#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff -Nur krb5-1.2.1/src/lib/gssapi/generic/util_validate.c krb5-1.2.1.new/src/lib/gssapi/generic/util_validate.c
--- krb5-1.2.1/src/lib/gssapi/generic/util_validate.c Thu Jun 29 19:27:56 2000
+++ krb5-1.2.1.new/src/lib/gssapi/generic/util_validate.c Fri Mar 23 10:54:08 2001
@@ -30,6 +30,7 @@

#include "gssapiP_generic.h"

+#include <inttypes.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -81,7 +82,7 @@
if (g_set_init(gs))
return(0);

- return(g_set_entry_add(gs, ptr, (void *) type) == 0);
+ return(g_set_entry_add(gs, ptr, (void *) (intptr_t) type) == 0);
#endif
}

diff -Nur krb5-1.2.1/src/lib/rpc/clnt_generic.c krb5-1.2.1.new/src/lib/rpc/clnt_generic.c
--- krb5-1.2.1/src/lib/rpc/clnt_generic.c Thu Jun 29 19:28:14 2000
+++ krb5-1.2.1.new/src/lib/rpc/clnt_generic.c Fri Mar 23 09:57:36 2001
@@ -37,6 +37,7 @@
#include <sys/socket.h>
#include <sys/errno.h>
#include <netdb.h>
+#include <string.h>

/*
* Generic client creation: takes (hostname, program-number, protocol) and
diff -Nur krb5-1.2.1/src/lib/rpc/pmap_rmt.c krb5-1.2.1.new/src/lib/rpc/pmap_rmt.c
--- krb5-1.2.1/src/lib/rpc/pmap_rmt.c Thu Jun 29 19:28:14 2000
+++ krb5-1.2.1.new/src/lib/rpc/pmap_rmt.c Fri Mar 23 09:58:08 2001
@@ -49,6 +49,7 @@
#endif
#include <stdio.h>
#include <errno.h>
+#include <string.h>
#ifdef OSF1
#include <net/route.h>
#include <sys/mbuf.h>
diff -Nur krb5-1.2.1/src/lib/rpc/svc.c krb5-1.2.1.new/src/lib/rpc/svc.c
--- krb5-1.2.1/src/lib/rpc/svc.c Thu Jun 29 19:28:14 2000
+++ krb5-1.2.1.new/src/lib/rpc/svc.c Fri Mar 23 09:58:21 2001
@@ -45,6 +45,7 @@
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_clnt.h>
#include <stdio.h>
+#include <string.h>

extern int errno;

diff -Nur krb5-1.2.1/src/lib/rpc/svc_simple.c krb5-1.2.1.new/src/lib/rpc/svc_simple.c
--- krb5-1.2.1/src/lib/rpc/svc_simple.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/svc_simple.c Fri Mar 23 09:58:33 2001
@@ -39,6 +39,7 @@
*/

#include <stdio.h>
+#include <string.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
#include <netdb.h>
diff -Nur krb5-1.2.1/src/lib/rpc/svc_tcp.c krb5-1.2.1.new/src/lib/rpc/svc_tcp.c
--- krb5-1.2.1/src/lib/rpc/svc_tcp.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/svc_tcp.c Fri Mar 23 09:58:50 2001
@@ -42,6 +42,7 @@
*/

#include <stdio.h>
+#include <string.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
#include <errno.h>
diff -Nur krb5-1.2.1/src/lib/rpc/svc_udp.c krb5-1.2.1.new/src/lib/rpc/svc_udp.c
--- krb5-1.2.1/src/lib/rpc/svc_udp.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/svc_udp.c Fri Mar 23 09:59:02 2001
@@ -40,6 +40,7 @@
*/

#include <stdio.h>
+#include <string.h>
#include <gssrpc/rpc.h>
#include <sys/socket.h>
#include <errno.h>
diff -Nur krb5-1.2.1/src/lib/rpc/unit-test/client.c krb5-1.2.1.new/src/lib/rpc/unit-test/client.c
--- krb5-1.2.1/src/lib/rpc/unit-test/client.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/unit-test/client.c Fri Mar 23 10:01:18 2001
@@ -95,6 +95,7 @@
#endif

#include <stdio.h>
+#include <string.h>
#include <gssrpc/rpc.h>
#include <gssapi/gssapi.h>
#include <gssrpc/rpc.h>
diff -Nur krb5-1.2.1/src/lib/rpc/unit-test/rpc_test_clnt.c krb5-1.2.1.new/src/lib/rpc/unit-test/rpc_test_clnt.c
--- krb5-1.2.1/src/lib/rpc/unit-test/rpc_test_clnt.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/unit-test/rpc_test_clnt.c Fri Mar 23 10:01:35 2001
@@ -1,4 +1,5 @@
#include "rpc_test.h"
+#include <string.h>

/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
diff -Nur krb5-1.2.1/src/lib/rpc/unit-test/rpc_test_svc.c krb5-1.2.1.new/src/lib/rpc/unit-test/rpc_test_svc.c
--- krb5-1.2.1/src/lib/rpc/unit-test/rpc_test_svc.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/unit-test/rpc_test_svc.c Fri Mar 23 10:01:53 2001
@@ -1,5 +1,6 @@
#include "rpc_test.h"
#include <stdio.h>
+#include <string.h>
#include <stdlib.h> /* getenv, exit */
#include <sys/types.h>
#include <syslog.h>
diff -Nur krb5-1.2.1/src/lib/rpc/xdr_array.c krb5-1.2.1.new/src/lib/rpc/xdr_array.c
--- krb5-1.2.1/src/lib/rpc/xdr_array.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/xdr_array.c Fri Mar 23 09:59:17 2001
@@ -41,6 +41,7 @@
*/

#include <stdio.h>
+#include <string.h>

#include <gssrpc/types.h>
#include <gssrpc/xdr.h>
diff -Nur krb5-1.2.1/src/lib/rpc/xdr_reference.c krb5-1.2.1.new/src/lib/rpc/xdr_reference.c
--- krb5-1.2.1/src/lib/rpc/xdr_reference.c Thu Jun 29 19:28:15 2000
+++ krb5-1.2.1.new/src/lib/rpc/xdr_reference.c Fri Mar 23 09:59:32 2001
@@ -41,6 +41,7 @@
*/

#include <stdio.h>
+#include <string.h>
#include <gssrpc/types.h>
#include <gssrpc/xdr.h>

diff -Nur krb5-1.2.1/src/tests/asn.1/trval.c krb5-1.2.1.new/src/tests/asn.1/trval.c
--- krb5-1.2.1/src/tests/asn.1/trval.c Thu Jun 29 19:28:28 2000
+++ krb5-1.2.1.new/src/tests/asn.1/trval.c Fri Mar 23 10:20:51 2001
@@ -36,6 +36,7 @@
*****************************************************************************/

#include <unistd.h>
+#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
diff -Nur krb5-1.2.1/src/util/profile/argv_parse.c krb5-1.2.1.new/src/util/profile/argv_parse.c
--- krb5-1.2.1/src/util/profile/argv_parse.c Thu Jun 29 19:28:50 2000
+++ krb5-1.2.1.new/src/util/profile/argv_parse.c Fri Mar 23 09:50:48 2001
@@ -29,6 +29,7 @@
*/

#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include "argv_parse.h"

diff -Nur krb5-1.2.1/src/util/profile/test_profile.c krb5-1.2.1.new/src/util/profile/test_profile.c
--- krb5-1.2.1/src/util/profile/test_profile.c Thu Jun 29 19:28:51 2000
+++ krb5-1.2.1.new/src/util/profile/test_profile.c Fri Mar 23 09:50:36 2001
@@ -3,6 +3,7 @@
*/

#include <stdio.h>
+#include <string.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

--9amGYk9869ThD9tj--
Close old build nits bug. Many of the referenced missing prototype
issues have been fixed long ago.