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]

Re: Problem compileing glibc-2.0.94


Kaoru Fukui <k_fukui@highway.ne.jp> writes:

> -2.0.94-egcs103a/glibc-build/nis:/wk-glibc-2.0.94-egcs103a/glibc-build/db2:/
> wk-glibc-2.0.94-egcs103a/glibc-build/rt:/wk-glibc-2.0.94-egcs103a/glibc-build
> /resolv:/wk-glibc-2.0.94-egcs103a/glibc-build/linuxthreads /wk-glibc-2.0.94-
> egcs103a/glibc-build/sunrpc/rpcgen -c rpcsvc/bootparam.x -o /wk-glibc-2.0.94
> -egcs103a/glibc-build/sunrpc/xbootparam.T
> make[2]: *** [/wk-glibc-2.0.94-egcs103a/glibc-build/sunrpc/xbootparam.stmp] 
> Segmentation fault

This onlz shows that the generated libc has bugs.  rpcgen already uses
the new libc.  You will have to debug it yourself.

> Secound parameter Not eqaul void *buf to  char *buf. 
> ------------------------------------------------------
> <pread.c>
>              extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count

This is strange.  The __ptr_t type used in unistd.h should be defined
to void * for any ISO C compliant compiler.  Could you check why this
isn't the case for you?

> -lgcc `gcc --print-file-name=crtend.o` /wk-glibc-2.0.94-egcs103a/glibc-build
> /csu/crtn.o
> /wk-glibc-2.0.94-egcs103a/glibc-build/libc.so.6: undefined reference to `__syscall
> _pread64'
> /wk-glibc-2.0.94-egcs103a/glibc-build/libc.so.6: undefined reference to `__syscall
> _pwrite64'
> collect2: ld returned 1 exit status
> make[2]: *** [/wk-glibc-2.0.94-egcs103a/glibc-build/db2/makedb] Error 1

Again, this problem is corrected.  use this patch for
sysdeps/unix/sysv/linux/pread.c and a similar one for the pwrite.c
filein the same directory.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: pread.c
===================================================================
RCS file: /egcs/carton/cvsfiles/libc/sysdeps/unix/sysv/linux/pread.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -d -u -p -r1.2 -r1.3
--- pread.c	1997/12/08 02:57:25	1.2
+++ pread.c	1998/06/11 11:29:33	1.3
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -19,7 +19,10 @@
 
 #include <errno.h>
 #include <unistd.h>
+#include <sys/syscall.h>
 
+#ifdef __NR_pread
+
 extern ssize_t __syscall_pread64 (int fd, void *buf, size_t count,
 				  off_t offset_hi, off_t offset_lo);
 
@@ -49,4 +52,5 @@ weak_alias (__pread, pread)
 
 #define __pread(fd, buf, count, offset) \
      static internal_function __emulate_pread (fd, buf, count, offset)
+#endif
 #include <sysdeps/posix/pread.c>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crti.o(.text+0x0): first defined here
> 
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crtn.o: In function `_init':
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crtn.o(.text+0x2c): multiple definition 
> of `_init'
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crti.o(.text+0x58): first defined 
> here
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crtn.o: In function `_fini':
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crtn.o(.init+0x20): multiple definition 
> of `_fini'
> /wk-glibc-2.0.94-egcs103a/glibc-build/csu/crti.o(.init+0x10): first defined 
> here

The generation of the initfini files failed.  I don't know anything
about this platform so I cannot give an advice.

You should definitely contact the Linux/PPC mailing lists.  I don't
know the address but a few people receiving this mail do.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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