« Return to Thread: Cannot make iometer on RHEL4 U3

Re: Cannot make iometer on RHEL4 U3

by Sudhanshu Goswami :: Rate this Message:

Reply to Author | View in Thread

I am sorry Ming, I didnt realize I hadn't mentioned that. I had
downloaded iometer-2004.07.30.common-src.tar.gz from your site and tried
to compile the source from this package.

Sudhanshu


Ming Zhang wrote:

>at least you should tell us which version of iometer you are trying to
>build.
>
>Ming
>
>On Wed, 2006-10-04 at 13:06 +0530, Sudhanshu Goswami wrote:
>  
>
>>Hi,
>>          I was trying to build iometer from sources on a RHEL4 machine
>>using Makefile-Linux.i386 on a AMD Opteron machine. The compile gave a
>>list of errors like these:
>>
>>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:87,
>>                 from Pulsar.cpp:110:
>>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 ""
>>....
>>....
>>....
>>-------------------------------------------------------------------------------------------------------
>>
>>
>>
>>I preprocessed the IOCQ.h file using g++ and this is what I got for the
>>class CQ defined in IOCQ.h:
>>
>>class CQ
>>{
>>public:
>> virtual ReturnVal GetStatus( int *bytes, int *data, int delay ) = __null;
>>};
>>
>>
>>As you can see the preprocessing converts the NULL macro in the
>>definition to __null which is not really what g++ expects for defining a
>>virtual method. It expects a 0. If this issue is known, is there a
>>workaround?
>>
>>Thanks,
>>Sudhanshu
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>opinions on IT & business topics through brief surveys -- and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Iometer-devel mailing list
>>Iometer-devel@...
>>https://lists.sourceforge.net/lists/listinfo/iometer-devel
>>    
>>
>
>
>  
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Iometer-devel mailing list
Iometer-devel@...
https://lists.sourceforge.net/lists/listinfo/iometer-devel

 « Return to Thread: Cannot make iometer on RHEL4 U3