pkgsrc-Users archive

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

Re: pkgsrc 2021Q4 on M1 Mac

* On 2021-04-14 at 20:20 BST, Mansour Moufid wrote:


   % clang --version
   Apple clang version 12.0.0 (clang-1200.0.32.29)
   Target: arm64-apple-darwin20.3.0
   Thread model: posix
   % clang x.c
   x.c:1:18: error: implicit declaration of function 'puts' is invalid in C99
   int main(void) { puts("Hello world!"); return 0; }
   1 error generated.

Putting -Wno-error=implicit-function-declaration in CFLAGS also worked.

I have exactly the same compiler, with the same behaviour, but I don't see the failures when building devel/zlib that you do, so not sure what's going on there...

Jonathan Perkin  -  Joyent, Inc.  -

Home | Main Index | Thread Index | Old Index