Work
Play
Support
About Intel
Change Location
Search
Intel® Software Network
Connect with developers and Intel engineers
Communities
Academic
Cluster Ready
Graphics
Manageability
Mobility
Multi-Core
Open Source
Virtualization
More...
Downloads
Tools
Forums/Blogs
Forums
Blogs
Blog Categories
Meet The Bloggers
Resources
Cool Software
Events Calendar
Intel Press Technical Books
Intel Software Insight Magazine
Intel Software Partner Program
Knowledge Base
Take Five Videos
Training
What If Software
Software Support
Welcome to Intel® Software Network
Quick Login
|
Join
|
Help
|
Search in Intel® Software Network Forums
in
Intel® C++ Compiler (forum)
Intel® Software Development Products (group)
(Entire Site)
Go
Intel® Software Network
›
Intel® Software Developmen...
›
Intel® C++ Compiler
›
fopen on LARGEFILE is failing on one system, but not another
fopen on LARGEFILE is failing on one system, but not another
Last post 07-02-2008, 9:18 AM by
Igor Levicki
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
07-01-2008, 1:27 PM
30258034
michael.white@lmscae.com
Joined on 08-02-2007
Posts 5
fopen on LARGEFILE is failing on one system, but not another
I have a Fortran/C++ program doing a fopen call that seems to be behaving differently on two machines. The file is about 2.9GB big.
First machine (works)
OS: SuSE Linux 9.0 (x86-64) - Kernel \r (\l)
uname -a: Linux system_old 2.6.16-20-smp #1 SMP Wed Mar 26 18:02:05 CET 2008
x86_64 x86_64 x86_64 GNU/Linux
Filesystem type is RiserFS
fp = fopen( "filename", "r");
(strace output)
[pid 5326] open("filename", O_RDONLY) = 3
fp is NOT null
Second machine (fails)
Redhat Enterprise (Clone): CentOS release 5 (Final)
uname -a: Linux system_new 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST
2008 x86_64 x86_64 x86_64 GNU/Linux
Filesystem type is EXT3 (largefile is enabled according to tune2fs)
fp = fopen( "filename", "r");
(strace output)
[pid 5520] open("filename", O_RDONLY) = -1 EFBIG (File too
large)
fp is NULL
Unfortunately this is a on a customers machine, and I am unable to reproduce it locally. It seems to be related to the system, but I was hoping someone has a suggestion for a work around.
Thanks!
Jesse Brockmann
Report abuse
07-02-2008, 9:18 AM
30258125
in reply to
30258034
Igor Levicki
Joined on 04-17-2006
Belgrade, Serbia
Posts 430
Re: fopen on LARGEFILE is failing on one system, but not another
Have you tried static linking?
Regards,
Igor Levicki
http://www.levicki.net/
Report abuse
Shortcuts
View all users
My Tags
Tag This
Site Tag Cloud
Tags For This Post
...
Community Tags
...