certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Problem building CERTI on Mac OS X


From: Eric Noulard
Subject: Re: [certi-dev] Problem building CERTI on Mac OS X
Date: Tue, 26 Apr 2011 08:22:40 +0200

2011/4/26 Mark Brown <address@hidden>:
> Greetings,
>
> I'm having trouble building CERTI on a PowerMac G5.
>
> gcc --version returns:
> powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>
> The problem occurs at the link stage:
>
> [ 76%] Built target rtia
> Linking CXX shared library libFedTimed.dylib
> Undefined symbols:
>  "typeinfo for RTI::Exception", referenced from:
>      typeinfo for RTI::MemoryExhaustedin RTIfedTime.o
>      typeinfo for RTI::InvalidFederationTimein RTIfedTime.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [libRTI/libFedTimed.1.0.0.dylib] Error 1
> make[1]: *** [libRTI/CMakeFiles/FedTime.dir/all] Error 2
> make: *** [all] Error 2
>
> Any ideas?

Hi Mark,

Yes may be,  I'm afraid I do...
This is the libRTI-->libFedTime-->libRTI circular reference hitting again.

See the bunch of reference here:
https://savannah.nongnu.org/bugs/?30003

May be the default behavior of gcc on the Mac is to set visibilty to
hidden, does it?
see: http://gcc.gnu.org/wiki/Visibility

I am trying to reproduce the issue on Linux using gcc -fvisibility=hidden.
On your side may be you can try to add

-fvisibility=default into CFLAGS (or modify main CMakeLists.txt in the
GCC specific area).

Which version of CERTI are you trying to build?
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]