Alberto Mijares <alberto.m%futurelinkcorporation.com@localhost> writes: > I'm working on a package for vicidial version of asterisk 11. I've been > following the instructions from pkgsrc developer handbook and now a have pkgsrc-wip would be a great place to do this work, so that others can follow along and help. (I have no idea what "vicidial version" means, but presumably that will be clear from DESCR!) > this issue: > > configure: *** XML documentation will not be available because the > 'libxml2' development package is missing. > configure: *** Please run the 'configure' script with the > '--disable-xmldoc' parameter option > configure: *** or install the 'libxml2' development package. > *** Error code 1 > > However, libxml2 is installed as a dependency. From > work/asterisk-11.22.0/config.log, I can see this > > configure:12361: clang -o conftest -O2 -I/usr/local/include > -I/usr/pkg/include/libxml2 -I/usr/include -L/usr/local/lib conftest.c > -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lxml2 -L/usr/lib -lz -L/usr/lib > -llzma -L/usr/lib -lm >&5 > conftest.c:58:12: fatal error: 'libxml/tree.h' file not found > #include <libxml/tree.h> > ^ > but there is actually the file /usr/pkg/include/libxml2/libxml/tree.h > and if I change to ${WRKSRC} and type the full clang instruction it > doesn't complain. I can't find your package in wip, so I can't actually read the Makefile :-) But if the package links against a library, you need to use buildlink3, not DEPENDS. pkgsrc, as a feature, hides libraries that aren't declared via buildlink3 from the package build. Look in work/.buildlink.
Attachment:
signature.asc
Description: PGP signature