pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43754: libxslt fails to compile due to libtool problems



>Number:         43754
>Category:       pkg
>Synopsis:       libxslt fails to compile due to libtool problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 13 14:35:00 +0000 2010
>Originator:     Lothar Braun
>Release:        
>Organization:
>Environment:
Darwin localhost 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 
2010; root:xnu-1504.7.4~1/RELEASE_I386 i386
>Description:
I bootstrapped pkgsrc to install into /opt/local/. Compiling libxslt fails with 
the following error 

===> Building for libxslt-1.1.24nb1
/usr/bin/gnumake  all-recursive
Making all in libxslt
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. 
-I../libxslt -I/opt/local/include/libxml2  -no-cpp-precomp -isystem 
/usr/include -I/opt/local//include -I/usr/include  -I/opt/local/include/libxml2 
-I/opt/local//include -I/usr/include -Wall -MT attrvt.lo -MD -MP -MF 
.deps/attrvt.Tpo -c -o attrvt.lo attrvt.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../libxslt -no-cpp-precomp 
-isystem /usr/include -I/opt/pkgsrc/textproc/libxslt/work/.buildlink/include 
-Wall -MT attrvt.lo -MD -MP -MF .deps/attrvt.Tpo -c attrvt.c  -fno-common -DPIC 
-o .libs/attrvt.o
In file included from attrvt.c:17:
libxslt.h:20:31: error: libxml/xmlversion.h: No such file or directory
attrvt.c:21:30: error: libxml/xmlmemory.h: No such file or directory
attrvt.c:22:25: error: libxml/tree.h: No such file or directory
attrvt.c:23:26: error: libxml/xpath.h: No such file or directory
attrvt.c:24:35: error: libxml/xpathInternals.h: No such file or directory
In file included from attrvt.c:26:
xsltutils.h:20:25: error: libxml/dict.h: No such file or directory
xsltutils.h:21:29: error: libxml/xmlerror.h: No such file or directory
In file included from xsltutils.h:23,
                 from attrvt.c:26:
xsltInternals.h:17:25: error: libxml/hash.h: No such file or directory
xsltInternals.h:21:30: error: libxml/xmlstring.h: No such file or directory
In file included from xsltInternals.h:24,
                 from xsltutils.h:23,
                 from attrvt.c:26:
numbersInternals.h:29: error: expected ':', ',', ';', '}' or '__attribute__' 
before '*' token
In file included from xsltutils.h:23,
                 from attrvt.c:26:
xsltInternals.h:234: error: expected specifier-qualifier-list before 
'xmlFreeFunc'
xsltInternals.h:276: error: expected specifier-qualifier-list before 'xmlChar'
xsltInternals.h:307: error: expected specifier-qualifier-list before 'xmlChar'
xsltInternals.h:333: error: expected specifier-qualifier-list before 'xmlDocPtr'
xsltInternals.h:349: error: expected specifier-qualifier-list before 
'xmlNodePtr'
xsltInternals.h:370: error: expected specifier-qualifier-list before 'xmlChar'
xsltInternals.h:406: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:407: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:418: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:477: error: expected specifier-qualifier-list before 
'xmlNodePtr'
xsltInternals.h:1370: error: expected specifier-qualifier-list before 
'xmlNodePtr'
xsltInternals.h:1433: error: expected ':', ',', ';', '}' or '__attribute__' 
before '*' token
xsltInternals.h:1498: error: expected specifier-qualifier-list before 
'xmlDocPtr'
xsltInternals.h:1642: error: expected specifier-qualifier-list before 
'xmlDocPtr'
xsltInternals.h:1687: error: expected specifier-qualifier-list before 
'xmlHashTablePtr'
xsltInternals.h:1837: warning: type defaults to 'int' in declaration of 
'xmlChar'
xsltInternals.h:1837: error: expected ';', ',' or ')' before '*' token
xsltInternals.h:1841: error: expected ')' before '*' token
xsltInternals.h:1846: error: expected declaration specifiers or '...' before 
'xmlChar'
xsltInternals.h:1850: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltInternals.h:1853: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:1855: error: expected ')' before 'doc'
xsltInternals.h:1857: error: expected ')' before 'doc'
xsltInternals.h:1860: error: expected ')' before 'doc'
xsltInternals.h:1864: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:1866: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'xsltFormatNumberConversion'
xsltInternals.h:1873: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltInternals.h:1882: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'xsltCreateRVT'
xsltInternals.h:1885: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltInternals.h:1888: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltInternals.h:1891: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltInternals.h:1895: error: expected declaration specifiers or '...' before 
'xmlXPathObjectPtr'
xsltInternals.h:1903: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltInternals.h:1917: error: expected declaration specifiers or '...' before 
'xmlAttrPtr'
xsltInternals.h:1918: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
In file included from attrvt.c:26:
xsltutils.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltGenericError'
xsltutils.h:142: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltGenericDebug'
xsltutils.h:148: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:151: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:152: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:155: error: expected declaration specifiers or '...' before 
'xmlGenericErrorFunc'
xsltutils.h:158: error: expected declaration specifiers or '...' before 
'xmlGenericErrorFunc'
xsltutils.h:162: error: expected declaration specifiers or '...' before 
'xmlGenericErrorFunc'
xsltutils.h:166: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:178: error: expected ')' before 'list'
xsltutils.h:186: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:190: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:200: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:204: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
xsltutils.h:217: error: expected ')' before 'buf'
xsltutils.h:222: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltutils.h:226: error: expected ')' before '*' token
xsltutils.h:231: error: expected declaration specifiers or '...' before 
'xmlDocPtr'
xsltutils.h:234: error: expected ')' before '*' token
xsltutils.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltXPathCompile'
xsltutils.h:251: error: expected declaration specifiers or '...' before 'FILE'
xsltutils.h:253: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltGetProfileInformation'
xsltutils.h:286: error: expected ')' before 'cur'
xsltutils.h:288: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
xsltutils.h:299: error: expected declaration specifiers or '...' before 
'xmlNodePtr'
In file included from attrvt.c:28:
templates.h:25: error: expected declaration specifiers or '...' before 
'xmlXPathCompExprPtr'
templates.h:26: error: expected declaration specifiers or '...' before 
'xmlNsPtr'
templates.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltAttrListTemplateProcess'
templates.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'xsltAttrTemplateProcess'
templates.h:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
templates.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
attrvt.c:46: error: expected specifier-qualifier-list before 'xmlNsPtr'
attrvt.c: In function 'xsltNewAttrVT':
attrvt.c:66: warning: implicit declaration of function 'xmlMalloc'
attrvt.c:70: error: 'xsltStylesheet' has no member named 'errors'
attrvt.c:78: error: 'xsltStylesheet' has no member named 'attVTs'
attrvt.c:83: error: 'xsltStylesheet' has no member named 'attVTs'
attrvt.c: In function 'xsltFreeAttrVT':
attrvt.c:102: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:103: warning: implicit declaration of function 'xmlFree'
attrvt.c:103: error: 'xmlChar' undeclared (first use in this function)
attrvt.c:103: error: (Each undeclared identifier is reported only once
attrvt.c:103: error: for each function it appears in.)
attrvt.c:103: error: expected expression before ')' token
attrvt.c:105: warning: implicit declaration of function 'xmlXPathFreeCompExpr'
attrvt.c:105: error: 'xmlXPathCompExprPtr' undeclared (first use in this 
function)
attrvt.c:105: error: expected ')' before 'avt'
attrvt.c:108: error: expected ')' before 'avt'
attrvt.c:110: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:111: error: expected expression before ')' token
attrvt.c:113: error: 'xsltAttrVT' has no member named 'nsList'
attrvt.c:114: error: 'xsltAttrVT' has no member named 'nsList'
attrvt.c: In function 'xsltSetAttrVTsegment':
attrvt.c:149: warning: implicit declaration of function 'xmlRealloc'
attrvt.c:154: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:154: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:154: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:154: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c:157: error: 'xsltAttrVT' has no member named 'segments'
attrvt.c: At top level:
attrvt.c:171: error: expected declaration specifiers or '...' before 
'xmlAttrPtr'
attrvt.c: In function 'xsltCompileAttr':
attrvt.c:172: error: nested functions are disabled, use -fnested-functions to 
re-enable
attrvt.c:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
attrvt.c:172: error: 'str' undeclared (first use in this function)
attrvt.c:173: error: nested functions are disabled, use -fnested-functions to 
re-enable
attrvt.c:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
attrvt.c:173: error: 'cur' undeclared (first use in this function)
attrvt.c:174: error: 'xmlChar' undeclared (first use in this function)
attrvt.c:174: error: 'ret' undeclared (first use in this function)
attrvt.c:175: error: 'expr' undeclared (first use in this function)
attrvt.c:179: error: 'attr' undeclared (first use in this function)
attrvt.c:181: error: 'XML_TEXT_NODE' undeclared (first use in this function)
attrvt.c:186: error: 'xsltStylesheet' has no member named 'errors'
attrvt.c:190: warning: implicit declaration of function 'xmlStrchr'
attrvt.c:190: warning: comparison between pointer and integer
attrvt.c:191: warning: comparison between pointer and integer
attrvt.c:194: warning: implicit declaration of function 'xsltGenericDebug'
attrvt.c:212: error: 'xsltAttrVT' has no member named 'nsList'
attrvt.c:212: warning: implicit declaration of function 'xmlGetNsList'
attrvt.c:213: error: 'xsltAttrVT' has no member named 'nsList'
attrvt.c:214: error: 'xsltAttrVT' has no member named 'nsList'
attrvt.c:217: error: 'xsltAttrVT' has no member named 'nsNr'
attrvt.c:224: warning: implicit declaration of function 'xmlStrncat'
attrvt.c:252: error: 'xsltStylesheet' has no member named 'errors'
attrvt.c:256: warning: implicit declaration of function 'xmlStrndup'
attrvt.c:261: warning: implicit declaration of function 'xsltGenericError'
attrvt.c:264: error: 'xmlXPathCompExprPtr' undeclared (first use in this 
function)
attrvt.c:264: error: expected ';' before 'comp'
attrvt.c:266: error: 'comp' undeclared (first use in this function)
attrvt.c:266: warning: implicit declaration of function 'xsltXPathCompile'
attrvt.c:271: error: 'xsltStylesheet' has no member named 'errors'
attrvt.c:327: error: 'xsltStylesheet' has no member named 'attVTs'
attrvt.c: At top level:
attrvt.c:348: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
gnumake[2]: *** [attrvt.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /opt/pkgsrc/textproc/libxslt
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/textproc/libxslt

Libxml2 was successfully installed from pkgsrc into /opt/local, hence 
/opt/local/include/libxml2 exists. The problem seems to be with the libtool 
wrappers. As you can see in the output, the option -I/opt/local/include/libxml2 
is passed to the libtool-wrapper but gets lost during the execution in the 
wrapper. Finally, when /opt/local/bin/libtool is called, the option is missing 
which results in the error.

>How-To-Repeat:
Run bmake install clean on textproc/libxslt
>Fix:



Home | Main Index | Thread Index | Old Index