Package: pasmo
Version: 0.5.1-3
Severity: normal
Tags: patch
When building 'pasmo' on amd64/unstable with gcc-4.0,
I get the following error:
asm.cpp:1183: error: within this context
asm.cpp:1101: error: 'std::string Asm::In::genlocalname()' is private
asm.cpp:1185: error: within this context
asm.cpp:1076: error: 'int Asm::In::pass' is private
asm.cpp:1188: error: within this context
asm.cpp:1081: error: '<unnamed>::mapvar_t Asm::In::mapvar' is private
asm.cpp:1190: error: within this context
asm.cpp:1081: error: '<unnamed>::mapvar_t Asm::In::mapvar' is private
asm.cpp:1194: error: within this context
asm.cpp:1081: error: '<unnamed>::mapvar_t Asm::In::mapvar' is private
asm.cpp:1194: error: within this context
asm.cpp: In member function 'void Asm::In::finishautolocal()':
asm.cpp:2252: error: 'LocalLevel' was not declared in this scope
asm.cpp:2252: error: 'plevel' was not declared in this scope
asm.cpp: In member function 'void Asm::In::parseLOCAL(Tokenizer&)':
asm.cpp:2681: error: 'LocalLevel' was not declared in this scope
asm.cpp:2681: error: 'plocal' was not declared in this scope
make[1]: *** [asm.o] Error 1
make[1]: Leaving directory `/pasmo-0.5.1'
make: *** [build-stamp] Error 2
With the attached patch 'pasmo' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/pasmo-0.5.1/asm.cpp ./asm.cpp
--- ../tmp-orig/pasmo-0.5.1/asm.cpp 2004-12-21 14:13:12.000000000 +0100
+++ ./asm.cpp 2005-04-09 13:58:13.372574793 +0200
@@ -696,7 +696,7 @@
//*********************************************************
-namespace {
+//namespace {
enum Defined {
@@ -791,7 +791,7 @@
st_t st;
};
-} // namespace
+//} // namespace
//*********************************************************
@@ -1073,13 +1073,14 @@
address maxused;
address entrypoint;
bool hasentrypoint;
+public:
int pass;
size_t iflevel;
// ********** Symbol tables ************
mapvar_t mapvar;
-
+private:
typedef std::set <std::string> setpublic_t;
setpublic_t setpublic;
@@ -1098,12 +1099,12 @@
size_t localcount;
void initlocal () { localcount= 0; }
+public:
std::string genlocalname ()
{
return hex8str (localcount++);
}
-
-
+private:
LocalStack localstack;
bool isautolocalname (const std::string & name);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]