=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for openbfdd-0.5.3 /usr/pkg/bin/gmake all-am gmake[1]: Entering directory '/pbulk/work/net/openbfdd/work/OpenBFDD-0.5.3' CXX common.o CXX log.o CXX SmartPointer.o CXX threads.o CXX bfd.o CXX utils.o CXX TimeSpec.o CXX Socket.o CXX RecvMsg.o In file included from SmartPointer.cpp:8: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ In file included from RecvMsg.h:9, from RecvMsg.cpp:7: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ CXX SockAddr.o CXX lookup3.o CXX compat.o lookup3.cpp: In function 'uint32_t hashword(const uint32_t*, size_t, uint32_t)': lookup3.cpp:215:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 215 | case 3 : c+=k[2]; | ~^~~~~~ lookup3.cpp:216:3: note: here 216 | case 2 : b+=k[1]; | ^~~~ lookup3.cpp:216:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 216 | case 2 : b+=k[1]; | ~^~~~~~ lookup3.cpp:217:3: note: here 217 | case 1 : a+=k[0]; | ^~~~ lookup3.cpp: In function 'void hashword2(const uint32_t*, size_t, uint32_t*, uint32_t*)': lookup3.cpp:261:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 261 | case 3 : c+=k[2]; | ~^~~~~~ lookup3.cpp:262:3: note: here 262 | case 2 : b+=k[1]; | ^~~~ lookup3.cpp:262:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 262 | case 2 : b+=k[1]; | ~^~~~~~ lookup3.cpp:263:3: note: here 263 | case 1 : a+=k[0]; | ^~~~ lookup3.cpp: In function 'uint32_t hashlittle(const void*, size_t, uint32_t)': lookup3.cpp:450:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 450 | case 12: c+=((uint32_t)k[11])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:451:5: note: here 451 | case 11: c+=((uint32_t)k[10])<<16; | ^~~~ lookup3.cpp:451:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 451 | case 11: c+=((uint32_t)k[10])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:452:5: note: here 452 | case 10: c+=((uint32_t)k[9])<<8; | ^~~~ lookup3.cpp:452:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 452 | case 10: c+=((uint32_t)k[9])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:453:5: note: here 453 | case 9 : c+=k[8]; | ^~~~ lookup3.cpp:453:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 453 | case 9 : c+=k[8]; | ~^~~~~~ lookup3.cpp:454:5: note: here 454 | case 8 : b+=((uint32_t)k[7])<<24; | ^~~~ lookup3.cpp:454:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 454 | case 8 : b+=((uint32_t)k[7])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:455:5: note: here 455 | case 7 : b+=((uint32_t)k[6])<<16; | ^~~~ lookup3.cpp:455:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 455 | case 7 : b+=((uint32_t)k[6])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:456:5: note: here 456 | case 6 : b+=((uint32_t)k[5])<<8; | ^~~~ lookup3.cpp:456:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 456 | case 6 : b+=((uint32_t)k[5])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:457:5: note: here 457 | case 5 : b+=k[4]; | ^~~~ lookup3.cpp:457:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 457 | case 5 : b+=k[4]; | ~^~~~~~ lookup3.cpp:458:5: note: here 458 | case 4 : a+=((uint32_t)k[3])<<24; | ^~~~ lookup3.cpp:458:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 458 | case 4 : a+=((uint32_t)k[3])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:459:5: note: here 459 | case 3 : a+=((uint32_t)k[2])<<16; | ^~~~ lookup3.cpp:459:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 459 | case 3 : a+=((uint32_t)k[2])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:460:5: note: here 460 | case 2 : a+=((uint32_t)k[1])<<8; | ^~~~ lookup3.cpp:460:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 460 | case 2 : a+=((uint32_t)k[1])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:461:5: note: here 461 | case 1 : a+=k[0]; | ^~~~ lookup3.cpp: In function 'void hashlittle2(const void*, size_t, uint32_t*, uint32_t*)': lookup3.cpp:637:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 637 | case 12: c+=((uint32_t)k[11])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:638:5: note: here 638 | case 11: c+=((uint32_t)k[10])<<16; | ^~~~ lookup3.cpp:638:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 638 | case 11: c+=((uint32_t)k[10])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:639:5: note: here 639 | case 10: c+=((uint32_t)k[9])<<8; | ^~~~ lookup3.cpp:639:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 639 | case 10: c+=((uint32_t)k[9])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:640:5: note: here 640 | case 9 : c+=k[8]; | ^~~~ lookup3.cpp:640:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 640 | case 9 : c+=k[8]; | ~^~~~~~ lookup3.cpp:641:5: note: here 641 | case 8 : b+=((uint32_t)k[7])<<24; | ^~~~ lookup3.cpp:641:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 641 | case 8 : b+=((uint32_t)k[7])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:642:5: note: here 642 | case 7 : b+=((uint32_t)k[6])<<16; | ^~~~ lookup3.cpp:642:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 642 | case 7 : b+=((uint32_t)k[6])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:643:5: note: here 643 | case 6 : b+=((uint32_t)k[5])<<8; | ^~~~ lookup3.cpp:643:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 643 | case 6 : b+=((uint32_t)k[5])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:644:5: note: here 644 | case 5 : b+=k[4]; | ^~~~ lookup3.cpp:644:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 644 | case 5 : b+=k[4]; | ~^~~~~~ lookup3.cpp:645:5: note: here 645 | case 4 : a+=((uint32_t)k[3])<<24; | ^~~~ lookup3.cpp:645:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 645 | case 4 : a+=((uint32_t)k[3])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:646:5: note: here 646 | case 3 : a+=((uint32_t)k[2])<<16; | ^~~~ lookup3.cpp:646:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 646 | case 3 : a+=((uint32_t)k[2])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:647:5: note: here 647 | case 2 : a+=((uint32_t)k[1])<<8; | ^~~~ lookup3.cpp:647:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 647 | case 2 : a+=((uint32_t)k[1])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:648:5: note: here 648 | case 1 : a+=k[0]; | ^~~~ lookup3.cpp: In function 'uint32_t hashbig(const void*, size_t, uint32_t)': lookup3.cpp:768:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 768 | case 12: c+=k[11]; | ~^~~~~~~ lookup3.cpp:769:5: note: here 769 | case 11: c+=((uint32_t)k[10])<<8; | ^~~~ lookup3.cpp:769:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 769 | case 11: c+=((uint32_t)k[10])<<8; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:770:5: note: here 770 | case 10: c+=((uint32_t)k[9])<<16; | ^~~~ lookup3.cpp:770:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 770 | case 10: c+=((uint32_t)k[9])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:771:5: note: here 771 | case 9 : c+=((uint32_t)k[8])<<24; | ^~~~ lookup3.cpp:771:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 771 | case 9 : c+=((uint32_t)k[8])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:772:5: note: here 772 | case 8 : b+=k[7]; | ^~~~ lookup3.cpp:772:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 772 | case 8 : b+=k[7]; | ~^~~~~~ lookup3.cpp:773:5: note: here 773 | case 7 : b+=((uint32_t)k[6])<<8; | ^~~~ lookup3.cpp:773:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 773 | case 7 : b+=((uint32_t)k[6])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:774:5: note: here 774 | case 6 : b+=((uint32_t)k[5])<<16; | ^~~~ lookup3.cpp:774:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 774 | case 6 : b+=((uint32_t)k[5])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:775:5: note: here 775 | case 5 : b+=((uint32_t)k[4])<<24; | ^~~~ lookup3.cpp:775:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 775 | case 5 : b+=((uint32_t)k[4])<<24; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:776:5: note: here 776 | case 4 : a+=k[3]; | ^~~~ lookup3.cpp:776:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 776 | case 4 : a+=k[3]; | ~^~~~~~ lookup3.cpp:777:5: note: here 777 | case 3 : a+=((uint32_t)k[2])<<8; | ^~~~ lookup3.cpp:777:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 777 | case 3 : a+=((uint32_t)k[2])<<8; | ~^~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:778:5: note: here 778 | case 2 : a+=((uint32_t)k[1])<<16; | ^~~~ lookup3.cpp:778:15: warning: this statement may fall through [-Wimplicit-fallthrough=] 778 | case 2 : a+=((uint32_t)k[1])<<16; | ~^~~~~~~~~~~~~~~~~~~~~~ lookup3.cpp:779:5: note: here 779 | case 1 : a+=((uint32_t)k[0])<<24; | ^~~~ CXX AddrType.o CXX Logger.o CXX LogException.o CXX BeaconMain.o In file included from Socket.h:10, from Socket.cpp:7: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ CXX Beacon.o utils.cpp: In function 'UtilsTLSData* getUtilsTLS()': utils.cpp:67:16: error: 'pthread_getspecific' was not declared in this scope 67 | void *data = pthread_getspecific(gUtilsTLSKey); | ^~~~~~~~~~~~~~~~~~~ Logger.cpp: In member function 'bool LogAutoLock::ReadLock()': Logger.cpp:50:9: error: 'pthread_rwlock_rdlock' was not declared in this scope; did you mean 'pthread_rwlock_t'? 50 | if (pthread_rwlock_rdlock(m_rwLock)) | ^~~~~~~~~~~~~~~~~~~~~ | pthread_rwlock_t utils.cpp:75:12: error: 'pthread_setspecific' was not declared in this scope 75 | if (0 != pthread_setspecific(gUtilsTLSKey, tlsData)) | ^~~~~~~~~~~~~~~~~~~ Logger.cpp: In member function 'bool LogAutoLock::WriteLock()': Logger.cpp:61:9: error: 'pthread_rwlock_wrlock' was not declared in this scope; did you mean 'pthread_rwlock_t'? 61 | if (pthread_rwlock_wrlock(m_rwLock)) | ^~~~~~~~~~~~~~~~~~~~~ | pthread_rwlock_t utils.cpp: In function 'bool UtilsInit()': utils.cpp:91:13: error: 'pthread_key_create' was not declared in this scope; did you mean 'pthread_key_t'? 91 | int ret = pthread_key_create(&gUtilsTLSKey, deleteUtilsTLS); | ^~~~~~~~~~~~~~~~~~ | pthread_key_t Logger.cpp: In member function 'bool LogAutoLock::UnLock()': Logger.cpp:73:9: error: 'pthread_rwlock_unlock' was not declared in this scope; did you mean 'pthread_rwlock_t'? 73 | if (pthread_rwlock_unlock(m_rwLock)) | ^~~~~~~~~~~~~~~~~~~~~ | pthread_rwlock_t utils.cpp:99:12: error: 'pthread_setspecific' was not declared in this scope 99 | if (0 != pthread_setspecific(gUtilsTLSKey, (void *)(uintptr_t)(0xbefed))) | ^~~~~~~~~~~~~~~~~~~ Logger.cpp: In constructor 'Logger::Logger()': Logger.cpp:98:7: error: 'pthread_rwlock_init' was not declared in this scope; did you mean 'pthread_rwlock_t'? 98 | if (pthread_rwlock_init(&m_settingsLock, NULL)) | ^~~~~~~~~~~~~~~~~~~ | pthread_rwlock_t utils.cpp:102:16: error: 'pthread_getspecific' was not declared in this scope 102 | void *data = pthread_getspecific(gUtilsTLSKey); | ^~~~~~~~~~~~~~~~~~~ Logger.cpp: In destructor 'virtual Logger::~Logger()': Logger.cpp:141:7: error: 'pthread_rwlock_destroy' was not declared in this scope; did you mean 'pthread_rwlockattr_t'? 141 | if (pthread_rwlock_destroy(&m_settingsLock)) | ^~~~~~~~~~~~~~~~~~~~~~ | pthread_rwlockattr_t utils.cpp:106:12: error: 'pthread_setspecific' was not declared in this scope 106 | if (0 != pthread_setspecific(gUtilsTLSKey, NULL)) | ^~~~~~~~~~~~~~~~~~~ Logger.cpp: In member function 'void Logger::logMsg(const TypeInfo*, const char*, __va_list_tag*)': Logger.cpp:472:21: error: aggregate 'Logger::logMsg(const TypeInfo*, const char*, __va_list_tag*)::timespec extendedNow' has incomplete type and cannot be defined 472 | struct timespec extendedNow; | ^~~~~~~~~~~ Logger.cpp:474:27: error: 'CLOCK_REALTIME' was not declared in this scope 474 | if (0 > clock_gettime(CLOCK_REALTIME, &extendedNow)) | ^~~~~~~~~~~~~~ CXX CommandProcessor.o Logger.cpp:474:13: error: 'clock_gettime' was not declared in this scope 474 | if (0 > clock_gettime(CLOCK_REALTIME, &extendedNow)) | ^~~~~~~~~~~~~ Logger.cpp:481:21: error: aggregate 'Logger::logMsg(const TypeInfo*, const char*, __va_list_tag*)::timespec extendedNow' has incomplete type and cannot be defined 481 | struct timespec extendedNow; | ^~~~~~~~~~~ Logger.cpp:483:27: error: 'CLOCK_MONOTONIC' was not declared in this scope 483 | if (0 > clock_gettime(CLOCK_MONOTONIC, &extendedNow)) | ^~~~~~~~~~~~~~~ Logger.cpp:483:13: error: 'clock_gettime' was not declared in this scope 483 | if (0 > clock_gettime(CLOCK_MONOTONIC, &extendedNow)) | ^~~~~~~~~~~~~ Logger.cpp:513:26: error: 'time' was not declared in this scope 513 | time_t now = (time_t)time(NULL); | ^~~~ Logger.cpp:14:1: note: 'time' is defined in header ''; did you forget to '#include '? 13 | #include +++ |+#include 14 | CXX SchedulerBase.o utils.cpp: At global scope: utils.cpp:55:13: warning: 'void deleteUtilsTLS(void*)' defined but not used [-Wunused-function] 55 | static void deleteUtilsTLS(void *data) | ^~~~~~~~~~~~~~ gmake[1]: *** [Makefile:545: utils.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: *** [Makefile:545: Logger.o] Error 1 In file included from Session.h:14, from Beacon.h:12, from BeaconMain.cpp:7: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ In file included from Session.h:14, from Beacon.h:12, from Beacon.cpp:7: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ In file included from Session.h:14, from Beacon.h:12, from CommandProcessor.cpp:9: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ In file included from SchedulerBase.cpp:9: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ SchedulerBase.cpp: In constructor 'SchedulerBase::SchedulerBase()': SchedulerBase.cpp:301:18: error: 'pthread_self' was not declared in this scope; did you mean 'pthread_t'? 301 | m_mainThread = pthread_self(); | ^~~~~~~~~~~~ | pthread_t SchedulerBase.cpp: In member function 'virtual bool SchedulerBase::IsMainThread()': SchedulerBase.cpp:498:43: error: 'pthread_self' was not declared in this scope; did you mean 'pthread_t'? 498 | return(bool)pthread_equal(m_mainThread, pthread_self()); | ^~~~~~~~~~~~ | pthread_t SchedulerBase.cpp:498:15: error: 'pthread_equal' was not declared in this scope; did you mean 'thread_local'? 498 | return(bool)pthread_equal(m_mainThread, pthread_self()); | ^~~~~~~~~~~~~ | thread_local Beacon.cpp: In member function 'bool Beacon::QueueOperation(OperationCallback, void*, bool)': Beacon.cpp:365:17: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 365 | catch (std::exception) | ^~~~~~~~~ gmake[1]: *** [Makefile:545: SchedulerBase.o] Error 1 gmake[1]: Leaving directory '/pbulk/work/net/openbfdd/work/OpenBFDD-0.5.3' gmake: *** [Makefile:405: all] Error 2 *** Error code 2 Stop. make[1]: stopped making "all" in /usr/pkgsrc/net/openbfdd *** Error code 1 Stop. make: stopped making "all" in /usr/pkgsrc/net/openbfdd