From: Bob D. <bd...@si...> - 2004-01-27 13:57:59
|
In the c files maybe you could try putting stdlib.h before stdio.h.. I think that might be the problem.. so.... in parsexml.c @ the top is: #include <stdio.h> #include <string.h> #include <stdlib.h> Change it to: #include <stdlib.h> #include <stdio.h> #include <string.h> Repeat as necessary.. let me know if that works.. - Bob On Fri, 2004-01-23 at 15:44, Everton Luis Berz wrote: > I tried to compile rlib 1.1.7 on my slackware box > and follow errors occurs: > > root@nsa3:/usr/local/src/rlib-1.1.7# make > Making all in libsrc > make[1]: Entering directory `/usr/local/src/rlib-1.1.7/libsrc' > source='parsexml.c' object='parsexml.lo' libtool=yes \ > depfile='.deps/parsexml.Plo' tmpdepfile='.deps/parsexml.TPlo' \ > depmode=gcc3 /bin/sh ../depcomp \ > /bin/sh ../libtool --mode=compile gcc -DPACKAGE_NAME=\"\" > -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" > -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rlib\" -DVERSION=\"1.1.7\" > -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRE=1 -DHAVE_PHP=1 > -DHAVE_JAVA=1 -DHAVE_ICONV_H=1 -DHAVE_ICONV_OPEN=1 > -DICONV_CONST_CHAR_PP=0 -DICONV_ISO=ISO8859-1 -DSTDC_HEADERS=1 > -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CPDFLIB_H=1 -DHAVE_LIBCPDF=1 > -DENABLE_CRASH=1 -I. -I. -I/usr/include/libxml2 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I'/usr/include/mysql' -I /usr/local/pgsql/include -I/usr/include/php > -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM > -I/usr/include -I/usr/include/linux -Wall -Werror -g -O2 -c -o > parsexml.lo `test -f 'parsexml.c' || echo './'`parsexml.c > mkdir .libs > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"rlib\" > -DVERSION=\"1.1.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 > -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBC=1 > -DHAVE_LIBM=1 -DHAVE_MYSQL=1 -DHAVE_POSTGRE=1 -DHAVE_PHP=1 -DHAVE_JAVA=1 > -DHAVE_ICONV_H=1 -DHAVE_ICONV_OPEN=1 -DICONV_CONST_CHAR_PP=0 > -DICONV_ISO=ISO8859-1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 > -DHAVE_UNISTD_H=1 -DHAVE_CPDFLIB_H=1 -DHAVE_LIBCPDF=1 -DENABLE_CRASH=1 > -I. -I. -I/usr/include/libxml2 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/mysql -I > /usr/local/pgsql/include -I/usr/include/php -I/usr/include/php/main > -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include > -I/usr/include/linux -Wall -Werror -g -O2 -c parsexml.c -MT parsexml.lo > -MD -MP -MF .deps/parsexml.TPlo -fPIC -DPIC -o .libs/parsexml.o > In file included from /usr/include/_G_config.h:44, > from /usr/include/libio.h:32, > from > /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:81, > from parsexml.c:21: > /usr/include/gconv.h:72: syntax error before "size_t" > /usr/include/gconv.h:88: syntax error before "size_t" > /usr/include/gconv.h:97: syntax error before "size_t" > /usr/include/gconv.h:174: syntax error before "size_t" > /usr/include/gconv.h:177: syntax error before '}' token > In file included from /usr/include/libio.h:32, > from > /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:81, > from parsexml.c:21: > /usr/include/_G_config.h:47: field `__cd' has incomplete type > /usr/include/_G_config.h:50: field `__cd' has incomplete type > /usr/include/_G_config.h:52: confused by earlier errors, bailing out > make[1]: ** [parsexml.lo] Erro 1 > make[1]: Leaving directory `/usr/local/src/rlib-1.1.7/libsrc' > make: ** [all-recursive] Erro 1 > root@nsa3:/usr/local/src/rlib-1.1.7# > > > > I'm using libxml2-2.6.4, I compile libxml without additional > parameters on './configure'. I think that I forget a parameter, > how to configure libxml2-2.6 for rlib1.1.7 ? > |