Bug #3366
Lasso doesn't compile
Début:
24 juillet 2013
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Planning:
Description
I try with lasso 2.3.6 and with the git version 6af73738f660661ce4c4a42e48f561306726d106 and I have the same problem.
gcc : 4.8.1-8 libxmlsec1 : 1.2.18-2 libxml2 : 2.9.1+dfsg1-2
$ make make all-recursive make[1]: Entering directory `/home/jschneider/temp/lasso-2.3.6' Making all in lasso make[2]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso' make all-recursive make[3]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso' Making all in xml make[4]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml' Making all in saml-2.0 make[5]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml/saml-2.0' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml/saml-2.0' Making all in soap-1.1 make[5]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml/soap-1.1' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml/soap-1.1' make[5]: Entering directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml' CC tools.lo tools.c: In function ‘lasso_node_build_deflated_query’: tools.c:1066:32: error: dereferencing pointer to incomplete type buffer = buf->conv ? buf->conv->content : buf->buffer->content; ^ tools.c:1066:55: error: dereferencing pointer to incomplete type buffer = buf->conv ? buf->conv->content : buf->buffer->content; ^ tools.c: In function ‘lasso_xmlnode_to_string’: tools.c:2159:32: error: dereferencing pointer to incomplete type buffer = buf->conv ? buf->conv->content : buf->buffer->content; ^ tools.c:2159:55: error: dereferencing pointer to incomplete type buffer = buf->conv ? buf->conv->content : buf->buffer->content; ^ make[5]: *** [tools.lo] Error 1 make[5]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso/xml' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jschneider/temp/lasso-2.3.6/lasso' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jschneider/temp/lasso-2.3.6' make: *** [all] Error 2
Historique
Mis à jour par Jérôme Schneider il y a presque 11 ans
- Sujet changé de Lasso doesn't compile with gcc 4.8 à Lasso doesn't compile
- Description mis à jour (diff)
Mis à jour par Benjamin Dauvergne il y a presque 11 ans
It looks like a public type has been made private.
Mis à jour par Benjamin Dauvergne il y a presque 11 ans
That's a known non-backward compatible change to libxml2 see https://mail.gnome.org/archives/xml/2012-August/msg00005.html for explanation and work-around.
Mis à jour par Frédéric Péters il y a plus de 10 ans
Patch réalisé côté Debian.
Mis à jour par Benjamin Dauvergne il y a plus de 10 ans
I merged the libxml2.9-compat branch, I forgot about it :) Thanks for reminding me it existed. But the changes from this branch does not seem as backward compatible as the solutions given on the libxml mailing list. The output_buffer function should contain and macro test to choose between the old and new handling of output buffers.