Author Topic: Ubuntu Breezy won't compile revision.h  (Read 3047 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Ubuntu Breezy won't compile revision.h
« on: December 14, 2006, 11:12:35 pm »
I can nolonger compile CodeBlocks under Ubuntu Breezy.

LANG was set to en_US.UTF-8.
I tried (after the error) to set it to en_US, but GTK gave a bunch of errors and set it to C.

But autorevision.h still wouldnt compile. Is there any way to turn off autorevision so I dont have to deal with this right now?

I verified that svn 1.2 is on the path (/usr/bin)
I can't figure why this is happening.

EDIT: I did a new checkout. It still gets the problem.
This problem once cost me 6 hours on OSX and now it's bitten me on Ubuntu.
I'd love to turn this problem off for good.
Couldn't we make this into a plugin that could be disabled?

EDIT: found a forum msg for Suse that used "C" instead of "en_US" for LANG at autorevision.cpp:line108. CB is compiling again, but it'll take another 4 hrs to make sure.
My Linux system is on an old 300mhz laptop.

Is there anyway that we could get an option to enable/disable autorevision so that we could at least keep trunkin' when this sort of thing happens again?

Code
/*encoding="utf-8"?>*/
#ifndef AUTOREVISION_H
#define AUTOREVISION_H


#include <wx/string.h>

#define SVN_REVISION "encoding="utf-8"?>"

#define SVN_DATE     "<entry"

namespace autorevision
{
const unsigned int svn_revision = encoding="utf-8"?>;
const wxString svnRevision(_T("encoding="utf-8"?>"));
}



#endif
Code
:: === Code::Blocks - Unix, sdk ===
sdk/autorevision.h:14: error: 'encoding' was not declared in this scope
sdk/autorevision.h:14: error: expected primary-expression before '>' token
sdk/autorevision.h:14: error: expected primary-expression before ';' token
sdk/autorevision.h:14: error: expected `:' before ';' token
sdk/autorevision.h:14: error: expected primary-expression before ';' token
sdk/autorevision.h:15: error: expected `)' before 'utf'
sdk/configmanager-revision.cpp:17: error: expected primary-expression before '(' token
sdk/configmanager-revision.cpp:17: error: expected `)' before 'utf'
:: === Build finished: 8 errors, 0 warnings ===
« Last Edit: December 15, 2006, 01:15:10 am by Pecan »

sethjackson

  • Guest
Re: Ubuntu Breezy won't compile revision.h
« Reply #1 on: December 15, 2006, 01:15:02 am »
Comment out the set_env() line in autorevision.cpp. That is what I did on FreeBSD. :)

Code
//set_env("LANG", "en_US");