From: Everton L. B. <ev...@fa...> - 2004-02-16 13:58:19
|
Hi, sorry for my delay, I was on holiday. I tried to change the header of parsexml.c and the errors persists.. In file included from parsexml.c:21: /usr/include/stdlib.h:137: syntax error before "__ctype_get_mb_cur_max" In file included from /usr/include/sys/types.h:133, from /usr/include/stdlib.h:414, from parsexml.c:21: /usr/include/linux/time.h:10: syntax error before "time_t" /usr/include/linux/time.h:12: syntax error before '}' token /usr/include/linux/time.h:89: syntax error before "time_t" /usr/include/linux/time.h:120: field `it_interval' has incomplete type /usr/include/linux/time.h:121: field `it_value' has incomplete type /usr/include/linux/time.h:122: 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# Begin of my libsrc/parsexml.c file: #include <stdlib.h> #include <stdio.h> #include <string.h> #include <libxml/xmlversion.h> #include <libxml/xmlmemory.h> #include <libxml/xinclude.h> #include "rlib.h" ... Bob Doan wrote: > 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 ? >> > > > -- Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 - R.647 ICQ 7807919 |