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: Mark Brown
Subject: Re: [certi-dev] Problem building CERTI on Mac OS X
Date: Wed, 27 Apr 2011 08:52:56 +0900
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

Thanks for investigating Eric.

I tried the "-undefined suppress" and the linker complains:
ld: can't use -undefined warning or suppress with -twolevel_namespace

I then tried with the "-flat_namespace -undefined suppress" flags. That seems to fix the original problem (insofar that it now links, at least)!

However, it then fails linking the test program:

Scanning dependencies of target CertiProcessus_A
[ 98%] Building CXX object test/utility/CMakeFiles/CertiProcessus_A.dir/Main_SocketSHM.o
Linking CXX executable CertiProcessus_A
ld: library not found for -lrt
collect2: ld returned 1 exit status
make[2]: *** [test/utility/CertiProcessus_A] Error 1
make[1]: *** [test/utility/CMakeFiles/CertiProcessus_A.dir/all] Error 2
make: *** [all] Error 2




On 4/26/11 8:58 PM, Eric Noulard wrote:
2011/4/26 Eric Noulard<address@hidden>:

Mark could you try to compile with
LDFLAGS appended with "-undefined suppress"
or "-undefined warning"

I suspect MacOS ld has a different default behavior than linux ld.
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/ld.1.html#//apple_ref/doc/man/1/ld

off course even if it works this is not a *real* solution just a "quick fix".

We will have to deal with those unresolved symbol for good, may be we
should create
a static library which contains the exception definition and link
libRTI and libFedTime
using this static lib.

keep us posted if you find a solution on MacOS.





reply via email to

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