nanogui: -O3 and fstat
Subject:
-O3 and fstat
From:
David Muse ####@####.####
Date:
7 Aug 2002 18:01:40 -0000
Message-Id: <20020807135048.1d1b8d19.dmuse@4accesscommunications.com>
Has anyone else run into this problem:
On redhat 7.3 with gcc 2.96, glibc 2.2.5:
If I set OPTIMIZE=N (to get smaller libraries) and SHAREDLIBS=Y and LINK_APP_INTO_SERVER=Y in the config file, any app compiled against the libs generates the following error when it's run:
relocation error: /usr/local/microwin/lib/libmwengine.so: undefined symbol: fstat
Setting OPTIMIZE=Y fixes the problem, as does modifying engine/devimage.c and changing the line:
fstat(fd, &s);
to
stat(path,&s);
I've written programs on the same platform that use fstat without running into this problem, so this particular situation is kind of confusing.
Dave Muse
####@####.####