Hi.
Just checked out and build latest hurd & glibc.
Attached two patches I've created to make it possible.
Hurd boots and works OK.
It it worth to post such (small) patches in list or it should be
handled in different way? (BTS, no post at all?)
arkadi.
--
Today my crystal ball isn't clear
enough to tell you truth.
Index: libc/malloc/mtrace.c
===================================================================
RCS file: /cvs/libc/malloc/mtrace.c,v
retrieving revision 1.25
diff -u -r1.25 mtrace.c
--- libc/malloc/mtrace.c 2001/02/13 22:06:16 1.25
+++ libc/malloc/mtrace.c 2001/02/17 23:03:36
@@ -268,7 +268,7 @@
#endif
if (mallfile != NULL || mallwatch != NULL)
{
- mallstream = fopen64 (mallfile != NULL ? mallfile : "/dev/null", "w");
+ mallstream = fopen (mallfile != NULL ? mallfile : "/dev/null", "w");
if (mallstream != NULL)
{
/* Make sure we close the file descriptor on exec. */
Index: libc/sysdeps/mach/getsysstats.c
===================================================================
RCS file: /cvs/libc/sysdeps/mach/getsysstats.c,v
retrieving revision 1.5
diff -u -r1.5 getsysstats.c
--- libc/sysdeps/mach/getsysstats.c 1999/02/27 20:00:41 1.5
+++ libc/sysdeps/mach/getsysstats.c 2001/02/17 23:03:36
@@ -60,7 +60,7 @@
}
/* Return the number of physical pages on the system. */
-int
+long int
__get_phys_pages ()
{
struct host_basic_info hbi;
@@ -78,7 +78,7 @@
}
/* Return the number of available physical pages */
-int
+long int
__get_avphys_pages ()
{
vm_statistics_data_t vs;
Index: hurd/fstests/fstests.c
===================================================================
RCS file: /cvs/hurd/fstests/fstests.c,v
retrieving revision 1.22
diff -u -r1.22 fstests.c
--- hurd/fstests/fstests.c 2000/03/27 04:10:17 1.22
+++ hurd/fstests/fstests.c 2001/02/17 23:02:45
@@ -84,8 +84,10 @@
perror ("2nd mkdir");
if (rename ("/newdir2", "/foo"))
perror ("2nd rename");
+ /*
if (sync ())
perror ("sync");
+ */
#endif
printf ("All done.\n");
Index: hurd/isofs/inode.c
===================================================================
RCS file: /cvs/hurd/isofs/inode.c,v
retrieving revision 1.13
diff -u -r1.13 inode.c
--- hurd/isofs/inode.c 2001/01/07 17:06:26 1.13
+++ hurd/isofs/inode.c 2001/02/17 23:02:46
@@ -20,6 +20,7 @@
#include <string.h>
#include <stdio.h>
+#include <time.h>
#include "isofs.h"
Index: hurd/libshouldbeinlibc/timefmt.c
===================================================================
RCS file: /cvs/hurd/libshouldbeinlibc/timefmt.c,v
retrieving revision 1.12
diff -u -r1.12 timefmt.c
--- hurd/libshouldbeinlibc/timefmt.c 1996/07/27 00:58:42 1.12
+++ hurd/libshouldbeinlibc/timefmt.c 2001/02/17 23:02:46
@@ -20,7 +20,7 @@
#include <stdio.h>
#include <string.h>
-#include <sys/time.h>
+#include <time.h>
#include "timefmt.h"
Index: hurd/pflocal/connq.c
===================================================================
RCS file: /cvs/hurd/pflocal/connq.c,v
retrieving revision 1.13
diff -u -r1.13 connq.c
--- hurd/pflocal/connq.c 2001/02/12 17:24:36 1.13
+++ hurd/pflocal/connq.c 2001/02/17 23:02:46
@@ -19,6 +19,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <cthreads.h>
+#include <assert.h>
#include "connq.h"