After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705267 - Compilation failed with "./configure --with-minimum"
Compilation failed with "./configure --with-minimum"
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-01 08:33 UTC by Guillaume Bour
Modified: 2013-08-03 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add additional defines checks (20.41 KB, patch)
2013-08-03 11:27 UTC, Denis Pauk
none Details | Review

Description Guillaume Bour 2013-08-01 08:33:21 UTC
Tried with both git trunk and libxml2-2.9.1.tar.gz versions.

When I want to  build a minimum-size library with '--minimum' configure options,
libxml2 build fail:

$> ./configure --with-minimum
...
$> make

make  all-recursive
make[1]: entrant dans le répertoire « /home/gbour/PERSO/libxml2 »
Making all in include
make[2]: entrant dans le répertoire « /home/gbour/PERSO/libxml2/include »
Making all in libxml
make[3]: entrant dans le répertoire « /home/gbour/PERSO/libxml2/include/libxml »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « /home/gbour/PERSO/libxml2/include/libxml »
make[3]: entrant dans le répertoire « /home/gbour/PERSO/libxml2/include »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/gbour/PERSO/libxml2/include »
make[2]: quittant le répertoire « /home/gbour/PERSO/libxml2/include »
Making all in .
make[2]: entrant dans le répertoire « /home/gbour/PERSO/libxml2 »
  CC       encoding.lo
encoding.c: In function ‘xmlCharEncOutput’:
encoding.c:2417:36: error: dereferencing pointer to incomplete type
encoding.c:2418:16: error: dereferencing pointer to incomplete type
encoding.c:2418:44: error: dereferencing pointer to incomplete type
encoding.c:2420:17: error: dereferencing pointer to incomplete type
encoding.c:2421:16: error: dereferencing pointer to incomplete type
encoding.c:2435:19: error: dereferencing pointer to incomplete type
encoding.c:2436:25: error: dereferencing pointer to incomplete type
encoding.c:2479:15: error: dereferencing pointer to incomplete type
encoding.c:2480:21: error: dereferencing pointer to incomplete type
encoding.c:2532:5: error: invalid use of undefined type ‘struct _xmlOutputBuffer’
make[2]: *** [encoding.lo] Erreur 1
Comment 1 Denis Pauk 2013-08-03 11:27:30 UTC
Created attachment 250763 [details] [review]
Add additional defines checks

Only code place move and add 'ifdef' statements, without any code changes.
Comment 2 Daniel Veillard 2013-08-03 14:13:19 UTC
Thanks Denis for the patch, makes senses !
Pushed to git as commit e28c8a1acef3047cceae1035924edae5e903a778

  thanks Guillaume for raising the issue !

Daniel
Comment 3 Guillaume Bour 2013-08-03 19:55:07 UTC
\o/ it works !

thank you both for having fixed it so fast