Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* glibc-2.3.2 compile errors--HELP!
@ 2003-11-24 14:36 Scott Hempstead
  2003-11-24 15:01 ` Chris Meadors
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Hempstead @ 2003-11-24 14:36 UTC (permalink / raw)
  To: AXP-List

I'm running into a wall, trying to compile glibc-2.3.2
on my alpha and hoping that the more educated
community can help me out.

my system is a ds20, running a stock 7.2 load.  I am
using gcc-3.3.2 & binutils-2.14 from source--compiled
and running successfully. I have the latest 2.4.22
kernel source for glibc to use the headers.  I am
following the glibc install instructions/FAQ and using
the following configure options:

configure --prefix=/usr/local/glibc.3.2
--enable-add-ons=linuxthreads
--with-headers=/usr/src/linux-2.4.22/include

When I do a 'make' after the config, it runs for a
while and then bombs out on the "sscanf.c" module. 
Here is the last few lines of the error.  

"Does anybody have some suggestions on steps that I am
missing, or if there is a way around this error?"


gcc sscanf.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g -mieee    
-I../include -I.
-I/usr/local/src/glibc/build-glibc-2.3.2/stdio-common
-I.. -I../libio 
-I/usr/local/src/glibc/build-glibc-2.3.2
-I../linuxthreads/sysdeps/alpha/elf
-I../sysdeps/alpha/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/alpha
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/alpha
-I../sysdeps/unix/sysv/linux/alpha
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/alpha -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/alpha/alphaev6/fpu
-I../sysdeps/alpha/alphaev6
-I../sysdeps/alpha/alphaev5 -I../sysdeps/alpha/fpu
-I../sysdeps/alpha -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem
/usr/lib/gcc-lib/alpha-linux/3.3.2/include -isystem
/usr/src/linux-2.4.22/include -D_LIBC_REENTRANT
-include ../include/libc-symbols.h      
-D_IO_MTSAFE_IO -o
/usr/local/src/glibc/build-glibc-2.3.2/stdio-common/sscanf.o
sscanf.c:31: warning: conflicting types for built-in
function `sscanf'
sscanf.c: In function `sscanf':
sscanf.c:37: error: `va_start' used in function with
fixed args
../stdio-common/_itoa.h: At top level:
../stdio-common/_itoa.h:40: warning: inlining failed
in call to `_itoa_word'
../stdio-common/_itoa.h:76: warning: called from here
make[2]: ***
[/usr/local/src/glibc/build-glibc-2.3.2/stdio-common/sscanf.o]
Error 1
make[2]: Leaving directory
`/usr/local/src/glibc/glibc-2.3.2/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory
`/usr/local/src/glibc/glibc-2.3.2'
make: *** [all] Error 2
[root@ds20 build-glibc-2.3.2]


Thanks in advance for any assistance.

SH

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: glibc-2.3.2 compile errors--HELP!
  2003-11-24 14:36 glibc-2.3.2 compile errors--HELP! Scott Hempstead
@ 2003-11-24 15:01 ` Chris Meadors
  2003-11-24 15:18   ` Scott Hempstead
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Meadors @ 2003-11-24 15:01 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

On Mon, 2003-11-24 at 09:36, Scott Hempstead wrote:
> I'm running into a wall, trying to compile glibc-2.3.2
> on my alpha and hoping that the more educated
> community can help me out.
> 
> my system is a ds20, running a stock 7.2 load.  I am
> using gcc-3.3.2 & binutils-2.14 from source--compiled
> and running successfully. I have the latest 2.4.22
> kernel source for glibc to use the headers.  I am
> following the glibc install instructions/FAQ and using
> the following configure options:

Common problem when compiling glibc 2.3.2 with gcc 3.3, a Google should
have turned up a patch.

I don't know if this list allows attachments, but I'll try to include
the patch that SuSE uses (which appears to be from the glibc CVS).

-- 
Chris

[-- Attachment #2: scanf.diff --]
[-- Type: text/x-patch, Size: 874 bytes --]

Index: stdio-common/sscanf.c
===================================================================
RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- stdio-common/sscanf.c	10 Aug 2002 09:24:42 -0000	1.8
+++ stdio-common/sscanf.c	5 Mar 2003 19:58:03 -0000	1.9
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1996,1998,2002,2003 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
@@ -27,9 +27,7 @@
 /* Read formatted input from S, according to the format string FORMAT.  */
 /* VARARGS2 */
 int
-sscanf (s, format)
-     const char *s;
-     const char *format;
+sscanf (const char *s, const char *format, ...)
 {
   va_list arg;
   int done;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: glibc-2.3.2 compile errors--HELP!
  2003-11-24 15:01 ` Chris Meadors
@ 2003-11-24 15:18   ` Scott Hempstead
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Hempstead @ 2003-11-24 15:18 UTC (permalink / raw)
  To: axp-list

Chris,

Thank you very much!!!

Shortly after I sent the note, I found a similar hit
on the 'net about the CVS patch.  I am working on
patching the tree right now.

Thanks again for the immediate assistance.  I LOVE
THIS FORUM!

SH
--- Chris Meadors <axp@clubneon.com> wrote:
> On Mon, 2003-11-24 at 09:36, Scott Hempstead wrote:
> > I'm running into a wall, trying to compile
> glibc-2.3.2
> > on my alpha and hoping that the more educated
> > community can help me out.
> > 
> > my system is a ds20, running a stock 7.2 load.  I
> am
> > using gcc-3.3.2 & binutils-2.14 from
> source--compiled
> > and running successfully. I have the latest 2.4.22
> > kernel source for glibc to use the headers.  I am
> > following the glibc install instructions/FAQ and
> using
> > the following configure options:
> 
> Common problem when compiling glibc 2.3.2 with gcc
> 3.3, a Google should
> have turned up a patch.
> 
> I don't know if this list allows attachments, but
> I'll try to include
> the patch that SuSE uses (which appears to be from
> the glibc CVS).
> 
> -- 
> Chris
> > Index: stdio-common/sscanf.c
>
===================================================================
> RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
> retrieving revision 1.8
> retrieving revision 1.9
> diff -u -p -r1.8 -r1.9
> --- stdio-common/sscanf.c	10 Aug 2002 09:24:42 -0000
> 1.8
> +++ stdio-common/sscanf.c	5 Mar 2003 19:58:03 -0000
> 1.9
> @@ -1,4 +1,4 @@
> -/* Copyright (C) 1991,95,96,98,2002 Free Software
> Foundation, Inc.
> +/* Copyright (C) 1991,1995,1996,1998,2002,2003 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
> @@ -27,9 +27,7 @@
>  /* Read formatted input from S, according to the
> format string FORMAT.  */
>  /* VARARGS2 */
>  int
> -sscanf (s, format)
> -     const char *s;
> -     const char *format;
> +sscanf (const char *s, const char *format, ...)
>  {
>    va_list arg;
>    int done;
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-24 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 14:36 glibc-2.3.2 compile errors--HELP! Scott Hempstead
2003-11-24 15:01 ` Chris Meadors
2003-11-24 15:18   ` Scott Hempstead

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox