reassign 627273 libc6-dev
retitle 627273 /usr/include/sys/user.h calls __sysconf instead of sysconf
thanks

It looks like this FTBFS in gdb is being caused by the latest
libc6-dev. So, I am reassigning it to libc6-dev.

Consider the following test case.

debian_chroot:sid:kusumanchi:/home/625341/w2# cat test.c
#include <sys/user.h>

void test (long int a);

void test (long int a)
{
    a = NBPG;
}

debian_chroot:sid:kusumanchi:/home/625341/w2# gcc -c -Wall -Werror test.c
test.c: In function ‘test’:
test.c:7:5: error: implicit declaration of function ‘__sysconf’ [-
Werror=implicit-function-declaration]
cc1: all warnings being treated as errors

I am using

debian_chroot:sid:kusumanchi:/home# dpkg -l libc6-dev gcc
ii  gcc                                           4:4.6.0-5
                         The GNU C compiler
ii  libc6-dev                                     2.13-4
                         Embedded GNU C Library: Development Libraries
and Header Files


However, the error goes away if an old version of libc6-dev is used.
For example, the error does not occur with

$dpkg -l libc6-dev gcc
ii  gcc                                           4:4.4.5-1
                         The GNU C compiler
ii  libc6-dev                                     2.11.2-10
                         Embedded GNU C Library: Development Libraries
and Header Files

In libc6-dev 2.13-4, I have
debian_chroot:sid:kusumanchi:/home# grep "define NBPG" /usr/include/sys/user.h
#define NBPG                    PAGE_SIZE
debian_chroot:sid:kusumanchi:/home# grep "define PAGE_SIZE"
/usr/include/sys/user.h
#define PAGE_SIZE               (__sysconf(_SC_PAGESIZE))

But in libc6-dev 2.11.2-10, I have
$grep "define NBPG" /usr/include/sys/user.h
#define NBPG                    PAGE_SIZE
$grep "define PAGE_SIZE" /usr/include/sys/user.h
#define PAGE_SIZE               (sysconf(_SC_PAGESIZE))

thanks
raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to