Compile errors
derat opened this issue · 8 comments
Original issue 1 created by derat on 2009-12-07T17:01:15.000Z:
/usr/local/src/xsettingsd# scons xsettingsd dump_xsettings
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o xsettingsd.o -c -Wall -Werror xsettingsd.cc
xsettingsd.cc: In function ‘int main(int, char*)’:
xsettingsd.cc:51: error: ‘stderr’ was not declared in this scope
xsettingsd.cc:51: error: ‘fprintf’ was not declared in this scope
xsettingsd.cc:57: error: ‘stderr’ was not declared in this scope
xsettingsd.cc:57: error: ‘fprintf’ was not declared in this scope
xsettingsd.cc:67: error: ‘stderr’ was not declared in this scope
xsettingsd.cc:67: error: ‘fprintf’ was not declared in this scope
scons: ** [xsettingsd.o] Error 1
scons: building terminated because of errors.
/usr/local/src/xsettingsd# scons dump_xsettings
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o dump_xsettings.o -c -Wall -Werror dump_xsettings.cc
g++ -o common.o -c -Wall -Werror common.cc
g++ -o config_parser.o -c -Wall -Werror config_parser.cc
config_parser.cc: In destructor ‘virtual
xsettingsd::ConfigParser::FileCharStream::~FileCharStream()’:
config_parser.cc:181: error: ‘fclose’ was not declared in this scope
config_parser.cc: In member function ‘virtual bool
xsettingsd::ConfigParser::FileCharStream::InitImpl(std::string_)’:
config_parser.cc:188: error: ‘fopen’ was not declared in this scope
config_parser.cc: In member function ‘virtual bool
xsettingsd::ConfigParser::FileCharStream::AtEOFImpl()’:
config_parser.cc:201: error: ‘EOF’ was not declared in this scope
config_parser.cc: In member function ‘virtual char
xsettingsd::ConfigParser::FileCharStream::GetCharImpl()’:
config_parser.cc:206: error: ‘fgetc’ was not declared in this scope
config_parser.cc: In member function ‘void
xsettingsd::ConfigParser::SetErrorF(const char_, ...)’:
config_parser.cc:513: error: ‘vsnprintf’ was not declared in this scope
scons: *** [config_parser.o] Error 1
scons: building terminated because of errors.
Comment #1 originally posted by derat on 2009-12-07T17:55:08.000Z:
Hmm, the compiler on my machine is maybe more lenient than it should be. :-( I just
checked in a fix for the errors that you saw. Can you pull from the git server and
see if compiles now? Thanks!
Comment #2 originally posted by derat on 2009-12-08T16:31:27.000Z:
/usr/local/src/xsettingsd# scons dump_xsettings
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o dump_xsettings.o -c -Wall -Werror dump_xsettings.cc
g++ -o settings_manager.o -c -Wall -Werror settings_manager.cc
settings_manager.cc: In member function ‘bool
xsettingsd::SettingsManager::LoadConfig()’:
settings_manager.cc:51: error: ‘stderr’ was not declared in this scope
settings_manager.cc:52: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:56: error: ‘stderr’ was not declared in this scope
settings_manager.cc:59: error: ‘fprintf’ was not declared in this scope
settings_manager.cc: In member function ‘bool
xsettingsd::SettingsManager::InitX11(int, bool)’:
settings_manager.cc:68: error: ‘stderr’ was not declared in this scope
settings_manager.cc:68: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:88: error: ‘stderr’ was not declared in this scope
settings_manager.cc:89: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:92: error: ‘stderr’ was not declared in this scope
settings_manager.cc:93: error: ‘fprintf’ was not declared in this scope
settings_manager.cc: In member function ‘void
xsettingsd::SettingsManager::RunEventLoop()’:
settings_manager.cc:125: error: ‘stderr’ was not declared in this scope
settings_manager.cc:127: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:132: error: ‘stderr’ was not declared in this scope
settings_manager.cc:133: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:146: error: ‘stderr’ was not declared in this scope
settings_manager.cc:147: error: ‘fprintf’ was not declared in this scope
settings_manager.cc:151: error: ‘stderr’ was not declared in this scope
settings_manager.cc:151: error: ‘fprintf’ was not declared in this scope
settings_manager.cc: In member function ‘bool
xsettingsd::SettingsManager::ManageScreen(int, Window, Time, bool)’:
settings_manager.cc:293: error: ‘stderr’ was not declared in this scope
settings_manager.cc:295: error: ‘fprintf’ was not declared in this scope
scons: *** [settings_manager.o] Error 1
scons: building terminated because of errors.
/usr/local/src/xsettingsd# uname -a
Linux rmartinhoster 2.6.31-14-generic # 48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009
x86_64 GNU/Linux
Comment #3 originally posted by derat on 2009-12-08T16:31:58.000Z:
LMK if there is anything else you need from me.
Comment #4 originally posted by derat on 2009-12-08T16:53:27.000Z:
Sorry, this should be fixed now -- let me know if it still isn't.
Comment #6 originally posted by derat on 2009-12-08T17:08:09.000Z:
Cool! You're compiling under Karmic, right? (I was using Jaunty here -- good to see
that it's getting more strict about this.)
Comment #7 originally posted by derat on 2009-12-08T17:09:10.000Z:
Yes Karmic. Quick question, what does :
/usr/local/src/xsettingsd$ ./dump_xsettings
No current owner for _XSETTINGS_S0 selection
mean? I am trying to use this to fill a bug report for chrome, I am assuming they are
looking for more than just that.