This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: readdir_r-problem on Solaris 2.5.1
- From: Tom Tromey <tromey at redhat dot com>
- To: martin dot kahlert at infineon dot com
- Cc: java at gcc dot gnu dot org
- Date: 10 Sep 2002 12:27:24 -0600
- Subject: Re: readdir_r-problem on Solaris 2.5.1
- References: <20020822080840.A21127@keksy.muc.infineon.com><20020826085638.A18536@keksy.muc.infineon.com>
- Reply-to: tromey at redhat dot com
>>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:
Martin> /usr/include/dirent.h: In member function `JArray<java::lang::Object*>*
Martin> java::io::File::performList(java::io::FilenameFilter*,
Martin> java::io::FileFilter*, java::lang::Class*)':
Martin> /usr/include/dirent.h:109: too many arguments to function `dirent*
Martin> readdir_r(DIR*, dirent*)'
Martin> java/io/natFile.cc:151: at this point in file
Martin> I got a working gcj-3.2 on Solaris 2.5.1 (hello world type -
Martin> my main application will compile during the next several
Martin> hours) by this ugly hack:
Martin> [ added -D_POSIX_PTHREAD_SEMANTICS ]
Martin> What is the correct way for this?
If this is in fact the best fix, we would probably proceed by adding
the define via configure or in include/posix.h.
What affect does this -D have on other parts of the code?
Is this a documented define?
I'd prefer another approach to fixing the problem, if one is
available. For instance we could have a readdir adapter template,
like we do for other functions.
Martin> Perhaps the problem came up because i configured with
Martin> --disable-threads?
It is possible.
Tom