tfcollins / homebrew-formulae

Some useful homebrew taps
4 stars 3 forks source link

libad9361-iio build failed #22

Closed no111u3 closed 1 year ago

no111u3 commented 1 year ago

brew install libad9361-iio failed by

==> Installing tfcollins/sdr/iio-oscilloscope dependency: tfcollins/sdr/libad9361-iio
==> cmake .. -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/nis/Library/Logs/Homebrew/libad9361-iio/02.make:
            snprintf(name, sizeof(name), "altvoltage%d", j);
            ^
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_fmcomms5_phase_sync.c:484:13: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_baseband_auto_rate.c:131:9: error: call to undeclared library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        len += snprintf(buf + len, FIR_BUF_SIZE - len, "RX 3 GAIN -6 DEC %d\n", dec);
               ^
/tmp/libad9361-iio-20230809-90214-c6uwyu/libad9361-iio-0.2/ad9361_baseband_auto_rate.c:131:9: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 error generated.
1 error generated.
tfcollins commented 1 year ago

Can you provide more information about your build system? What macOS version are you using? Version of brew? Architecture of machine?

no111u3 commented 1 year ago

Mac OS Ventura 13.5, M2(arm64), Homebrew 4.1.4-24-gf18aa6f