This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Hurd] glibc-2.0.106 report


I've self-compiled glibc-2.0.106 on Hurd.

Attached patch is which I required during `make check'
(stdlib/test-canon.c,string/stratcliff.c)

Other problems are that

1. In Hurd,sys_errlist symbol doesn't exists.but declared it in
stdio/stdio.h. And it needs to remove test_strerror()@string/tester.c.

2. During make check,
gcc -nostdlib -nostartfiles -o /work/glibc-2.0.106/objs2/mach/hello  -Wl,-dynamic-linker=/lib/ld.so.1  /work/glibc-2.0.106/objs2/csu/crt1.o  `gcc --print-file-name=crtbegin.o` /work/glibc-2.0.106/objs2/mach/hello.o  -Wl,-rpath-link=/work/glibc-2.0.106/objs2:/work/glibc-2.0.106/objs2/math:/work/glibc-2.0.106/objs2/elf:/work/glibc-2.0.106/objs2/nss:/work/glibc-2.0.106/objs2/nis:/work/glibc-2.0.106/objs2/db2:/work/glibc-2.0.106/objs2/rt:/work/glibc-2.0.106/objs2/resolv:/work/glibc-2.0.106/objs2/mach:/work/glibc-2.0.106/objs2/hurd /work/glibc-2.0.106/objs2/libc.so.0.2 /work/glibc-2.0.106/objs2/libc_nonshared.a -lgcc `gcc --print-file-name=crtend.o` 
/work/glibc-2.0.106/objs2/csu/crt1.o(.text+0xc): undefined reference to `_fini'
/work/glibc-2.0.106/objs2/csu/crt1.o(.text+0x11): undefined reference to `_init'
collect2: ld returned 1 exit status
make[2]: *** [/work/glibc-2.0.106/objs2/mach/hello] Error 1

 What is wrong?

Host type: i586--gnu
System: GNU sana.rfe.nop.or.jp 0.2 GNUmach-1.1.3/Hurd-0.2 i386-AT386 unknown
Build CC: gcc
Compiler version: egcs-2.91.60 19981201 (egcs-1.1.1 release)
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: stdio
 & binutils-2.9.1.0.17
---
UCHIYAMA Yasushi
uch@nop.or.jp 
diff -ur --exclude=objs glibc-2.0.106.orig/stdlib/test-canon.c glibc-2.0.106/stdlib/test-canon.c
--- glibc-2.0.106.orig/stdlib/test-canon.c	Tue Nov 11 23:34:56 1997
+++ glibc-2.0.106/stdlib/test-canon.c	Mon Dec 14 01:26:32 1998
@@ -27,7 +27,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
-
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
 static char	cwd[PATH_MAX];
 static size_t	cwd_len;
 
diff -ur --exclude=objs glibc-2.0.106.orig/string/stratcliff.c glibc-2.0.106/string/stratcliff.c
--- glibc-2.0.106.orig/string/stratcliff.c	Thu Sep 11 03:09:06 1997
+++ glibc-2.0.106/string/stratcliff.c	Mon Dec 14 01:51:00 1998
@@ -43,9 +43,9 @@
   int result = 0;
 
   adr = (char *) mmap (NULL, 3 * size, PROT_READ|PROT_WRITE,
-		       MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
+		       MAP_PRIVATE|MAP_ANON, -1, 0);
   dest = (char *) mmap (NULL, 3*size, PROT_READ|PROT_WRITE,
-			MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
+			MAP_PRIVATE|MAP_ANON, -1, 0);
   if (adr == MAP_FAILED || dest == MAP_FAILED)
     {
       if (errno == ENOSYS)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]