Running on Orange Pi 3.0.0 Bullseye with Linux 5.16.17-sun50iw9
> sudo ./build
wiringPi Build script
=====================
WiringPi Library
[UnInstall]
make: Nothing to be done for 'all'.
[Install Headers]
[Install Dynamic Lib]
WiringPi Devices Library
[UnInstall]
[Compile] onewire.c
onewire.c:131:10: error: conflicting types for ‘OneWireReadRoom’
131 | uint64_t OneWireReadRoom(uint8_t instId)
| ^~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:60:35: note: previous declaration of ‘OneWireReadRoom’ was here
60 | extern unsigned long long int OneWireReadRoom(uint8_t instId);
| ^~~~~~~~~~~~~~~
onewire.c:154:5: error: conflicting types for ‘OneWireSetDevice’
154 | int OneWireSetDevice(uint8_t instId, uint64_t rom)
| ^~~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:55:16: note: previous declaration of ‘OneWireSetDevice’ was here
55 | extern int OneWireSetDevice(uint8_t instId, unsigned long long int rom);
| ^~~~~~~~~~~~~~~~
onewire.c:179:5: error: conflicting types for ‘OneWireCrcCheck’
179 | int OneWireCrcCheck(uint64_t data8x8bit, uint8_t len)
| ^~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:50:16: note: previous declaration of ‘OneWireCrcCheck’ was here
50 | extern int OneWireCrcCheck(unsigned long long int data8x8bit, uint8_t len);
| ^~~~~~~~~~~~~~~
onewire.c: In function ‘OneWireSkipRom’:
onewire.c:355:1: warning: control reaches end of non-void function [-Wreturn-type]
355 | }
| ^
make: *** [Makefile:69: onewire.o] Error 1
Make Failed...
Please check the messages and fix any problems. If you're still stuck,
then please email all the output and as many details as you can to
projects@drogon.net
Running on Orange Pi 3.0.0 Bullseye with Linux 5.16.17-sun50iw9