OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000092OMNeT++simulation kernelpublic2009-08-10 21:352012-01-16 16:52
andras 
rhornig 
highmajoralways
resolvedfixed 
x86GNU/Linux?
4.0 
4.2.1 
0000092: No large file support when compiled with default configuration on Linux
On Linux, simulations fail when the vector file's size reaches 2GB.

This can be fixed by adding -D_FILE_OFFSET_BITS=64 to configure.user. This should probably be the default.

See http://groups.google.com/group/omnetpp/browse_thread/thread/f5e394fbd7a9a60f/fe18c54d447cebfa?show_docid=fe18c54d447cebfa [^]

Actually, large file support should be the default (out of the box) setting for OMNeT++ on all platforms.
No tags attached.
Issue History
2009-08-10 21:35andrasNew Issue
2009-08-13 11:15andrasDescription Updated
2009-11-04 15:08rhornigPrioritynormal => high
2010-01-09 09:27andrasNote Added: 0000203
2010-01-09 09:27andrasSeverityminor => major
2010-01-09 09:27andrasStatusnew => confirmed
2010-01-09 09:32andrasAssigned To => rhornig
2010-03-31 14:56rhornigNote Added: 0000222
2010-03-31 14:56rhornigStatusconfirmed => resolved
2010-03-31 14:56rhornigFixed in Version => 4.1b1
2010-03-31 14:56rhornigResolutionopen => fixed
2010-06-26 10:07andrasNote Added: 0000320
2010-06-26 10:07andrasStatusresolved => confirmed
2010-11-29 00:07miklosNote Added: 0000341
2010-12-08 15:58rhornigNote Added: 0000342
2010-12-08 15:58rhornigStatusconfirmed => resolved
2010-12-08 15:58rhornigFixed in Version4.1b1 => 4.2
2012-01-16 16:51rhornigNote Added: 0000690
2012-01-16 16:52rhornigFixed in Version4.2 => 4.2.1
2012-01-16 16:54rhornigNote Edited: 0000690

Notes
(0000203)
andras   
2010-01-09 09:27   
Must be fixed for 4.1
(0000222)
rhornig   
2010-03-31 14:56   
Large files are not supported by default on Linux (gcc)/mingw.
(0000320)
andras   
2010-06-26 10:07   
Reopened because issue is still present in 4.1. Seems like the bug was closed without testing it.
(0000341)
miklos   
2010-11-29 00:07   
I think the ide should also be tested before marking this as fixed, as in my experience it cannot open elog files larger than 2GB.
(0000342)
rhornig   
2010-12-08 15:58   
Added the -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 macros to CFLAGS (for Linux/32-bit) to turn on the LFS support.

Tested LFS also on
- Mac OS 10.5 (passed) lfs seems to be default even on 32bit progs,
- Windows XP (with the bundled MINGW)) - also supports LFS
- and using the patch, Linux32 bit is also working.

For further info regarding GCC's LFS features:
http://www.suse.de/~aj/linux_lfs.html [^]
(0000690)
rhornig   
2012-01-16 16:51   
(edited on: 2012-01-16 16:54)
ohh. Mingw build still not supported large files as of omnet 4.2.
With 4.2.1 mingw builds (including the uilib) should support large files. (added ftell64, fseek64 etc. macros for mingw in platmisc.h)