[tin-bugs] Cross-compilation of tin

uis uis9936 at gmail.com
Thu Feb 2 20:36:59 CET 2023


While trying to cross-compile tin using crossdev on Gentoo, it failed to do
because makecfg.c includes tin.h which includes gsasl.h. Usually it is not
unexpected to do so, given the fact that sasl USE-flag was set, but it was
compiling tool for CBUILD. So gsasl was required on build system, which is
very wierd.
Insted of simply installing tin into build system, I looked at source and
found that only thing needed from tin.h is FreeIfNeeded macro. And this
macro is free with condition of pointer being non-null. This macro doesn't
have different bahaviour compared to simple free(), if you look man 3 free,
it says "If ptr is NULL, no operation is performed".
I changed includes and code and now it should work. Patch attached
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tin.org/pipermail/tin-bugs/attachments/20230202/5cc4fa89/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makecfg.c.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.tin.org/pipermail/tin-bugs/attachments/20230202/5cc4fa89/attachment.bin>


More information about the tin-bugs mailing list