News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

mandriva 2007 svn wxGTK2.6.3 error

Started by wxuserbrest, November 09, 2006, 09:25:50 AM

Previous topic - Next topic

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 :)
Nightly builds for openSUSE

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.

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

#4
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 :-)
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
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 set_env("LANG", "en_US");to set_env("LANG", "C");It's line 108 in src/build_tools/autorevision/autorevision.cpp
Nightly builds for openSUSE

wxuserbrest

Hi,
i put "C" in line 108 of autorevision. I have to let LANG=C in makefile.am for autorevision but i still have

In file included from configmanager-revision.cpp:13:
autorevision.h:2:1: error: unterminated #ifndef
autorevision.h:14: error: 'encoding' was not declared in this scope
autorevision.h:14: error: expected primary-expression before '>' token
autorevision.h:14: error: expected primary-expression before ';' token
autorevision.h:14: error: expected `:' before ';' token
autorevision.h:14: error: expected primary-expression before ';' token
configmanager-revision.cpp:15: error: definition of 'wxString ConfigManager::GetRevisionString()' is not in namespace enclosing 'ConfigManager'
configmanager-revision.cpp: In static member function 'static wxString ConfigManager::GetRevisionString()':
configmanager-revision.cpp:17: error: expected primary-expression before '(' token
configmanager-revision.cpp:17: error: expected `)' before 'utf'
configmanager-revision.cpp: At global scope:
configmanager-revision.cpp:20: error: definition of 'unsigned int ConfigManager::GetRevisionNumber()' is not in namespace enclosing 'ConfigManager'
configmanager-revision.cpp:25: error: definition of 'wxString ConfigManager::GetSvnDate()' is not in namespace enclosing 'ConfigManager'
configmanager-revision.cpp:28: error: expected `}' at end of input

I hope i will be able to use codeblocks...Thanks for answer