> I've tried several versions of FLTK but cannot seem to get > thru make. Any suggestions? > > 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 > > gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) > fedora 11
Yes - this is a problem introduced by changes in glibc-2.10 which is shipping with F11, where the glibc folk have changed the definitions of of few key functions (scandir, strchr are the ones that affect us.) There are STR's open on this, #2222. #2205, #2202. If you just need a short term workaround until we push a proper fix, there was a recent thread that discussed some workarounds: http://www.fltk.org/newsgroups.php?gfltk.general+v:28761 is one such message. The tips are; In filename_list.cxx, replacing the code at line 93 with the code from line 82. In fl_set_fonts_xft.cxx, find the three lines identified in the error (274, 275, 280) and tweak them all as follows (they are each different, but all of this form) - Before: stop = strchr((const char *)font, ','); After: stop = strchr((char *)font, ','); And then re-run the make and it *ought* to be OK. Note that whilst these hack fix the build for F11/glibc-2.10, they break ot for everybody else, but we are working on a better fix Real Soon Now.... Also, if we do push a better fix, we will need testers - are you interested? -- Ian SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

