in reply to Re^5: XML::LibXSLT on OS X install problem
in thread XML::LibXSLT on OS X install problem

graff, thanks very much for all your help.

Here's the makefile command, with args for the correct paths:

perl Makefile.PL LIBS='-L/sw/lib' INC='-I/sw/include'
And here's the output (which I believe indicates success):
running xslt-config... ok looking for -lxslt... yes looking for -lexslt... yes Writing Makefile for XML::LibXSLT
Now here's the bad news. I ran 'make', and got some seriously ugly output. The problem (I think) stems from some initial error messages like this:
In file included from LibXSLT.xs:7: /sw/include/libxslt/xslt.h:13:25: libxml/tree.h: No such file or direc +tory
Now, I've got tree.h (and related headers) on my system in two places: /sw/include/libxml2/libxml/tree.h and /sw/include/gnome-xml/tree.h

The question is, which one and how to get it in the Makefile? Also, I'd like to say here that this question has basically left the domain of perl and veered into make, so if you don't have time for this hand-holding, I completely understand. I recognize that I really need to pick up a book on make and learn wtf I'm doing. ;-)

The full output from make follows:

cc -c -I/sw/include -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp- +precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"1 +.58\" -DXS_VERSION=\"1.58\" "-I/System/Library/Perl/5.8.1/darwin-thr +ead-multi-2level/CORE" -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT LibXSL +T.c In file included from LibXSLT.xs:7: /sw/include/libxslt/xslt.h:13:25: libxml/tree.h: No such file or direc +tory In file included from LibXSLT.xs:8: /sw/include/libxslt/xsltInternals.h:16:25: libxml/tree.h: No such file + or directory /sw/include/libxslt/xsltInternals.h:17:25: libxml/hash.h: No such file + or directory /sw/include/libxslt/xsltInternals.h:18:26: libxml/xpath.h: No such fil +e or directory /sw/include/libxslt/xsltInternals.h:19:29: libxml/xmlerror.h: No such +file or directory /sw/include/libxslt/xsltInternals.h:20:25: libxml/dict.h: No such file + or directory In file included from /sw/include/libxslt/xsltInternals.h:23, from LibXSLT.xs:8: /sw/include/libxslt/numbersInternals.h:13:25: libxml/tree.h: No such f +ile or directory In file included from /sw/include/libxslt/xsltInternals.h:23, from LibXSLT.xs:8: /sw/include/libxslt/numbersInternals.h:29: warning: no semicolon at en +d of struct or union /sw/include/libxslt/numbersInternals.h:29: error: parse error before ' +*' token /sw/include/libxslt/numbersInternals.h:30: error: parse error before ' +*' token /sw/include/libxslt/numbersInternals.h:30: warning: data definition ha +s no type or storage class /sw/include/libxslt/numbersInternals.h:31: error: parse error before ' +*' token /sw/include/libxslt/numbersInternals.h:31: warning: data definition ha +s no type or storage class /sw/include/libxslt/numbersInternals.h:32: error: parse error before ' +*' token /sw/include/libxslt/numbersInternals.h:32: warning: data definition ha +s no type or storage class /sw/include/libxslt/numbersInternals.h:33: error: parse error before ' +*' token /sw/include/libxslt/numbersInternals.h:33: warning: data definition ha +s no type or storage class /sw/include/libxslt/numbersInternals.h:38: error: parse error before " +doc" /sw/include/libxslt/numbersInternals.h:38: warning: data definition ha +s no type or storage class /sw/include/libxslt/numbersInternals.h:39: error: parse error before " +node" /sw/include/libxslt/numbersInternals.h:39: warning: data definition ha +s no type or storage class In file included from LibXSLT.xs:8: /sw/include/libxslt/xsltInternals.h:52: error: parse error before "xml +FreeFunc" /sw/include/libxslt/xsltInternals.h:52: warning: no semicolon at end o +f struct or union /sw/include/libxslt/xsltInternals.h:57: error: parse error before '}' +token /sw/include/libxslt/xsltInternals.h:94: error: parse error before "xml +Char" /sw/include/libxslt/xsltInternals.h:94: warning: no semicolon at end o +f struct or union /sw/include/libxslt/xsltInternals.h:96: error: parse error before '*' +token /sw/include/libxslt/xsltInternals.h:96: warning: data definition has n +o type or storage class /sw/include/libxslt/xsltInternals.h:97: error: parse error before '*' +token /sw/include/libxslt/xsltInternals.h:97: warning: data definition has n +o type or storage class /sw/include/libxslt/xsltInternals.h:98: error: parse error before '*' +token /sw/include/libxslt/xsltInternals.h:98: warning: data definition has n +o type or storage class /sw/include/libxslt/xsltInternals.h:99: error: parse error before '*' +token /sw/include/libxslt/xsltInternals.h:99: warning: data definition has n +o type or storage class /sw/include/libxslt/xsltInternals.h:100: error: parse error before "co +ntent" /sw/include/libxslt/xsltInternals.h:100: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:101: error: parse error before "el +em" /sw/include/libxslt/xsltInternals.h:101: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:104: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:104: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:109: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:120: error: parse error before "xm +lChar" /sw/include/libxslt/xsltInternals.h:120: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:122: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:123: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:123: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:125: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:125: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:126: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:126: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:127: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:127: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:129: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:129: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:130: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:130: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:131: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:131: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:132: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:132: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:133: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:133: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:134: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:147: error: parse error before "xm +lDocPtr" /sw/include/libxslt/xsltInternals.h:147: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:151: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:176: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:188: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:234: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:234: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:238: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:254: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:254: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:260: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:260: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:263: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:263: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:266: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:266: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:268: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:268: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:271: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:271: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:276: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:276: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:278: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:278: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:281: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:281: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:282: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:282: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:284: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:284: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:288: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:288: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:291: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:291: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:296: error: parse error before "co +mp" /sw/include/libxslt/xsltInternals.h:296: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:297: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:297: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:299: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:312: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:312: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:313: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:313: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:314: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:314: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:315: error: parse error before "tr +ee" /sw/include/libxslt/xsltInternals.h:315: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:316: error: parse error before "va +lue" /sw/include/libxslt/xsltInternals.h:316: error: conflicting types for +`value' /sw/include/libxslt/numbersInternals.h:32: error: previous declaration + of `value' /sw/include/libxslt/xsltInternals.h:316: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:339: error: parse error before "xm +lDocPtr" /sw/include/libxslt/xsltInternals.h:339: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:340: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:343: error: parse error before "cd +ataSection" /sw/include/libxslt/xsltInternals.h:343: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:368: error: parse error before "ns +Aliases" /sw/include/libxslt/xsltInternals.h:368: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:373: error: parse error before "at +tributeSets" /sw/include/libxslt/xsltInternals.h:373: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:378: error: parse error before "ns +Hash" /sw/include/libxslt/xsltInternals.h:378: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:389: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:389: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:390: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:390: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:391: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:391: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:392: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:392: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:400: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:400: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:401: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:401: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:403: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:403: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:412: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:412: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:413: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:413: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:422: error: parse error before "ex +tInfos" /sw/include/libxslt/xsltInternals.h:422: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:433: error: parse error before "di +ct" /sw/include/libxslt/xsltInternals.h:433: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:441: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:441: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:454: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:489: error: parse error before "xm +lHashTablePtr" /sw/include/libxslt/xsltInternals.h:489: warning: no semicolon at end +of struct or union /sw/include/libxslt/xsltInternals.h:490: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:491: error: parse error before "ex +tInfos" /sw/include/libxslt/xsltInternals.h:491: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:493: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:493: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:494: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:494: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:499: error: parse error before "no +de" /sw/include/libxslt/xsltInternals.h:499: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:500: error: parse error before "no +deList" /sw/include/libxslt/xsltInternals.h:500: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:503: error: parse error before "ou +tput" /sw/include/libxslt/xsltInternals.h:503: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:504: error: parse error before "in +sert" /sw/include/libxslt/xsltInternals.h:504: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:506: error: parse error before "xp +athCtxt" /sw/include/libxslt/xsltInternals.h:506: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:512: error: parse error before "gl +obalVars" /sw/include/libxslt/xsltInternals.h:512: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:514: error: parse error before "in +st" /sw/include/libxslt/xsltInternals.h:514: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:535: error: parse error before "er +ror" /sw/include/libxslt/xsltInternals.h:535: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:543: error: parse error before "tm +pRVT" /sw/include/libxslt/xsltInternals.h:543: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:544: error: parse error before "pe +rsistRVT" /sw/include/libxslt/xsltInternals.h:544: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:550: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:550: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:564: error: parse error before "di +ct" /sw/include/libxslt/xsltInternals.h:564: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:569: error: parse error before "tm +pDoc" /sw/include/libxslt/xsltInternals.h:569: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:574: error: parse error before '}' + token /sw/include/libxslt/xsltInternals.h:630: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:634: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:639: error: parse error before "xm +lChar" /sw/include/libxslt/xsltInternals.h:643: error: parse error before "xm +lDocPtr" /sw/include/libxslt/xsltInternals.h:646: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:648: error: parse error before "do +c" /sw/include/libxslt/xsltInternals.h:650: error: parse error before "do +c" /sw/include/libxslt/xsltInternals.h:653: error: parse error before "do +c" /sw/include/libxslt/xsltInternals.h:657: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:659: error: parse error before "xs +ltFormatNumberConversion" /sw/include/libxslt/xsltInternals.h:660: error: parse error before "xm +lChar" /sw/include/libxslt/xsltInternals.h:662: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:666: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:675: error: parse error before "xs +ltCreateRVT" /sw/include/libxslt/xsltInternals.h:675: warning: data definition has +no type or storage class /sw/include/libxslt/xsltInternals.h:678: error: parse error before "xm +lDocPtr" /sw/include/libxslt/xsltInternals.h:681: error: parse error before "xm +lDocPtr" /sw/include/libxslt/xsltInternals.h:690: error: parse error before "xm +lAttrPtr" /sw/include/libxslt/xsltInternals.h:691: error: parse error before '*' + token /sw/include/libxslt/xsltInternals.h:694: error: parse error before "xm +lNodePtr" /sw/include/libxslt/xsltInternals.h:694: warning: data definition has +no type or storage class In file included from LibXSLT.xs:9: /sw/include/libxslt/transform.h:15:27: libxml/parser.h: No such file o +r directory /sw/include/libxslt/transform.h:16:26: libxml/xmlIO.h: No such file or + directory In file included from LibXSLT.xs:9: /sw/include/libxslt/transform.h:37: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:43: error: parse error before "xsltApp +lyStylesheetUser" /sw/include/libxslt/transform.h:44: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:48: warning: data definition has no ty +pe or storage class /sw/include/libxslt/transform.h:54: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/transform.h:56: error: parse error before "xsltApp +lyStylesheet" /sw/include/libxslt/transform.h:57: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:58: warning: data definition has no ty +pe or storage class /sw/include/libxslt/transform.h:60: error: parse error before "xsltPro +fileStylesheet" /sw/include/libxslt/transform.h:61: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:63: warning: data definition has no ty +pe or storage class /sw/include/libxslt/transform.h:66: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:73: error: parse error before "xmlDocP +tr" /sw/include/libxslt/transform.h:82: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/transform.h:88: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/transform.h:93: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/transform.h:98: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/transform.h:103: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:108: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:113: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:118: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:123: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:128: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:133: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:138: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:143: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:148: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:153: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:158: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:163: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:168: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:175: error: parse error before "xsltCo +pyTextString" /sw/include/libxslt/transform.h:176: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/transform.h:178: warning: data definition has no t +ype or storage class /sw/include/libxslt/transform.h:183: error: parse error before "cur" In file included from LibXSLT.xs:10: /sw/include/libxslt/xsltutils.h:19:26: libxml/xpath.h: No such file or + directory /sw/include/libxslt/xsltutils.h:20:25: libxml/dict.h: No such file or +directory /sw/include/libxslt/xsltutils.h:21:29: libxml/xmlerror.h: No such file + or directory In file included from LibXSLT.xs:10: /sw/include/libxslt/xsltutils.h:83: error: parse error before '*' toke +n /sw/include/libxslt/xsltutils.h:84: error: parse error before "node" /sw/include/libxslt/xsltutils.h:86: warning: data definition has no ty +pe or storage class /sw/include/libxslt/xsltutils.h:87: error: parse error before '*' toke +n /sw/include/libxslt/xsltutils.h:89: error: parse error before "xmlNode +Ptr" /sw/include/libxslt/xsltutils.h:91: warning: data definition has no ty +pe or storage class /sw/include/libxslt/xsltutils.h:138: error: parse error before "xsltGe +nericError" /sw/include/libxslt/xsltutils.h:138: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:140: error: parse error before "xsltGe +nericDebug" /sw/include/libxslt/xsltutils.h:140: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:146: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:149: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:153: error: parse error before "xmlGen +ericErrorFunc" /sw/include/libxslt/xsltutils.h:156: error: parse error before "xmlGen +ericErrorFunc" /sw/include/libxslt/xsltutils.h:160: error: parse error before "xmlGen +ericErrorFunc" /sw/include/libxslt/xsltutils.h:164: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:176: error: parse error before "list" /sw/include/libxslt/xsltutils.h:184: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:188: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:190: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:192: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:192: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:198: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:199: error: parse error before "dict" /sw/include/libxslt/xsltutils.h:201: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:202: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:203: error: parse error before "node" /sw/include/libxslt/xsltutils.h:204: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:206: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:208: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:209: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:215: error: parse error before "buf" /sw/include/libxslt/xsltutils.h:220: error: parse error before "xmlDoc +Ptr" /sw/include/libxslt/xsltutils.h:224: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:229: error: parse error before "xmlDoc +Ptr" /sw/include/libxslt/xsltutils.h:232: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:241: error: parse error before "xsltXP +athCompile" /sw/include/libxslt/xsltutils.h:242: error: parse error before '*' tok +en /sw/include/libxslt/xsltutils.h:242: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:249: error: parse error before "FILE" /sw/include/libxslt/xsltutils.h:251: error: parse error before "xsltGe +tProfileInformation" /sw/include/libxslt/xsltutils.h:251: warning: data definition has no t +ype or storage class /sw/include/libxslt/xsltutils.h:284: error: parse error before "cur" /sw/include/libxslt/xsltutils.h:286: error: parse error before "xmlNod +ePtr" /sw/include/libxslt/xsltutils.h:297: error: parse error before "xmlNod +ePtr" In file included from LibXSLT.xs:11: /sw/include/libxslt/imports.h:14:25: libxml/tree.h: No such file or di +rectory In file included from LibXSLT.xs:11: /sw/include/libxslt/imports.h:53: error: parse error before "xmlNodePt +r" /sw/include/libxslt/imports.h:57: error: parse error before "xmlNodePt +r" /sw/include/libxslt/imports.h:64: error: parse error before "xmlNodePt +r" /sw/include/libxslt/imports.h:67: error: parse error before '*' token In file included from LibXSLT.xs:12: /sw/include/libxslt/extensions.h:14:26: libxml/xpath.h: No such file o +r directory In file included from LibXSLT.xs:12: /sw/include/libxslt/extensions.h:36: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:47: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:60: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:71: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:75: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:80: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:87: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:91: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:95: error: parse error before '*' tok +en /sw/include/libxslt/extensions.h:105: error: parse error before "ctxt" /sw/include/libxslt/extensions.h:112: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:116: error: parse error before "xsltE +xtFunctionLookup" /sw/include/libxslt/extensions.h:117: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:118: warning: data definition has no +type or storage class /sw/include/libxslt/extensions.h:120: error: parse error before "xsltE +xtModuleFunctionLookup" /sw/include/libxslt/extensions.h:120: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:121: warning: data definition has no +type or storage class /sw/include/libxslt/extensions.h:124: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:132: error: parse error before "xmlNo +dePtr" /sw/include/libxslt/extensions.h:137: error: parse error before "xmlNo +dePtr" /sw/include/libxslt/extensions.h:142: error: parse error before "xmlNo +dePtr" /sw/include/libxslt/extensions.h:148: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:154: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:158: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:162: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:166: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:173: error: parse error before "xmlNo +dePtr" /sw/include/libxslt/extensions.h:177: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:182: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:186: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:193: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:198: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:209: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:213: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:224: error: parse error before "xmlNo +dePtr" /sw/include/libxslt/extensions.h:231: error: parse error before "xsltG +etExtInfo" /sw/include/libxslt/extensions.h:232: error: parse error before '*' to +ken /sw/include/libxslt/extensions.h:232: warning: data definition has no +type or storage class /sw/include/libxslt/extensions.h:240: error: parse error before '*' to +ken In file included from LibXSLT.xs:14: /sw/include/libexslt/exslt.h:5:25: libxml/tree.h: No such file or dire +ctory LibXSLT.xs:17:30: libxml/xmlmemory.h: No such file or directory LibXSLT.xs:18:29: libxml/HTMLtree.h: No such file or directory LibXSLT.xs:19:26: libxml/xmlIO.h: No such file or directory LibXSLT.xs:20:25: libxml/tree.h: No such file or directory LibXSLT.xs:21:27: libxml/parser.h: No such file or directory LibXSLT.xs:22:36: libxml/parserInternals.h: No such file or directory LibXSLT.xs:23:35: libxml/xpathInternals.h: No such file or directory In file included from /System/Library/Perl/5.8.1/darwin-thread-multi-2 +level/CORE/perl.h:447, from LibXSLT.xs:25: /usr/include/stdlib.h:136: error: `free' redeclared as different kind +of symbol /sw/include/libxslt/xsltInternals.h:237: error: previous declaration o +f `free' In file included from /System/Library/Perl/5.8.1/darwin-thread-multi-2 +level/CORE/perl.h:452, from LibXSLT.xs:25: /usr/include/unistd.h:247: error: `select' redeclared as different kin +d of symbol /sw/include/libxslt/xsltInternals.h:314: error: previous declaration o +f `select' In file included from /usr/include/sys/time.h:176, from /usr/include/sys/stat.h:67, from /System/Library/Perl/5.8.1/darwin-thread-multi-2 +level/CORE/perl.h:645, from LibXSLT.xs:25: /usr/include/time.h:128: error: `time' redeclared as different kind of + symbol /sw/include/libxslt/xsltInternals.h:108: error: previous declaration o +f `time' In file included from LibXSLT.xs:27: perl-libxml-mm.h:20:27: libxml/parser.h: No such file or directory In file included from LibXSLT.xs:27: perl-libxml-mm.h:62: error: parse error before "node" perl-libxml-mm.h:65: error: parse error before "document" perl-libxml-mm.h:71: error: parse error before "node" perl-libxml-mm.h:74: error: parse error before "x_PmmSvNode" perl-libxml-mm.h:74: warning: data definition has no type or storage c +lass perl-libxml-mm.h:86: error: parse error before "elem" LibXSLT.xs:400: error: parse error before "ctxt" LibXSLT.xs: In function `LibXSLT_generic_function': LibXSLT.xs:401: error: `xmlXPathObjectPtr' undeclared (first use in th +is function) LibXSLT.xs:401: error: (Each undeclared identifier is reported only on +ce LibXSLT.xs:401: error: for each function it appears in.) LibXSLT.xs:401: error: parse error before "obj" LibXSLT.xs:402: error: `xmlNodeSetPtr' undeclared (first use in this f +unction) LibXSLT.xs:414: error: `xmlNodePtr' undeclared (first use in this func +tion) LibXSLT.xs:414: error: parse error before "tmp_node" LibXSLT.xs:423: error: `ctxt' undeclared (first use in this function) LibXSLT.xs:442: error: `nargs' undeclared (first use in this function) LibXSLT.xs:443: error: `obj' undeclared (first use in this function) LibXSLT.xs:443: error: parse error before "valuePop" LibXSLT.xs:445: error: `XPATH_NODESET' undeclared (first use in this f +unction) LibXSLT.xs:446: error: `XPATH_XSLT_TREE' undeclared (first use in this + function) LibXSLT.xs:447: error: `nodelist' undeclared (first use in this functi +on) LibXSLT.xs:454: error: parse error before "tnode" LibXSLT.xs:458: error: `tnode' undeclared (first use in this function) LibXSLT.xs:464: error: `XML_NAMESPACE_DECL' undeclared (first use in t +his function) LibXSLT.xs:470: error: `xmlNsPtr' undeclared (first use in this functi +on) LibXSLT.xs:470: error: parse error before "tnode" LibXSLT.xs:474: error: parse error before "tnode_cpy" LibXSLT.xs:475: error: `tnode_cpy' undeclared (first use in this funct +ion) LibXSLT.xs:482: error: `XPATH_BOOLEAN' undeclared (first use in this f +unction) LibXSLT.xs:486: error: `XPATH_NUMBER' undeclared (first use in this fu +nction) LibXSLT.xs:490: error: `XPATH_STRING' undeclared (first use in this fu +nction) LibXSLT.xs:520: error: `ret' undeclared (first use in this function) LibXSLT.xs:520: error: parse error before "xmlXPathNewCString" LibXSLT.xs:534: error: `tmp_node1' undeclared (first use in this funct +ion) LibXSLT.xs:534: error: parse error before "x_PmmSvNode" LibXSLT.xs:535: error: `tmp_node' undeclared (first use in this functi +on) LibXSLT.xs:541: error: parse error before "old" LibXSLT.xs:542: error: `old' undeclared (first use in this function) LibXSLT.xs:550: error: parse error before "xmlXPathNewNodeSet" LibXSLT.xs:552: error: parse error before "x_PmmSvNode" LibXSLT.xs:560: error: parse error before "xmlXPathNewBoolean" LibXSLT.xs:565: error: parse error before "xmlXPathNewCString" LibXSLT.xs:570: error: parse error before "xmlXPathNewFloat" LibXSLT.xs:574: error: parse error before "xmlXPathNewCString" LibXSLT.xs: In function `XS_XML__LibXSLT_register_function': LibXSLT.xs:633: error: parse error before "xmlChar" LibXSLT.xs: In function `XS_XML__LibXSLT__parse_stylesheet': LibXSLT.xs:672: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:672: error: parse error before "doc_copy" LibXSLT.xs:678: error: parse error before "x_PmmSvNode" LibXSLT.xs:683: error: `xmlInputMatchCallback' undeclared (first use i +n this function) LibXSLT.xs:683: error: parse error before "LibXSLT_input_match" LibXSLT.xs:688: error: `doc_copy' undeclared (first use in this functi +on) LibXSLT.xs:689: error: invalid type argument of `->' LibXSLT.xs:693: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:693: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs: In function `XS_XML__LibXSLT__parse_stylesheet_file': LibXSLT.xs:718: error: `xmlInputMatchCallback' undeclared (first use i +n this function) LibXSLT.xs:718: error: parse error before "LibXSLT_input_match" LibXSLT.xs:724: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:724: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_transform': LibXSLT.xs:753: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:753: error: parse error before "real_dom" LibXSLT.xs:761: error: parse error before "x_PmmSvNode" LibXSLT.xs:781: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:781: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs:786: error: `xmlInputMatchCallback' undeclared (first use i +n this function) LibXSLT.xs:786: error: parse error before "LibXSLT_input_match" LibXSLT.xs:790: error: `real_dom' undeclared (first use in this functi +on) LibXSLT.xs:803: error: `XML_HTML_DOCUMENT_NODE' undeclared (first use +in this function) LibXSLT.xs:804: error: dereferencing pointer to incomplete type LibXSLT.xs:805: error: dereferencing pointer to incomplete type LibXSLT.xs:807: error: dereferencing pointer to incomplete type LibXSLT.xs:808: error: dereferencing pointer to incomplete type LibXSLT.xs:810: error: `xmlNodePtr' undeclared (first use in this func +tion) LibXSLT.xs:810: error: parse error before "real_dom" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_transform_file': LibXSLT.xs:822: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:822: error: parse error before "real_dom" LibXSLT.xs:841: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:841: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs:846: error: `real_dom' undeclared (first use in this functi +on) LibXSLT.xs:853: error: `XML_HTML_DOCUMENT_NODE' undeclared (first use +in this function) LibXSLT.xs:854: error: dereferencing pointer to incomplete type LibXSLT.xs:855: error: dereferencing pointer to incomplete type LibXSLT.xs:857: error: dereferencing pointer to incomplete type LibXSLT.xs:858: error: dereferencing pointer to incomplete type LibXSLT.xs:860: error: `xmlNodePtr' undeclared (first use in this func +tion) LibXSLT.xs:860: error: parse error before "real_dom" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_output_string': LibXSLT.xs:879: error: `xmlOutputBufferPtr' undeclared (first use in t +his function) LibXSLT.xs:879: error: parse error before "output" LibXSLT.xs:881: error: syntax error before '*' token LibXSLT.xs:882: error: `xmlCharEncodingHandlerPtr' undeclared (first u +se in this function) LibXSLT.xs:883: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:885: error: dereferencing pointer to incomplete type LibXSLT.xs:885: error: dereferencing pointer to incomplete type LibXSLT.xs:887: error: `encoder' undeclared (first use in this functio +n) LibXSLT.xs:889: error: parse error before "xmlChar" LibXSLT.xs:895: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:895: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs:901: error: `xmlOutputWriteCallback' undeclared (first use +in this function) LibXSLT.xs:901: error: parse error before "LibXSLT_iowrite_scalar" LibXSLT.xs:910: error: parse error before "xmlChar" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_output_fh': LibXSLT.xs:922: error: `xmlOutputBufferPtr' undeclared (first use in t +his function) LibXSLT.xs:922: error: parse error before "output" LibXSLT.xs:923: error: syntax error before '*' token LibXSLT.xs:924: error: `xmlCharEncodingHandlerPtr' undeclared (first u +se in this function) LibXSLT.xs:925: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:927: error: dereferencing pointer to incomplete type LibXSLT.xs:927: error: dereferencing pointer to incomplete type LibXSLT.xs:929: error: `encoder' undeclared (first use in this functio +n) LibXSLT.xs:931: error: parse error before "xmlChar" LibXSLT.xs:937: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:937: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs:943: error: `xmlOutputWriteCallback' undeclared (first use +in this function) LibXSLT.xs:943: error: parse error before "LibXSLT_iowrite_fh" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_output_file': LibXSLT.xs:959: error: `xmlDocPtr' undeclared (first use in this funct +ion) LibXSLT.xs:959: error: parse error before "doc" LibXSLT.xs:962: error: `xmlGenericErrorFunc' undeclared (first use in +this function) LibXSLT.xs:962: error: parse error before "LibXSLT_debug_handler" LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_media_type': LibXSLT.xs:973: error: dereferencing pointer to incomplete type LibXSLT.xs:976: error: `xmlNodePtr' undeclared (first use in this func +tion) LibXSLT.xs:976: error: parse error before "root" LibXSLT.xs:978: error: `cld' undeclared (first use in this function) LibXSLT.xs:989: warning: assignment makes pointer from integer without + a cast LibXSLT.xs:995: error: dereferencing pointer to incomplete type LibXSLT.xs:996: error: dereferencing pointer to incomplete type LibXSLT.xs:999: error: dereferencing pointer to incomplete type LibXSLT.xs: In function `XS_XML__LibXSLT__Stylesheet_output_encoding': LibXSLT.xs:1012: error: dereferencing pointer to incomplete type LibXSLT.xs: In function `boot_XML__LibXSLT': LibXSLT.xs:590: error: `LIBXML_TEST_VERSION' undeclared (first use in +this function) LibXSLT.xs:590: error: parse error before "xsltMaxDepth" /usr/include/stdio.h: At top level: /sw/include/libxslt/xsltInternals.h:294: error: storage size of `numda +ta' isn't known make: *** [LibXSLT.o] Error 1
----------
Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.

Replies are listed 'Best First'.
Re^7: XML::LibXSLT on OS X install problem
by graff (Chancellor) on Feb 07, 2006 at 05:33 UTC
    Now, I've got tree.h (and related headers) on my system in two places: /sw/include/libxml2/libxml/tree.h and /sw/include/gnome-xml/tree.h

    The question is, which one and how to get it in the Makefile?

    I'd say the build wants the libxml/tree.h, but it looks like you have one more directory layer under /sw/include than the build is expecting. Is it the case that "/sw/include/libxml/" does not exist? (If it does exist, what is that?)

    If there currently is no "/sw/include/libxml" directory on your machine, then the next thing to try (using the unix shell) is:

    cd /sw/include ln -s libxml2/libxml libxml
    That creates a symbolic link whose absolute path is "/sw/include/libxml", and whose target (the absolute path that it links to) is "/sw/include/libxml2/libxml". Once that is done, go back to build directory and try again (maybe starting with just "make" will suffice). The build should (I hope) be able to find the header files it's looking for now.

    (It's not a "make" thing, it's a path thing. You can go ahead and learn more about "make" anyway, but don't expect it to be a quick study.)

      Thanks graff. I don't know why, but I figured it wasn't kosher to use a symlink, that there must be some variable to set in the Makefile.

      Thanks for all your help. Make worked just fine this time.

      ----------
      Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.