This is the mail archive of the glibc-bugs@sources.redhat.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]
Other format: [Raw text]

[Bug libc/758] New: syscall.h not generated properly


When trying to compile numerous programs I stumbled accross a lot of these type
of errors. Looks to be caused by syscall.h not being generated properly.

 error: `SYS_read' undeclared (first use in this function)
 error: (Each undeclared identifier is reported only once
 error: for each function it appears in.)
 error: `SYS_write' undeclared (first use in this function)

Comparing my contents to the contents of a known working distro's version 2.3.3
of syscall.h, I noticied a big difference.

Here is my contents of syscall.h

/* Generated at libc build time from kernel syscall list.  */

#ifndef _SYSCALL_H
# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
#endif

#include <sgidefs.h>
#if _MIPS_SIM == _ABIN32
#define SYS_Linux __NR_N32_Linux
#define SYS_Linux_syscalls __NR_N32_Linux_syscalls
#elif _MIPS_SIM == _ABI64
#else
#define SYS_Linux __NR_O32_Linux
#define SYS_Linux_syscalls __NR_O32_Linux_syscalls
#endif

The distro's version had a lot of lines simlar to the following

#define SYS_accept __NR_accept
#define SYS_fdatasync __NR_fdatasync
#define SYS_bind __NR_bind
#define SYS_mlockall __NR_mlockall
#define SYS_connect __NR_connect
#define SYS_sched_yield __NR_sched_yield

I'm using no patches to build my glibc, using the following build commands. I'm
building with linuxthreads and libcibn.

cd /usr/src/glibc-2.3.4
rm -rf nptl*
mkdir /usr/src/glibc-2.3.4-build
/usr/src/glibc-2.3.4/configure --prefix=/usr \
    --libexecdir=/usr/bin --disable-profile \
    --enable-add-ons --enable-bind-now \
    --enable-kernel=2.6.0 --without-cvs
make 
make install

-- 
           Summary: syscall.h not generated properly
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: giffordj at linkline dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: mipsel-unknown-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=758

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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