On 27 Dec 2009, at 10:26, belahcene wrote:
>>> Is it gcc version problem
>>
>> No, it's not a gcc version problem, it is a libc version problem.
>>
>>>
>>> =3D=3D=3D making src =3D=3D=3D
>>> Compiling filename_list.cxx...
>>> filename_list.cxx: In function =91int fl_filename_list(const  
>>> char*, =20=
>>
>>> dirent***, int (*)(dirent**, dirent**))=92:
>>> filename_list.cxx:70: error: invalid conversion from =91int (*) 
>>> (const =20=
>>
>>> void*, const void*)=92 to =91int (*)(const dirent**, const d$
>>> filename_list.cxx:70: error:   initializing argument 4 of =91int =20
>>> scandir(const char*, dirent***, int (*)(const dirent*), int ($
>>> make[1]: *** [filename_list.o] Error 1
>>> make: *** [all] Error 1
>>>
>>> WHAT IS MISSED ??
>>
>>
>> The glibc authors changed the signature that they use for the  
>> scandir=20
>> () function, in an attempt to make it more robust and compliant,  
>> but =20
>> breaking the assumptions that fltk makes...
>>
>> Use one of the 1.1.10 release candidates from the website - they =20
>> ought to have had the necessary workarounds applied.
>> Also, fltk-1.3 tarballs should be OK too.
>>
>>
>>
> Thanks a lot
> I wanted recent release so I used 1.1.9, installing  debian libc  
> seems difficult since almost everything depends on it,

Don't try to change your libc. That will destroy practically  
everything on your system. That way lies madness.

> so the possibility to modify in the source is probably the best ,  
> may be just in    filename_list.cxx  ??? how to do and where to do  
> it please, I know c++ ?

It is covered by STR #2222, which also calls up STR's #2205, #2202.  
These can be viewed on the website.
http://www.fltk.org/str.php?L2222

There is enough info in #2222 to tell you how to patch the code. But  
why do it? fltk 1.1.10  *is* 1.1.9 with this patch already applied,  
so just use fltk 1.1.10.

> thanks a lot again
> Any way I ll try 1.3 too.

fltk-1.3 has basically the same API as fltk-1.1 but with added  
support for unicode and some other changes "under the hood".



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to