SV: [sldev] Re: CMake 2.4.8 vs 2.6 (Re: Missing cares, apr inMac build)

Bill Hoffman bill.hoffman at kitware.com
Sun Jul 27 08:21:24 PDT 2008


Carsten Juttner wrote:
> I have attached all 3 versions, first 2.4.8, then 2.6.1-p13 without the 
> patch from my previous mail and finally 2.6.1-p13 with that patch for 
> the CMakeLists.
> 
> As you can see, 2.4.8 used -llcommon while 2.6.1-p13 uses 
> ../llcommon/libllcommon.a
> 
That is not the problem.    The problem is that the order of the 
libraries has changed from 2.4.8.

2.4.8 has this:
-lexpat -Wl,-Bstatic -lllmessage -Wl,-Bdynamic -lcurl


2.6.1 has this:
  -lcurl /usr/local/lib/libcares.a -lssl -lcrypto 
/usr/local/lib/libxmlrpc-epi.so -laprutil-1 -lapr-1 -lexpat -lcurl 
/usr/local/lib/libcares.a -lssl -lcrypto /usr/local/lib/libxmlrpc-epi.so 
-laprutil-1 -lapr-1 ../llmessage/libllmessage.a


Curl has to come after llmessage.a for a static link to work.

So, the patch should most likely make sure that llmessage links to curl.

target_link_libraries(llmessage curl) should fix the problem.  However, 
I will have to figure out why this was working for 2.4.8....  :(


-Bill


More information about the SLDev mailing list