This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

other/3341: Build 3.0 on Linux-glibc1 fails: readdir_r undeclared



>Number:         3341
>Category:       other
>Synopsis:       Build 3.0 on Linux-glibc1 fails: readdir_r undeclared
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 21 11:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Q@ping.be
>Release:        gcc 3.0
>Organization:
>Environment:
Linux libc5
>Description:
I got this error:

java/io/natFile.cc: In member function `JArray<java::lang::Object*>*
   java::io::File::performList(java::io::FilenameFilter*,
   java::io::FileFilter*, java::lang::Class*)':
java/io/natFile.cc:154: `readdir_r' undeclared (first use this function)
java/io/natFile.cc:154: (Each undeclared identifier is reported only once for
   each function it appears in.)

In dirent.h:
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_REENTRANT)
extern int readdir_r __P((DIR *__dirp, struct dirent *__entry,
                struct dirent **__result));
#endif

To fix this I did an undef of HAVE_READDIR_R twice in ./i586-pc-linux-gnulibc1/libjava/include/config.h
Note that _REENTRANT is also twice in it.

libjava/acconfig.h had is undef'd but too, but that file is a year old.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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