Re: [xslt] FW: make error with XML-LibXSLT-1.57 & libxslt-1.1.4
- From: "William M. Brack" <wbrack mmm com hk>
- To: xslt gnome org
- Cc: xslt gnome org
- Subject: Re: [xslt] FW: make error with XML-LibXSLT-1.57 & libxslt-1.1.4
- Date: Sun, 21 Mar 2004 17:19:15 +0800 (HKT)
Hi -
It always worries me when I hear someone mentioning installing the
libraries "with a little force". The quick answer to your
question "why am I getting xxxx error" is "because you have
installed incorrectly", but I realize that would be of little help
to you. The more technical response of "because xmlexports.h has
been generated incorrectly" would be of roughly the same value :).
So, let me list the steps which I would recommend (specific to
the information you supplied - for others the directory names
would be different):-
1) create or choose a directory to install the latest sources,
libxml2-2.6.7 and libxslt-1.1.4. Let's call that
/home/emetal/sources. Unpack the sources into that directory.
2) cd /home/emetal/sources/libxml2-2.6.7
3) ./configure --prefix=/home/emetal/siteroot --without-python
4) make
The make should complete *without any errors*, and probably without
any warnings (although I can't guarantee that one).
5) make install
6) cd /home/emetal/sources/libxslt-1.1.4
7) ./configure --prefix=/home/emetal/siteroot --without-python \
--with-libxml-src=/home/emetal/sources/libxml2-2.6.7
8) make
Again, the make should complete *without any errors*.
9) make install
At that point the libraries should be correctly installed, with
include files in /home/emetal/siteroot/include, libraries in
/home/emetal/siteroot/lib and utilities in
/home/emetal/siteroot/bin.
Hopefully this will get you back into the world of Perl problems
rather than libxml2 / libxslt problems :-).
Regards,
Bill
Geoff Ellis said:
> I'm forwarding this thread to you in the hope someone might be able
> to help.
>
> Basically, I'm trying to install XML-LibXSLT-1.57 on a debian linux
> box
> running perl 5.6.1
>
> I've installed both the latest libxml2 and libxslt modules with a
> little
> force to be honest. But I can confirm they are both installed.
>
> When I try to install the XML-LibXSLT-1.57 perl module, I get this
> error and
> was wondering if anyone could help me figure it out, c libraries are
> really
> not my forte......the error I'm currently getting is as follows..
>
> Thanks
>
> Geoff.
>
>
>
>
> cc -c -I/home/emetal/siteroot/include
> -I/home/emetal/siteroot//include/libxml2 -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> -DVERSION=\"1.57\" -DXS_VERSION=\"1.57\" -fpic
> -I/home/emetal/siteroot/lib/perl5/5.6.1/i686-linux/CORE -DHAVE_BLANK
> -DHAVE_BLANK -DHAVE_EXSLT LibXSLT.c
> In file included from
> /home/emetal/siteroot/include/libxslt/xsltInternals.h:20,
> from LibXSLT.xs:8:
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:30: syntax error
> before
> `xmlDictPtr'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:31: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:32: syntax error
> before
> `xmlDictPtr'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:33: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:34: syntax error
> before
> `int'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:35: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:36: syntax error
> before
> `void'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:37: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:42: syntax error
> before
> `const'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:43: parse error
> before
> `xmlDictLookup'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:45: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:46: syntax error
> before
> `const'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:47: parse error
> before
> `xmlDictQLookup'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:49: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:50: syntax error
> before
> `int'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:52: warning:
> data
> definition has no type or storage class
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:53: syntax error
> before
> `int'
> /home/emetal/siteroot/include/libxml2/libxml/dict.h:54: warning:
> data
> definition has no type or storage class
> LibXSLT.xs: In function `LibXSLT_generic_function':
> LibXSLT.xs:445: structure has no member named `function'
> LibXSLT.xs:446: structure has no member named `functionURI'
> make: *** [LibXSLT.o] Error 1
>
> many thanks.
>
>
> -----Original Message-----
> From: Petr Pajas [mailto:pajas@ufal.ms.mff.cuni.cz]
> Sent: 18 March 2004 14:16
> To: geoff@metalogicplc.com
> Subject: Re: make error with XML-LibXSLT & libxslt-0.9.0
>
> "Geoff Ellis" <geoff@metalogicplc.com> writes:
>
>> Petr, when I configure libxslt-1.1.3 apart from the --prefix flag,
>> is
> there
>
> I just tried to recompile libxslt-1.1.4 ant it went well without a
> single
> warning (I used ./configure --prefix=/usr/local --without-python).
>
>> anything else I need to add as an option on the install? I mean,
>> would I
>> need to set --libdir?
>>
>> I'm installing it like this ./configure
>> --prefix=/home/emetal/siteroot
>> --without-python
>
> One of the lines in ./configure output is a check for libxml2
> version,
> but I guess that's alright (anyway, check it just for sure).
>
>> That runs fine, but make is giving these errors
>>
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt
>> -I/home/emetal/siteroot//inc
>> lude/libxml2 -g -O2 -Wall -c xsltutils.c
>> -Wp,-MD,.deps/xsltutils.TPlo
> -fPIC
>> -DPIC -o .libs/xsltutils.o
>> xsltutils.c: In function `xsltDefaultSortFunction':
>> xsltutils.c:1074: warning: passing arg 1 of pointer to function
>> discards
>> qualifiers from pointer target type
>> xsltutils.c:1079: warning: passing arg 1 of pointer to function
>> discards
>> qualifiers from pointer target type
>
> These look really strange. But they are all warnings, aren't they?
>
>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libxslt
>> -I/home/emetal/siteroot//inc
>> lude/libxml2 -g -O2 -Wall -c preproc.c -Wp,-MD,.deps/preproc.TPlo
>> -fPIC
>> -DPIC -
>> o .libs/preproc.o
>> preproc.c: In function `xsltWithParamComp':
>> preproc.c:635: warning: passing arg 2 of `xsltGetQNameURI' from
> incompatible
>> pointer type
>> preproc.c: In function `xsltNumberComp':
>> preproc.c:719: warning: passing arg 1 of pointer to function
>> discards
>> qualifiers from pointer target type
>> preproc.c:726: warning: passing arg 1 of pointer to function
>> discards
>> qualifiers from pointer target type
>> preproc.c: In function `xsltCallTemplateComp':
>> preproc.c:824: warning: passing arg 2 of `xsltGetQNameURI' from
> incompatible
>> pointer type
>> preproc.c: In function `xsltApplyTemplatesComp':
>> preproc.c:868: warning: passing arg 2 of `xsltGetQNameURI' from
> incompatible
>> poi pointer type
>> preproc.c: In function `xsltVariableComp':
>> preproc.c:1053: warning: passing arg 2 of `xsltGetQNameURI' from
>> incompatible pointer type
>> preproc.c: In function `xsltParamComp':
>> preproc.c:1117: warning: passing arg 2 of `xsltGetQNameURI' from
>> incompatible pointer type
>
> ditto for the above. Strange, but just warnings. Maybe they're just
> harmless (although my gcc doesn't report them). You might try to
> pick
> one of the lines, and have look at how's the function prototyped and
> what parameters are passed to it on that particular line. If they
> matches, it's just your compiler going crazy.
>
> Maybe you could also check that /home/emetal/siteroot/inc doesn't
> contain xslt.h or simiar (again, just to make sure the .c files
> compile against the correct prototypes in the .h headers).
>
>> make[2]: Entering directory
>> `/home/emetal/siteroot/src/libxslt-1.1.3/doc'
>> Rebuilding the HTML Web pages from exslt.html
>> I/O warning : failed to load external entity "dirname"
>> xsltParseStylesheetFile : cannot parse dirname
>> Validating the HTML Web pages
>> I/O error : failed to load external entity "EXSLT/bugs.html"
>> I/O error : failed to load external entity "EXSLT/docs.html"
>> I/O error : failed to load external entity "EXSLT/downloads.html"
>> I/O error : failed to load external entity "EXSLT/help.html"
>
> Again, I don't get these, but this is just a documentation, and you
> could possibly live without it.
>
>> EXSLT/index.html:1: parser error : Document is empty
>>
>> ^
>> EXSLT/index.html:1: parser error : Start tag expected, '<' not
>> found
>>
>> ^
>> I/O error : failed to load external entity "EXSLT/intro.html"
>>
>> And a few more that this.......
>
> And does the make finally fail or succeed? If it doesn't end up with
> an error, you could try make install and then check on some xml/xslt
> sample that xsltproc tool works alright.
>
>> I know you've helped me quite a lot, but it really is
>> appreciated....I had
>> this project dumped on me and it's not really my forte.....
>
> I understand. Unfortunately (for you :-)), I have much newer setup,
> so
> I can't reproduce the problems on my box, so my advice is mostly a
> blind guess and may be quite inaccurate :-( You might try the
> xml@gnome.org/xslt@gnome.org mailing lists too, there are more
> users,
> some of them might have a similar setup as you.
>
> /Petr
>
>> Thanks
>>
>> Geoff...
>>
>> -----Original Message-----
>> From: Petr Pajas [mailto:pajas@ufal.ms.mff.cuni.cz]
>> Sent: 18 March 2004 12:50
>> To: geoff@metalogicplc.com
>> Cc: perl-xml@listserv.ActiveState.com
>> Subject: Re: make error with XML-LibXSLT & libxslt-0.9.0
>>
>>
>> Oops, sorry, I overlooked "libxslt-0.9.0" in Subj. This is ancient
>> too. Go back to xmlsoft.org, fetch a latest libxslt, install and
>> then
>> try XML-LibXSLT again :-)
>>
>> /Petr
>>
>>
>> "Geoff Ellis" <geoff@metalogicplc.com> writes:
>>
>>> 1. (*) text/plain ( ) text/html
>>>
>>> I'm getting a make error with installing the module.
>>>
>>>
>>>
>>> Could someone show me why this is happening please, I have had a
>>> lot of
>> help
>>> with installing the XML::LibXML modules and that's all done and
> installed,
>>> but I also need this one so I don't get seg faults when
>>> transforming a
>>> stylesheet with params.
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> emetal@metalfast:~/siteroot/src/XML-LibXSLT-1.57$ make
>>>
>>>
>>>
>>> cc -c -I/home/emetal/siteroot/include -fno-strict-aliasing
>>> -I/usr/local/include
>>>
>>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
>>> -DVERSION=\"1.57\"
>>> -DXS_VERSION
>>>
>>> =\"1.57\" -fpic
>>> -I/home/emetal/siteroot/lib/perl5/5.6.1/i686-linux/CORE
>>> -DHAVE_B
>>>
>>> LANK -DHAVE_BLANK -DHAVE_EXSLT LibXSLT.c
>>>
>>>
>>>
>>> LibXSLT.xs: In function `LibXSLT_generic_function':
>>>
>>> LibXSLT.xs:445: structure has no member named `function'
>>>
>>> LibXSLT.xs:446: structure has no member named `functionURI'
>>>
>>> make: *** [LibXSLT.o] Error 1
>>>
>>>
>>>
>>>
>>>
>>> TIA
>>>
>>>
>>>
>>> Geoff
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Perl-XML mailing list
>>> Perl-XML@listserv.ActiveState.com
>>> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]