have_library: checking for -llog... -------------------- no

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -llog  -lm -lpthread  -lc"
/usr/bin/ld: cannot find -llog: No such file or directory
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: 
15: int t(void) { ; return 0; }
/* end */

--------------------

have_header: checking for syslog.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <syslog.h>
/* end */

--------------------

have_func: checking for openlog()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'openlog' undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))openlog; return !p; }
      |                                                         ^~~~~~~
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))openlog; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void openlog();
15: int t(void) { openlog(); return 0; }
/* end */

--------------------

have_func: checking for setlogmask()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'setlogmask' undeclared (first use in this function); did you mean 'setlogin'?
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))setlogmask; return !p; }
      |                                                         ^~~~~~~~~~
      |                                                         setlogin
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))setlogmask; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/syslog-0.3.0/ext/syslog -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void setlogmask();
15: int t(void) { setlogmask(); return 0; }
/* end */

--------------------

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_SYSLOG_H 1
4: #define HAVE_OPENLOG 1
5: #define HAVE_SETLOGMASK 1
6: #endif
/* end */

