pkgsrc-Users archive

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

Re: Error in configure stage for new package




On 03/14/2017 11:08 AM, Greg Troxel wrote:
> 
> 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!)
> 

Thank you, Greg, I'm following your advice.

>> 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.
> 


You're right. Thank you. One step forward ;-)

I'll let you know when I have git access in wip and have pushed my package.

Best regards,


Alberto Mijares

Attachment: 0x7BBAE11B.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index