Author Topic: mandriva 2007 svn wxGTK2.6.3 error  (Read 5368 times)

Offline wxuserbrest

  • Multiple posting newcomer
  • *
  • Posts: 22
mandriva 2007 svn wxGTK2.6.3 error
« on: November 09, 2006, 09:25:50 am »
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

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: mandriva 2007 svn wxGTK2.6.3 error
« Reply #1 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.

Please file a bug (http://developer.berlios.de/bugs/?group_id=5358), so it won't get lost :)
Nightly builds for openSUSE

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: mandriva 2007 svn wxGTK2.6.3 error
« Reply #2 on: November 09, 2006, 01:47:36 pm »
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 :-)

Offline wxuserbrest

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: mandriva 2007 svn wxGTK2.6.3 error
« Reply #3 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

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: mandriva 2007 svn wxGTK2.6.3 error
« Reply #4 on: November 09, 2006, 02:47:25 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 ?
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
Code
set_env("LANG", "en_US");
to
Code
set_env("LANG", "C");
It's line 108 in src/build_tools/autorevision/autorevision.cpp
« Last Edit: November 09, 2006, 02:56:41 pm by daniel2000 »
Nightly builds for openSUSE

Offline wxuserbrest

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: mandriva 2007 svn wxGTK2.6.3 error
« Reply #5 on: November 09, 2006, 03:48:12 pm »
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