Re: [nft PATCHv2 0/4] support for mini-gmp / embedded friendliness

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

 




On 07.01.2015 13:22, Pablo Neira Ayuso wrote:

I think you mentioned to me already but

  configure: error: --with-mini-gmp MUST be used with --disable-debug

any reason to enforce this?

The problem here is that pr_debug expands to gmp_printf which is not part of mini-gmp and the little replacement mpz_printf I added only allows for formatting a single mpz_t (which is enough for all the non-debug cases).

So there are 3 options basically.
1. Try to make gmp_printf standalone and port it from libgmp to mini-gmp.
This looked like a huge and complicated effort and would likely blow up stuff considerably again. 2. Replace pr_debug's gmp_printf with regular printf and rewrite all the debug-calls to mpz_get_str()
    and free() which sounds painful.
3. Simply disabling debugging with mini-gmp.
    Easy way out without obstructing things too much otherwise.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux