This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: readdir_r-problem on Solaris 2.5.1


>>>>> "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


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