Re: [reSIProcate-users] Linker errors when building library
Andrew Wood wrote:
Im on Linux 2.6 - 2.6.24-21-generic
GCC version 3.3.6
Resiprocate 1.3.4 not been modified in any way
Im not using SSL.
It appears that you've hit a known bug with the 1.3.x tree that arises
when you build without SSL support. This is fixed in the newer stack
versions. (Newer versions also fix certain security holes, so you're
probably better off using a 1.4 library anyway).
In any case, if you have some strong reason for using 1.3.4, you can
apply the attached patch (a modified backport from SVN head), which
should get you over this hump.
Apply at the top of your resip-1.3.4 tree with:
patch -p1 < no-ssl-fix.patch
/a
--- resiprocate-1.3.4/resip/stack/test/testSMIME.cxx 2008-11-29
19:14:13.000000000 -0600
+++ resip/resip/stack/test/testSMIME.cxx 2008-11-29 19:15:05.000000000
-0600
@@ -1,12 +1,9 @@
#include "resip/stack/MultipartSignedContents.hxx"
#include "resip/stack/Pkcs7Contents.hxx"
#include "resip/stack/PlainContents.hxx"
-#include "resip/stack/Security.hxx"
-
-#include "rutil/Log.hxx"
-
-#include <fstream>
+#ifdef USE_SSL
+#include "resip/stack/Security.hxx"
using resip::BaseSecurity;
using resip::Contents;
using resip::Data;
@@ -18,9 +15,16 @@
using resip::Security;
using resip::SignatureStatus;
using resip::h_ContentTransferEncoding;
+#endif
+
+#include "rutil/Log.hxx"
+
+#include <fstream>
+
int main(int argc, char* argv[])
{
+#if defined(USE_SSL)
Log::initialize(Log::Cout, Log::Info, argv[0]);
if(argc != 4)
@@ -140,4 +144,9 @@
}
return 0;
-}
\ No newline at end of file
+#else
+// No SSL
+ std::cout << "Compiled without SSL support -- S/MIME Cannot be tested" <<
std::endl;
+ return -1;
+#endif
+}