Hello all! I was trying to build frysk in my new Fedora 8 box and got this: g++ -m64 -mminimal-toc -g -I. -c -o frysk2760/barriertest.o ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:64: error: âfrysk2760â has not been declared ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx: In function âjint doFork()â: ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:66: error: âpidâ was not declared in this scope ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx: At global scope: ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:82: error: âfrysk2760â has not been declared ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx: In function âvoid timerThread()â: ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:85: error: âpidâ was not declared in this scope ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx: At global scope: ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:99: error: âfrysk2760â has not been declared ../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:105: error: âfrysk2760â has not been declared make[4]: *** [frysk2760/barriertest] Error 1 Any clues? Thanks and regards, -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center
Hi Carlos,
On Wed, 2008-03-26 at 22:09 -0300, Carlos Eduardo Seo wrote:
> Hello all!
>
> I was trying to build frysk in my new Fedora 8 box and got this:
>
> g++ -m64 -mminimal-toc -g -I. -c -o frysk2760/barriertest.o
> .../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx
> .../../../frysk/frysk-imports/tests/frysk2760/TestBarrier.cxx:64: error:
> ‘frysk2760’ has not been declared
> [...]
> Any clues?
Looks like TestBarrier.h wasn't generated correctly.
It should be in your build dir
frysk-obj/frysk-imports/tests/frysk2760/TestBarrier.h
It should declare the namespace:
extern "Java"
{
namespace frysk2760
{
class TestBarrier;
class TestBarrier$BarrierThread;
class TestBarrier$ForkThread;
class TestBarrier$GCThread;
}
}
If it doesn't then you would get the error you are seeing. I don't know
why that would happen though.
Cheers,
Mark
[-- Attachment #1: Type: text/plain, Size: 333 bytes --] On Thu, Mar 27, 2008 at 11:23:54AM +0100, Mark Wielaard wrote: > If it doesn't then you would get the error you are seeing. I don't know > why that would happen though. Error similar to this one used to happen for me routinely when I did a rebuild after rebase without first wiping the build directory. Could that be the case? PM [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]