| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1159
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | Config Files |
Summary: | fl_filename_list() not working |
Version: | 1.1.7 |
Created By: | parshin |
Assigned To: | mike |
Fix Version: | 1.1-current (SVN: v4779) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | parshin 13:46 Jan 29, 2006 |
| fl_filename_list() in version 1.1.7 produces a file name list with empty names. 1.1.6 and prior work just fine.
dirent **files; int num_files = fl_filename_list(m_directory.c_str(), &files);
OS: Gentoo Linux Processor: 2xOpteron 250 | |
|
#2 | mike 06:27 Jan 30, 2006 |
| Does the file chooser demo work? | |
|
#3 | parshin 14:06 Jan 30, 2006 |
| Negative, Mike. Filechooser shows the empty filelist, and this is another machine already (P4 laptop). | |
|
#4 | mike 15:07 Jan 30, 2006 |
| Is the current directory local or a networked filesystem? | |
|
#5 | matt 15:31 Jan 30, 2006 |
| Local. I stumbled about the same thing just this second. When adding the trailing slash to filanems that are actually a directory, the list gets destroyed. I just can't figure out, how. | |
|
#6 | parshin 15:49 Jan 30, 2006 |
| Also, local. | |
|
#7 | matt 16:02 Jan 30, 2006 |
| OK, I think I know what the problem is. FLTK is now by default compiled with the following symbols defined in the command line: _LARGE_FILE_SOURCE _LARGE_FILE_SOURCE64 _FILE_OFFSET_BIT=64
If FLTK is linked to an application that has these flags not set, the "dirent" structure is different and the filenames are swallowed (actually d_name is pointing at the wrong position). | |
|
#8 | mike 07:51 Jan 31, 2006 |
| Fixed in Subversion repository.
OK, since this broke binary compatibility in 1.1.x, I'm making the default to be --disable-largefile. If you use --enable-largefile, then fltk-config will also report the necessary definitions so that apps are compiled correctly. | |
[ Return to Bugs & Features ]
|
| |