From: Ming Z. <mi...@el...> - 2005-02-27 04:04:53
|
Hi folks, Pls find my patch to solve this problem from the attachment. Apply it on top of the current cvs code. I compiled it ok on fc2 linux i386 with gcc 3.3.3, fc3 linux i386 with gcc 3.4.2, fc3 linux x86_64 with gcc 3.4.2, windows xp home with ms vc6 To other port maintainer, pls test it. you might need to change your makefile. see how i did. To Daniel, pls consider to merge it if nobody here reports problem. the main issue is that a pure virtual function in gcc should be declared with "= 0" instead of "= NULL". they should be same right? i guess NULL is still undefined at this stage. ming On Thu, 2005-02-24 at 22:42, Marcio Augusto de Lima e Silva wrote: > Hi all, > > I'm trying to compile the post-2004-07-30 dynamo on a Fedora Core 3 > machine with the latest updates, and getting some errors. I will post > the (almost) entire output here, since I think its reasonably > small enough. Does anyone is getting anything like that ? I didn't saw > anything particulary strange at the Makefile-Linux.i386. > > g++ -O3 -Wall -D_GNU_SOURCE -DIOMTR_OSFAMILY_UNIX -DIOMTR_OS_LINUX > -DIOMTR_CPU_I386 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c Pulsar.cpp > In file included from IOTarget.h:81, > from IOGrunt.h:74, > from IOManager.h:92, > from Pulsar.cpp:117: > IOCQ.h:82: error: expected `0' before "" > IOCQ.h:82: error: invalid initializer for virtual method `virtual > ReturnVal CQ::GetStatus(int*, int*, int)' > IOCQ.h:82: error: expected `;' before "" > In file included from IOGrunt.h:74, > from IOManager.h:92, > from Pulsar.cpp:117: > IOTarget.h:90: error: expected `0' before "" > IOTarget.h:90: error: invalid initializer for virtual method `virtual > BOOL Target::Initialize(Target_Spec*, CQ*)' > IOTarget.h:90: error: expected `;' before "" > IOTarget.h:91: error: expected `0' before "" > IOTarget.h:91: error: invalid initializer for virtual method `virtual > BOOL Target::Open(volatile TestState*, int)' > IOTarget.h:91: error: expected `;' before "" > IOTarget.h:92: error: expected `0' before "" > IOTarget.h:92: error: invalid initializer for virtual method `virtual > BOOL Target::Close(volatile TestState*)' > ....... > > In file included from > /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/sstream:640, > from IOPort.h:74, > from IOManager.h:93, > from Pulsar.cpp:117: > /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc: In member function `virtual typename std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename _Traits::int_type)': > /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:102: error: expected unqualified-id before '(' token > /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:104: error: expected unqualified-id before '(' token > In file included from IOManager.h:93, > from Pulsar.cpp:117: > IOPort.h: At global scope: > IOPort.h:104: error: expected `0' before "" > IOPort.h:104: error: invalid initializer for virtual method `virtual > BOOL Port::Create(char*, char*, DWORD, short unsigned int)' > IOPort.h:104: error: expected `;' before "" > IOPort.h:106: error: expected `0' before "" > IOPort.h:106: error: invalid initializer for virtual method `virtual > BOOL Port::Connect(char*, short unsigned int)' > IOPort.h:106: error: expected `;' before "" > IOPort.h:107: error: expected `0' before "" > IOPort.h:107: error: invalid initializer for virtual method `virtual > BOOL Port::Accept()' > IOPort.h:107: error: expected `;' before "" > IOPort.h:108: error: expected `0' before "" > IOPort.h:108: error: invalid initializer for virtual method `virtual > BOOL Port::Disconnect()' > IOPort.h:108: error: expected `;' before "" > ..... > IOPort.h:121: error: invalid initializer for virtual method `virtual > DWORDLONG Port::GetReceiveResult()' > IOPort.h:121: error: expected `;' before "" > IOPort.h:122: error: expected `0' before "" > IOPort.h:122: error: invalid initializer for virtual method `virtual > DWORDLONG Port::GetSendResult()' > IOPort.h:122: error: expected `;' before "" > make: *** [Pulsar.o] Error 1 > > Any help appreciated. > > Regards, > > Marcio > > > ______________________________________________________________________ > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.2.0 - Release Date: 21/2/2005 |