Re: [xml] configure/compile problem w/o schemas/xpath



Coincidentally enough, I also found this out yesterday.

It looks to me like the xmlreader.c file isn't finished. I started working
on adding the required #ifdef support, but it was a big job and I haven't
got time to do it right now.

If I find time I'll submit a patch to the mailing list.

I'm pretty sure you have configured correctly (at least as far as disabling
schema support is concerned), but you've just encountered some unfinished
work.

Gary

On Thu, May 08, 2003 at 07:28:30AM +0200, Joerg Schmitz-Linneweber wrote:
Hello all!

I need a *very* small footprint libxml2. So I tried to configure libxml2 via 
the following:
--- snip --------------------------------------------
PATH="$UCLIBC_USR/bin":$PATH \
CFLAGS="-march=i486 -L$UCLIBC_ROOT/lib -I$UCLIBC_ROOT/include 
-DNO_LARGEFILE_SOURCE" \
CPPFLAGS="-I$UCLIBC_USR/include -DNO_LARGEFILE_SOURCE" \
LDFLAGS="-L$UCLIBC_USR/lib" \
./configure \
        --prefix=/usr/i386-linux-uclibc-0.9.19/usr \
        --host=i486-linux \
        --target=i486-linux \
        --build=i386-pc-linux-gnu \
        --with-zlib=/usr/i386-linux-uclibc-0.9.19/usr \
        --disable-nsl \
        --without-python \
        --without-readline \
        --without-history \
        --without-ftp \
        --without-http \
        --without-html \
        --without-catalog \
        --without-docbook \
        --without-xptr \
        --without-c14n \
        --without-xinclude \
        --without-iconv \
        --without-regexps \
        --without-debug \
        --enable-shared=no \
        --without-schemas
--- snap --------------------------------------------

If I leave out "--without-schemas" everythings compiles fine, but with schemas 
disabled I get:
--- snip --------------------------------------------
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include 
-I./include  -D_REENTRANT -I/usr/i386-linux-uclibc-0.9.19/usr/include   
-I/usr/i386-linux-uclibc-0.9.19/usr/include -DNO_LARGEFILE_SOURCE  
-march=i486 -L/usr/i386-linux-uclibc-0.9.19/lib 
-I/usr/i386-linux-uclibc-0.9.19/include -DNO_LARGEFILE_SOURCE -Wall -c 
xmlreader.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT 
-I/usr/i386-linux-uclibc-0.9.19/usr/include 
-I/usr/i386-linux-uclibc-0.9.19/usr/include -DNO_LARGEFILE_SOURCE -march=i486 
-L/usr/i386-linux-uclibc-0.9.19/lib -I/usr/i386-linux-uclibc-0.9.19/include 
-DNO_LARGEFILE_SOURCE -Wall -c xmlreader.c -o xmlreader.o
xmlreader.c: In function `xmlFreeTextReader':
xmlreader.c:1211: structure has no member named `rngSchemas'
xmlreader.c:1212: structure has no member named `rngSchemas'
xmlreader.c:1213: structure has no member named `rngSchemas'
...
xmlreader.c:2588: structure has no member named `rngValidErrors'
xmlreader.c:2589: structure has no member named `rngFullNode'
xmlreader.c: At top level:
xmlreader.c:435: warning: `xmlTextReaderValidatePush' defined but not used
xmlreader.c:497: warning: `xmlTextReaderValidateCData' defined but not used
xmlreader.c:2866: warning: `xmlBase64Decode' defined but not used
make[2]: *** [xmlreader.lo] Fehler 1
--- snap --------------------------------------------

The same holds true if I disable xpath :-(

Can someone shade some light on this "dark-configure-magic" :)

BTW: I'm trying with libxml2-2.5.7

TIA. Salut, Joerg

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml

-- 
Gary Pennington
Solaris Kernel Development,
Sun Microsystems
Gary Pennington sun com



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