pkgsrc-Changes archive

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

Re: CVS commit: pkgsrc/multimedia/libmatroska



From: Thomas Klausner <wiz%NetBSD.org@localhost>
Subject: Re: CVS commit: pkgsrc/multimedia/libmatroska
Date: Thu, 22 Jan 2015 13:59:14 +0100

> On Thu, Jan 22, 2015 at 12:57:27PM +0000, Masatake Daimon wrote:
>> Module Name: pkgsrc
>> Committed By:        pho
>> Date:                Thu Jan 22 12:57:27 UTC 2015
>>
>> Modified Files:
>>      pkgsrc/multimedia/libmatroska: Makefile
>>
>> Log Message:
>> Add 'c' to USE_LANGUAGES
>>
>> Otherwise the configure script fails with:
>>   PKGSRC-WARNING: Something is trying to run the c compiler,
>>   PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
>
> This is not a failure, but just a warning. If the source code contains
> no c code, you should not add 'c' to USE_LANGUAGES; and since this
> builds on lots of platforms, I expect the it was ok before adding 'c'.

Sorry for my late reply. Since removing 'c' from USE_LANGUAGES
actually results in a configuration failure on Darwin, I investigated
the problem further. This is an excerpt from config.log:

  configure:7833: checking how to run the C preprocessor
  configure:7903: result: gcc -E -isystem /usr/include
  configure:7923: gcc -E -isystem /usr/include -isystem /usr/include -I/usr/pkg/include conftest.c
  PKGSRC-WARNING: Something is trying to run the c compiler,
  PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
  configure:7923: $? = 1
  configure:7953: error: in `/usr/pkgsrc/multimedia/libmatroska/work/libmatroska-1.4.2':
  configure:7955: error: C preprocessor "gcc -E -isystem /usr/include" fails sanity check
  See `config.log' for more details

It turned out that ${CPP} was defined as "${CC} -E -isystem
/usr/include" on this platform (see mk/platform/Darwin.mk). Because of
this, ${CPP} always fails unless USE_LANGUAGES contains 'c'.

So what should we do in this case?

Thanks,
_______________________________________________________
 - PHO -                         http://cielonegro.org/
OpenPGP public key: 1024D/1A86EF72
Fpr: 5F3E 5B5F 535C CE27 8254  4D1A 14E7 9CA7 1A86 EF72

Attachment: pgpAGpRNpYu1B.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index