Fwd: glibc compiled!
Geoff Keating
geoffk@cygnus.com
Wed Feb 16 16:33:00 GMT 2000
> From: Kevin Hendricks <khendricks@ivey.uwo.ca>
> Reply-To: khendricks@ivey.uwo.ca
> Date: Wed, 16 Feb 2000 19:15:56 -0500
> While I was farting around with a bad cvs tree (by the way doing a simple cvs
> update would not update the linuxthreads_db subdirectory and I literally had to
> recheck out the whole thing from scratch), some users of 2.3.XX kernels have
> successfully compiled glibc-2.1.3 on powerpc.
'cvs update' doesn't check out new files. You have to do 'cvs co' or
'cvs update -d'; they work the same except 'cvs co' doesn't drag out
CVSROOT and everything.
> make[2]: Entering directory `/var/tmp/libc/posix'
> ../sysdeps/unix/sysv/linux/execve.c: In function `__execve':
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 2 of `__syscall_execve' discards qualifiers from pointer target type
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 3 of `__syscall_execve' discards qualifiers from pointer target type
> .../sysdeps/unix/sysv/linux/execve.c: In function `__execve':
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 2 of `__syscall_execve' discards qualifiers from pointer target type
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 3 of `__syscall_execve' discards qualifiers from pointer target type
> .../sysdeps/unix/sysv/linux/execve.c: In function `__execve':
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 2 of `__syscall_execve' discards qualifiers from pointer target type
> .../sysdeps/unix/sysv/linux/execve.c:40: warning: passing arg 3 of `__syscall_execve' discards qualifiers from pointer target type
Try this:
Index: execve.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/execve.c,v
retrieving revision 1.1.2.3
diff -p -u -c -r1.1.2.3 execve.c
cvs server: conflicting specifications of output style
*** execve.c 1999/11/15 00:04:52 1.1.2.3
--- execve.c 2000/02/17 00:33:12
***************
*** 1,4 ****
! /* Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
--- 1,4 ----
! /* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
***************
*** 22,28 ****
#include <sysdep.h>
#include <sys/syscall.h>
! extern int __syscall_execve (const char *file, char **argv, char **envp);
extern void __pthread_kill_other_threads_np __P ((void));
weak_extern (__pthread_kill_other_threads_np)
--- 22,29 ----
#include <sysdep.h>
#include <sys/syscall.h>
! extern int __syscall_execve (const char *file, char *const *argv,
! char *const *envp);
extern void __pthread_kill_other_threads_np __P ((void));
weak_extern (__pthread_kill_other_threads_np)
> make[2]: Entering directory `/var/tmp/libc/misc'
> ../sysdeps/unix/sysv/linux/powerpc/mmap64.c: In function `__mmap64':
> .../sysdeps/unix/sysv/linux/powerpc/mmap64.c:45: warning: initialization makes pointer from integer without a cast
> .../sysdeps/unix/sysv/linux/powerpc/mmap64.c: In function `__mmap64':
> .../sysdeps/unix/sysv/linux/powerpc/mmap64.c:45: warning: initialization makes pointer from integer without a cast
> .../sysdeps/unix/sysv/linux/powerpc/mmap64.c: In function `__mmap64':
> .../sysdeps/unix/sysv/linux/powerpc/mmap64.c:45: warning: initialization makes pointer from integer without a cast
Try this:
Index: mmap64.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/mmap64.c,v
retrieving revision 1.1.2.1
diff -p -u -c -r1.1.2.1 mmap64.c
cvs server: conflicting specifications of output style
*** mmap64.c 2000/02/16 18:30:07 1.1.2.1
--- mmap64.c 2000/02/17 00:32:04
***************
*** 28,34 ****
#include <asm/page.h>
#ifdef __NR_mmap2
! extern int __syscall_mmap2(__ptr_t, size_t, int, int, int, off_t);
static int have_no_mmap2;
#endif
--- 28,34 ----
#include <asm/page.h>
#ifdef __NR_mmap2
! extern __ptr_t __syscall_mmap2(__ptr_t, size_t, int, int, int, off_t);
static int have_no_mmap2;
#endif
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Libc-alpha
mailing list