Hi,
After ./configure
-ing libxslt (tried 1.0.31 and 1.0.30) with no apparent problem, I proceed to run
make.
While running
make I got screenloads of errors such like the following:
Code:
xslt.c:2268: initializer element is not constant
xslt.c:2268: warning: data definition has no type or storage class
xslt.c:2269: warning: type defaults to `int' in declaration of `xmlFree'
xslt.c:2269: warning: parameter names (without types) in function
declaration
xslt.c:2269: warning: data definition has no type or storage class
xslt.c:2270: parse error before '}' token
xslt.c:2275: warning: type defaults to `int' in declaration of `ret'
xslt.c:2275: redefinition of `ret'
xslt.c:2268: `ret' previously defined here
xslt.c:2275: warning: initialization makes integer from pointer without
a cast
xslt.c:2275: initializer element is not constant
xslt.c:2275: warning: data definition has no type or storage class
xslt.c:2276: parse error before '}' token
xslt.c:2280: warning: type defaults to `int' in declaration of
`xmlFreeURI'
xslt.c:2280: warning: parameter names (without types) in function
declaration
xslt.c:2280: warning: data definition has no type or storage class
xslt.c:2281: warning: type defaults to `int' in declaration of `xmlFree'
xslt.c:2281: warning: parameter names (without types) in function
declaration
xslt.c:2281: warning: data definition has no type or storage class
xslt.c:2282: parse error before '}' token
xsltInternals.h:286: storage size of `numdata' isn't known
xslt.c:800: warning: `xsltParseStylesheetDecimalFormat' defined but not
used
xslt.c:907: warning: `xsltParseStylesheetPreserveSpace' defined but not
used
xslt.c:1760: warning: `xsltParseStylesheetExtPrefix' defined but not
used
xslt.c:1024: warning: `xsltParseStylesheetStripSpace' defined but not
used
xslt.c:1541: warning: `xsltParseStylesheetKey' defined but not used
xslt.c:1848: warning: `xsltParseStylesheetTemplate' defined but not used
Output of ./configure are as follows:
Code:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking fp_class.h usability... no
checking fp_class.h presence... no
checking for fp_class.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking ansidecl.h usability... yes
checking ansidecl.h presence... yes
checking for ansidecl.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/stat.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stat... yes
checking for _stat... no
checking for isnan... yes
checking for isinf... yes
checking for pow... no
checking for pow in -lm... yes
checking for floor... no
checking for floor in -lm... yes
checking for fabs... no
checking for fabs in -lm... yes
checking for gettimeofday... yes
checking for mktime... yes
checking for localtime... yes
checking for asctime... yes
checking for time... yes
checking for gmtime... yes
checking for ftime... yes
checking for printf... yes
checking for sprintf... yes
checking for fprintf... yes
checking for snprintf... yes
checking for vfprintf... yes
checking for vsprintf... yes
checking for vsnprintf... yes
checking for sscanf... yes
checking for perl... perl
checking for python... /usr/bin/python
Found Python version 2.2
Found libxml2-python module
Enabling debugger
checking for libxml libraries >= 2.5.6... 2.5.8 found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libxslt.pc
config.status: creating libxslt/Makefile
config.status: creating libxslt/xsltconfig.h
config.status: creating libxslt/xsltwin32config.h
config.status: creating breakpoint/Makefile
config.status: creating libexslt/Makefile
config.status: creating libexslt/exsltconfig.h
config.status: creating xsltproc/Makefile
config.status: creating python/Makefile
config.status: creating python/tests/Makefile
config.status: creating tests/Makefile
config.status: creating tests/docs/Makefile
config.status: creating tests/REC1/Makefile
config.status: creating tests/REC2/Makefile
config.status: creating tests/REC/Makefile
config.status: creating tests/general/Makefile
config.status: creating tests/reports/Makefile
config.status: creating tests/extensions/Makefile
config.status: creating tests/namespaces/Makefile
config.status: creating tests/keys/Makefile
config.status: creating tests/numbers/Makefile
config.status: creating tests/documents/Makefile
config.status: creating tests/xmlspec/Makefile
config.status: creating tests/multiple/Makefile
config.status: creating tests/XSLTMark/Makefile
config.status: creating tests/docbook/Makefile
config.status: creating tests/exslt/Makefile
config.status: creating tests/exslt/common/Makefile
config.status: creating tests/exslt/functions/Makefile
config.status: creating tests/exslt/math/Makefile
config.status: creating tests/exslt/sets/Makefile
config.status: creating tests/exslt/strings/Makefile
config.status: creating tests/exslt/date/Makefile
config.status: creating doc/Makefile
config.status: creating xslt-config
config.status: creating libxslt.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
Can anyone explain why my libxslt compilation failed? I'm at my wits end trying to solve it.
Thanks in advance.