User forums > Help
mandriva 2007 svn wxGTK2.6.3 error
wxuserbrest:
Hi,
i put LANG=C in makefile.am to avoid the previous error but i have this error
svn, version 1.3.2
wxGTK2.6.3
gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-3mdk)
configmanager-revision.cpp:13:26: error: autorevision.h: Aucun fichier ou répertoire de ce type
configmanager-revision.cpp: In static member function ‘static wxString ConfigManager::GetRevisionString()’:
configmanager-revision.cpp:17: error: ‘SVN_REVISION’ was not declared in this scope
configmanager-revision.cpp: In static member function ‘static unsigned int ConfigManager::GetRevisionNumber()’:
configmanager-revision.cpp:22: error: ‘autorevision’ has not been declared
configmanager-revision.cpp: In static member function ‘static wxString ConfigManager::GetSvnDate()’:
configmanager-revision.cpp:27: error: ‘SVN_DATE’ was not declared in this scope
Thanks
TheTuxKeeper:
autorevision sets LANG to en_US, but if en_US doesn't exist on the system it uses the default value(s) in your case french. French spells "revision" different so the revision won't be set.
Setting LANG or better LC_ALL to "C" inside autorevision should always work.
Please file a bug (http://developer.berlios.de/bugs/?group_id=5358), so it won't get lost :)
afb:
--- Quote from: daniel2000 on November 09, 2006, 10:55:36 am ---autorevision sets LANG to en_US, but if en_US doesn't exist on the system it uses the default value(s) in your case french. French spells "revision" different so the revision won't be set.
Setting LANG or better LC_ALL to "C" inside autorevision should always work.
--- End quote ---
But "C" doesn't work on Windows, they say... Yet another reason why autorevision is evil :-)
wxuserbrest:
what do u mean ?
to put LC_ALL=C instead of LANG=C in the makefile.am ?
Thanks
TheTuxKeeper:
--- Quote from: afb on November 09, 2006, 01:47:36 pm ---But "C" doesn't work on Windows, they say... Yet another reason why autorevision is evil :-)
--- End quote ---
Better an evil tool than none ;)
Perhaps a check whether locale -a | grep ^C$ succeeds. If it fails use the current way, else set LC_ALL=C. Does this way work on Mac too ?
--- Quote from: wxuserbrest on November 09, 2006, 02:38:31 pm ---what do u mean ?
to put LC_ALL=C instead of LANG=C in the makefile.am ?
Thanks
--- End quote ---
Sorry, that I confused you. I meant the internal setting of autorevision, not what you have to set (autorevision will overwrite it).
You can do two things:
1. Install the en_US language files of subversion (don't know where these are :?) or
2. change
--- Code: ---set_env("LANG", "en_US");
--- End code ---
to
--- Code: ---set_env("LANG", "C");
--- End code ---
It's line 108 in src/build_tools/autorevision/autorevision.cpp
Navigation
[0] Message Index
[#] Next page
Go to full version