aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule CVS 20040714 compile error on MDK 10.1  (Read 3438 times)

SirDodger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
amule CVS 20040714 compile error on MDK 10.1
« on: July 14, 2004, 11:03:55 AM »

Hi,

here is the Errormsg,
im using the wxZZZ Packages from your Site (2.4) and also the crypto rpms from your site.

configure worked without error, using no switches.

Ill try your CVS Code and post Issues regarding to MDK often, cause no other MDK users really try these things. Hope i can help, maybe even some coding, C/C++ is not a problem.

if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__   -MT wxcas-wxcas.o -MD -MP -MF ".deps/wxcas-wxcas.Tpo" \
  -c -o wxcas-wxcas.o `test -f 'wxcas.cpp' || echo './'`wxcas.cpp; \
then mv -f ".deps/wxcas-wxcas.Tpo" ".deps/wxcas-wxcas.Po"; \
else rm -f ".deps/wxcas-wxcas.Tpo"; exit 1; \
fi
wxcas.cpp:47:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from /usr/include/wx/gdicmn.h:29,
                 from /usr/include/wx/image.h:20,
                 from wxcas.cpp:50:
/usr/include/wx/font.h:82: error: expected class-name before '{' token
/usr/include/wx/font.h: In member function `bool wxFontBase::Ok() const':
/usr/include/wx/font.h:104: error: `m_refData' undeclared (first use this function)
/usr/include/wx/font.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/wx/font.h: In member function `wxFontRefData* wxFontBase::GetFontData() const':
/usr/include/wx/font.h:156: error: `m_refData' undeclared (first use this function)
In file included from wxcas.h:49,
                 from wxcas.cpp:53:
wxcasframe.h: At global scope:
wxcasframe.h:63: error: invalid use of undefined type `struct wxFrame'
/usr/include/wx/log.h:28: error: forward declaration of `struct wxFrame'
wxcasframe.h:65: error: ISO C++ forbids declaration of `wxToolBar' with no type
wxcasframe.h:65: error: expected `;' before '*' token
wxcasframe.h:66: error: field `m_toolBarBitmaps' has incomplete type
wxcasframe.h:68: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:68: error: expected `;' before '*' token
wxcasframe.h:69: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:69: error: expected `;' before '*' token
wxcasframe.h:70: error: ISO C++ forbids declaration of `wxBoxSizer' with no type
wxcasframe.h:70: error: expected `;' before '*' token
wxcasframe.h:72: error: ISO C++ forbids declaration of `wxPanel' with no type
wxcasframe.h:72: error: expected `;' before '*' token
wxcasframe.h:74: error: ISO C++ forbids declaration of `wxStaticLine' with no type
wxcasframe.h:74: error: expected `;' before '*' token
wxcasframe.h:76: error: ISO C++ forbids declaration of `wxStaticBox' with no type
wxcasframe.h:76: error: expected `;' before '*' token
wxcasframe.h:77: error: ISO C++ forbids declaration of `wxStaticBoxSizer' with no type
wxcasframe.h:77: error: expected `;' before '*' token
wxcasframe.h:79: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:79: error: expected `;' before '*' token
wxcasframe.h:80: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:80: error: expected `;' before '*' token
wxcasframe.h:81: error: ISO C++ forbids declaration of `wxStaticText' with no type
wxcasframe.h:81: error: expected `;' before '*' token
wxcasframe.h:82: error: ISO C++ forbids declaration of `wxStaticText' wit
Logged

SirDodger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
RE: amule CVS 20040714 compile error on MDK 10.1
« Reply #1 on: July 14, 2004, 11:04:37 AM »

forgot something , im using gcc3.4.1 maybe too new for you ?
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #2 on: July 14, 2004, 11:13:23 AM »

I think it's not compiling on gcc 3.4 :-(
compile with 3.3.3 or 3.3.4 if possible.
Greetings!
Logged

SirDodger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #3 on: July 14, 2004, 11:22:31 AM »

Should only be some Typos , nothing much to fix or am i wrong ?

especially when im looking at this line:

wxcas.cpp:47:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.

Hm, future gcc versions is something you should care about , because they wont change anything there for the amule team, or am i wrong ? gcc 3.4 will become standard, like any other gcc versions to be released as stable.

regards
Dodger
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #4 on: July 14, 2004, 11:50:07 AM »

well, they will indeed change, since it's bugs they have ;-)
Anyway a walkaround will be made on code to avoid this gcc bug, for sure.
Logged

SirDodger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #5 on: July 14, 2004, 11:58:48 AM »

sounds good to me ... :-)

i will bug you with more gcc 3.4 things, only good for the whole project :-))

Is it possible to get cvs access or view something like a internal changelog ? im compiling amule cvs nearly on a daily basis... so would be nice to see if things have changed!
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #6 on: July 14, 2004, 12:10:50 PM »

no, sorry, not able. just join #amule at irc.freenode.net and ask :-)
C'ya there. Greetings!
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #7 on: July 14, 2004, 12:43:38 PM »

Hello,

I m using Mdk 9.2 and 10.0, so tests are made quite every day on CVS with them.

No problem with those distro. CVS compile like a charm. And 10.0 use gcc 3.3.2.

Btw, there is NO version 10.1 !!! Last version is: "Mandrakelinux 10.0 Official ISO images for i586 and higher". And we will not support Cooker or other developpment distros immediatly, let us some more time ;)

We will fix gcc 3.4 issue as soon as possible, but concentate our efforts on bugs with official distros.

Regarding the line: wxcas.cpp:47:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.

wxCas use wx printing support to be able to print the statistic image directly, so wx must be compiled with its printing support, wich is normaly the default. This condition exist since quite the begining of wxCas, so that is NOT normal having this error just now...

The polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #8 on: July 14, 2004, 12:56:21 PM »

You're free to kill efe :P


efe, he's willing to help and lots of us use development distros (sid!). So let him help on #amule :) it's nice to support NEW things.
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #9 on: July 14, 2004, 01:08:43 PM »

Kry,

An other dev is different ;) and always welcome :D

Just said i havent the time to test all mdk distros, and cooker too !

But if someone want to do it, go ahead !

The polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

SirDodger

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: amule CVS 20040714 compile error on MDK 10.1
« Reply #10 on: July 14, 2004, 01:23:57 PM »

im always near cooker edge ..... never more than 2 weeks behind ;-))
Logged