Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2018 21:01:14 -0800 (PST)
From:      Roger Marquis <marquis@roble.com>
To:        perl@FreeBSD.org
Subject:   textproc/XML-LibXML / LibXML.o build errors
Message-ID:  <nycvar.OFS.7.76.1801292056110.48525@mx.roble.com>

next in thread | raw e-mail | index | archive | help
Anyone else seeing these under 11.1-RELEASE-p4?


># make 
>===> Setting user-specified options for p5-XML-LibXML-2.0132,1 and dependencies
>===>  Building for p5-XML-LibXML-2.0132,1
> ...
>--- subdirs ---
>--- blibdirs ---
>--- LibXML.o ---
>--- config ---
>--- LibXML.o ---
>cc -c  -I/usr/local/include/libxml2 -I/usr/include  -O2 -pipe  -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"2.0132\"  -DXS_VERSION=\"2.0132\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.24/mach/CORE"  -DHAVE_UTF8 LibXML.c
>LibXML.xs:4047:22: warning: implicit declaration of function 'xmlValidateDtd' is invalid in C99 [-Wimplicit-function-declaration]
>            RETVAL = xmlValidateDtd(&cvp, self, dtd);
>                     ^
>LibXML.xs:4050:22: warning: implicit declaration of function 'xmlValidateDocument' is invalid in C99 [-Wimplicit-function-declaration]
>            RETVAL = xmlValidateDocument(&cvp, self);
>                     ^
>LibXML.xs:7232:15: warning: implicit declaration of function 'xmlParseDTD' is invalid in C99 [-Wimplicit-function-declaration]
>        dtd = xmlParseDTD((const xmlChar*)external, (const xmlChar*)system);
>              ^
>LibXML.xs:7232:13: warning: incompatible integer to pointer conversion assigning to 'xmlDtdPtr' (aka 'struct _xmlDtd *') from 'int' [-Wint-conversion]
>        dtd = xmlParseDTD((const xmlChar*)external, (const xmlChar*)system);
>            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>LibXML.xs:7312:15: warning: implicit declaration of function 'xmlIOParseDTD' is invalid in C99 [-Wimplicit-function-declaration]
>        res = xmlIOParseDTD(NULL, buffer, enc);
>              ^
>LibXML.xs:7312:13: warning: incompatible integer to pointer conversion assigning to 'xmlDtdPtr' (aka 'struct _xmlDtd *') from 'int' [-Wint-conversion]
>        res = xmlIOParseDTD(NULL, buffer, enc);
>            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>LibXML.c:11689:2: error: unknown type name 'xmlRelaxNGPtr'; did you mean 'xmlRegexpPtr'?
>        xmlRelaxNGPtr   self;
>        ^~~~~~~~~~~~~
>        xmlRegexpPtr
>/usr/local/include/libxml2/libxml/xmlregexp.h:29:20: note: 'xmlRegexpPtr' declared here
>typedef xmlRegexp *xmlRegexpPtr;
>                   ^
>LibXML.c:11692:28: error: use of undeclared identifier 'xmlRelaxNGPtr'
>            self = INT2PTR(xmlRelaxNGPtr,SvIV((SV*)SvRV( ST(0) )));
>                           ^
>LibXML.xs:7336:9: warning: implicit declaration of function 'xmlRelaxNGFree' is invalid in C99 [-Wimplicit-function-declaration]
>        xmlRelaxNGFree( self );
>        ^
>LibXML.xs:7344:9: error: unknown type name 'xmlRelaxNGParserCtxtPtr'; did you mean 'xmlParserCtxtPtr'?
>        xmlRelaxNGParserCtxtPtr rngctxt = NULL;
>        ^~~~~~~~~~~~~~~~~~~~~~~
>        xmlParserCtxtPtr
>/usr/local/include/libxml2/libxml/tree.h:39:24: note: 'xmlParserCtxtPtr' declared here
>typedef xmlParserCtxt *xmlParserCtxtPtr;
>                       ^
>LibXML.c:11720:15: error: expected ';' after expression
>        xmlRelaxNGPtr   RETVAL;
>                     ^
>                     ;
>LibXML.c:11720:2: error: use of undeclared identifier 'xmlRelaxNGPtr'; did you mean 'xmlRelaxNGFree'?
>        xmlRelaxNGPtr   RETVAL;
>        ^~~~~~~~~~~~~
>        xmlRelaxNGFree
>LibXML.xs:7336:9: note: 'xmlRelaxNGFree' declared here
>        xmlRelaxNGFree( self );
>        ^
>LibXML.c:11720:16: error: use of undeclared identifier 'RETVAL'
>        xmlRelaxNGPtr   RETVAL;
>                        ^
>LibXML.xs:7349:19: warning: implicit declaration of function 'xmlRelaxNGNewParserCtxt' is invalid in C99 [-Wimplicit-function-declaration]
>        rngctxt = xmlRelaxNGNewParserCtxt( url );
>                  ^
>LibXML.xs:7349:17: warning: incompatible integer to pointer conversion assigning to 'xmlParserCtxtPtr' (aka 'struct _xmlParserCtxt *') from 'int' [-Wint-conversion]
>        rngctxt = xmlRelaxNGNewParserCtxt( url );
>                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>LibXML.xs:7360:9: error: use of undeclared identifier 'RETVAL'
>        RETVAL = xmlRelaxNGParse( rngctxt );
>        ^
>LibXML.xs:7360:18: warning: implicit declaration of function 'xmlRelaxNGParse' is invalid in C99 [-Wimplicit-function-declaration]
>        RETVAL = xmlRelaxNGParse( rngctxt );
>                 ^
>LibXML.xs:7361:9: warning: implicit declaration of function 'xmlRelaxNGFreeParserCtxt' is invalid in C99 [-Wimplicit-function-declaration]
>        xmlRelaxNGFreeParserCtxt( rngctxt );
>        ^
>LibXML.xs:7363:23: error: use of undeclared identifier 'RETVAL'
>        REPORT_ERROR((RETVAL == NULL) ? 0 : 1);
>                      ^
>LibXML.c:11743:52: error: use of undeclared identifier 'RETVAL'
>            sv_setref_pv( RETVALSV, (char *)CLASS, (void*)RETVAL );
>                                                          ^
>LibXML.c:11720:2: warning: expression result unused [-Wunused-value]
>        xmlRelaxNGPtr   RETVAL;
>        ^~~~~~~~~~~~~
>LibXML.xs:7373:9: error: use of undeclared identifier 'xmlRelaxNGParserCtxtPtr'; did you mean 'xmlRelaxNGNewParserCtxt'?
>        xmlRelaxNGParserCtxtPtr rngctxt = NULL;
>        ^~~~~~~~~~~~~~~~~~~~~~~
>        xmlRelaxNGNewParserCtxt
>LibXML.xs:7349:19: note: 'xmlRelaxNGNewParserCtxt' declared here
>        rngctxt = xmlRelaxNGNewParserCtxt( url );
>                  ^
>LibXML.xs:7373:32: error: expected ';' after expression
>        xmlRelaxNGParserCtxtPtr rngctxt = NULL;
>                               ^
>                               ;
>LibXML.xs:7373:33: error: use of undeclared identifier 'rngctxt'
>        xmlRelaxNGParserCtxtPtr rngctxt = NULL;
>                                ^
>LibXML.c:11767:2: error: use of undeclared identifier 'xmlRelaxNGPtr'; did you mean 'xmlRelaxNGParse'?
>        xmlRelaxNGPtr   RETVAL;
>        ^~~~~~~~~~~~~
>        xmlRelaxNGParse
>LibXML.xs:7360:18: note: 'xmlRelaxNGParse' declared here
>        RETVAL = xmlRelaxNGParse( rngctxt );
>                 ^
>LibXML.c:11767:15: error: expected ';' after expression
>        xmlRelaxNGPtr   RETVAL;
>                     ^
>                     ;
>LibXML.c:11767:16: error: use of undeclared identifier 'RETVAL'
>        xmlRelaxNGPtr   RETVAL;
>                        ^
>LibXML.xs:7385:9: error: use of undeclared identifier 'rngctxt'
>        rngctxt = xmlRelaxNGNewMemParserCtxt( string,len );
>        ^
>LibXML.xs:7385:19: warning: implicit declaration of function 'xmlRelaxNGNewMemParserCtxt' is invalid in C99 [-Wimplicit-function-declaration]
>        rngctxt = xmlRelaxNGNewMemParserCtxt( string,len );
>                  ^
>LibXML.xs:7386:14: error: use of undeclared identifier 'rngctxt'
>        if ( rngctxt == NULL ) {
>             ^
>LibXML.xs:7396:9: error: use of undeclared identifier 'RETVAL'
>        RETVAL = xmlRelaxNGParse( rngctxt );
>        ^
>LibXML.xs:7396:35: error: use of undeclared identifier 'rngctxt'
>        RETVAL = xmlRelaxNGParse( rngctxt );
>                                  ^
>fatal error: too many errors emitted, stopping now [-ferror-limit=]
>13 warnings and 20 errors generated.
>*** [LibXML.o] Error code 1
>
>make[1]: stopped in /usr/ports/textproc/p5-XML-LibXML/work/XML-LibXML-2.0132
>1 error
>
>make[1]: stopped in /usr/ports/textproc/p5-XML-LibXML/work/XML-LibXML-2.0132
>===> Compilation failed unexpectedly.
>Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
>the maintainer.
>*** Error code 1
>
>Stop.
>make: stopped in /usr/ports/textproc/p5-XML-LibXML



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nycvar.OFS.7.76.1801292056110.48525>