-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor building issues on debian testing #180
Comments
Oh, just FYI, on another debian testing box, where I "accidently" had installed libpolarssl-dev, I ran into another issue (with clang 3.5.2, not relevant for me though):
x509_crt is the easy part. I'm not familiar with PolarSSL, but from 1.2 to 1.3 they have restructured the RSA module, from rsa_context *ctx to pk_context *ctx. So my quick fix changing "public_key = &certificate->rsa" to "public_key = &certificate->pk" compiled, but CCLD fails.
this needs more investigation if mbedTLS 1.3 has to work. |
(1) AS_IF is provided by autoconf itself. autoconf-2.69-6 on my system defines it in /usr/share/autoconf/m4sugar/m4sh.m4. same goes for all the other AC/AS macros you describe. tlsdate must not mess around with m4_pattern_allow here. (2) if you want to build tlsdate from git and/or run autotools, you must install the relevant dev packages. that includes pkg-config which provides pkg.m4. not a bug in tlsdate. (3) tlsdate probably could use some symbol checks. OpenSSL is not friendly when it comes to disabling crypto funcs as it basically breaks the ABI. (4) this isn't necessarily a bug. having a program call free() on all allocated buffers before calling exit() is both entirely pointless and a waste of CPU/resources. the kernel will automatically free all the memory when programs exits. (5) if you want to request polarssl support, please file a new issue. creating one bug report with a ton of unrelated issues only creates a mess. |
Hi,
I ran into a few issues compiling on debian testing.
1: configure.ac - AS_IF([test "x${OPT_POLARSSL}" != "xno"
in configure.ac, the AS_IF call checking for PolarSSL produces errors on autoreconf -i with autoconf 2.69-9.
I fixed that quick'n'dirty using
but I'm sure there are more solid solutions.
2: configure.ac - PKG_CHECK_MODULES([LIBEVENT])
when pkg-config is not installed, configure throws a syntax error. I fixed that adding
Is there a better solution for this?
3: SSLv3_client_method() was dropped in Debian's OpenSSL
I fixed that using the following diff:
4: tlsdated is not completely free()ing all allocated memory when exiting
With ASAN (gcc) enabled, LeakSanitizer reports memory leaks after tlsdated exists:
There seems to be the need for some garbage collection.
The text was updated successfully, but these errors were encountered: