MacArthur, Ian (SELEX GALILEO, UK) wrote: > However, this next is more serious - this looks like a real problem: > >> and lastly: >> Compiling filename_list.cxx... >> filename_list.cxx: In function 'int fl_filename_list(const >> char*, dirent***, int (*)(dirent**, dirent**))': >> filename_list.cxx:93: error: invalid conversion from 'int >> (*)(const void*, const void*)' to 'int (*)(const dirent**, >> const dirent**)' >> filename_list.cxx:93: error: initializing argument 4 of >> 'int scandir(const char*, dirent***, int (*)(const dirent*), >> int (*)(const dirent**, const dirent**))' >> make[1]: *** [filename_list.o] Error 1 >> make: *** [all] Error 1 >> >> ..Which doesn't look too good at all. Any further suggestions?. > > This is a bit of a show-stopper. > > Is anybody else out there using F11, and if so what are they seeing? > > By default, we assume that the signature of scandir is: > > scandir(d, list, 0, (int(*)(const void*,const void*))sort); > > And this has always worked for Linux builds in the past. > But it now looks like F11 has scandir defined as > > scandir(d, list, 0, (int(*)(const dirent **, const dirent > **))sort); > > Which previously we only really expected with HP-UX and Cygwin. > > I guess this might just be the gcc version being more picky about > casting the sort function to the correct type? > > It would be interesting to know what the signature of the scandir > function is actually defined as on a F11 system - can you look that up > for us, it will be defined somewhere in the file /usr/include/dirent.h > (I think!)
According to STR #2205 (for FLTK 2.0) this is a change in glibc, please see the note from jue at 07:09 Jun 17, 2009 and the links in [1]. "So the only clean solution for fltk is either have a #if GLIBC in the sources-files or some additions to the autoconf stuff." There's also a workaround described, but IMHO we need to check this for all FLTK versions ASAP. Anybody who feels fit to do this with autoconf / configure ? Albrecht [1] http://www.fltk.org/str.php?L2205 _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

