This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2873
  building glibc for 2.6.17+ kernels fails in openat Last modified: 2006-08-26 05:13:58
     Query page      Enter new bug
Bug#: 2873   Hardware:   Reporter: Mike Frysinger <vapier@gentoo.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: DUPLICATE of bug 3040   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
openat.c.diff Proposed patch for the openat.c patch 2006-08-14 11:30 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2873 depends on: Show dependency tree
Show dependency graph
Bug 2873 blocks:

Additional Comments:


Leave as RESOLVED DUPLICATE
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-07-03 21:12
the openat code uses stdarg functions but the func prototype isnt variable (it
doesnt end in ...) which of course causes a build failure

if current cvs head is configured with:
--enable-kernel=2.6.17

the build bombs:
x86_64-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/openat.c -c -std=gnu99 -O2
-Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes    
 -I../include -I/usr/local/src/gnu/glibc-build/io
-I/usr/local/src/gnu/glibc-build -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu
-I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -I../nptl -I../ports  -I.. -I../libio -I. -nostdinc
-isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o
/usr/local/src/gnu/glibc-build/io/openat.o -MD -MP -MF
/usr/local/src/gnu/glibc-build/io/openat.o.dt -MT
/usr/local/src/gnu/glibc-build/io/openat.o
../sysdeps/unix/sysv/linux/openat.c:74: warning: function declaration isn't a
prototype
../sysdeps/unix/sysv/linux/openat.c:148: warning: function declaration isn't a
prototype
../sysdeps/unix/sysv/linux/openat.c: In function '__OPENAT':
../sysdeps/unix/sysv/linux/openat.c:156: error: 'va_start' used in function with
fixed args
make: *** [/usr/local/src/gnu/glibc-build/io/openat.o] Error 1

------- Additional Comment #1 From Ulrich Drepper 2006-08-12 20:28 -------

*** This bug has been marked as a duplicate of 333 ***

------- Additional Comment #2 From M. MosG Gor. 2006-08-14 11:30 -------
Created an attachment (id=1222)
Proposed patch for the openat.c

Proposed is a fix for the openat.c compilation error
with --enable-kernel=2.6.17

------- Additional Comment #3 From Mike Frysinger 2006-08-26 05:13 -------
are you kidding me ?  if you looked at the openat.c, you'd see that it's
obviously wrong

so i'll dupe it for you to the correct bug (which you fixed instead of simply
marking a dupe of *this* bug)

------- Additional Comment #4 From Mike Frysinger 2006-08-26 05:13 -------

*** This bug has been marked as a duplicate of 3040 ***

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In