Apologies; I'm not a programmer and don't use git so I've tried to manually apply this edit. If I've done it correctly the fix has not worked.
I downloaded the latest source for stress-cyclic.c and compared it with the version from the tarball and there appear to be a few other fixes included:
# cp ../new_stress-cyclic.c stress-cyclic.c
#
# make
autoconfig: using -lz
autoconfig: using -lcrypt
autoconfig: using -lrt
... ... ...
... ... ...
cc -Wall -Wextra -DVERSION="0.08.06" -O2 -std=gnu99 -DHAVE_LIB_Z -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_SCTP -DHAVE_LIB_AIO -DHAVE_KEYUTILS_H -DHAVE_XATTR_H -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -c -o stress-flock.o stress-flock.c
cc -Wall -Wextra -DVERSION="0.08.06" -O2 -std=gnu99 -DHAVE_LIB_Z -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_SCTP -DHAVE_LIB_AIO -DHAVE_KEYUTILS_H -DHAVE_XATTR_H -DHAVE_FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -c -o stress-fanotify.o stress-fanotify.c
stress-fanotify.c:30:26: error: sys/fanotify.h: No such file or directory
stress-fanotify.c: In function 'fanotify_event_init':
stress-fanotify.c:70: warning: implicit declaration of function 'fanotify_init'
stress-fanotify.c:91: warning: implicit declaration of function 'fanotify_mark'
stress-fanotify.c:91: error: 'FAN_MARK_ADD' undeclared (first use in this function)
stress-fanotify.c:91: error: (Each undeclared identifier is reported only once
stress-fanotify.c:91: error: for each function it appears in.)
stress-fanotify.c:91: error: 'FAN_MARK_MOUNT' undeclared (first use in this function)
stress-fanotify.c:92: error: 'FAN_ACCESS' undeclared (first use in this function)
stress-fanotify.c:92: error: 'FAN_MODIFY' undeclared (first use in this function)
stress-fanotify.c:92: error: 'FAN_OPEN' undeclared (first use in this function)
stress-fanotify.c:92: error: 'FAN_CLOSE' undeclared (first use in this function)
stress-fanotify.c:93: error: 'FAN_ONDIR' undeclared (first use in this function)
stress-fanotify.c:93: error: 'FAN_EVENT_ON_CHILD' undeclared (first use in this function)
stress-fanotify.c: In function 'stress_fanotify':
stress-fanotify.c:221: warning: implicit declaration of function 'FAN_EVENT_OK'
stress-fanotify.c:224: error: dereferencing pointer to incomplete type
stress-fanotify.c:224: error: 'FAN_NOFD' undeclared (first use in this function)
stress-fanotify.c:224: error: dereferencing pointer to incomplete type
stress-fanotify.c:225: error: dereferencing pointer to incomplete type
stress-fanotify.c:225: error: 'FAN_OPEN' undeclared (first use in this function)
stress-fanotify.c:227: error: dereferencing pointer to incomplete type
stress-fanotify.c:227: error: 'FAN_CLOSE_WRITE' undeclared (first use in this function)
stress-fanotify.c:229: error: dereferencing pointer to incomplete type
stress-fanotify.c:229: error: 'FAN_CLOSE_NOWRITE' undeclared (first use in this function)
stress-fanotify.c:231: error: dereferencing pointer to incomplete type
stress-fanotify.c:231: error: 'FAN_ACCESS' undeclared (first use in this function)
stress-fanotify.c:233: error: dereferencing pointer to incomplete type
stress-fanotify.c:233: error: 'FAN_MODIFY' undeclared (first use in this function)
stress-fanotify.c:237: error: dereferencing pointer to incomplete type
stress-fanotify.c:239: warning: implicit declaration of function 'FAN_EVENT_NEXT'
stress-fanotify.c:239: warning: assignment makes pointer from integer without a cast
make: *** [stress-fanotify.o] Error 1
#
Hi Colin,
Apologies; I'm not a programmer and don't use git so I've tried to manually apply this edit. If I've done it correctly the fix has not worked.
I downloaded the latest source for stress-cyclic.c and compared it with the version from the tarball and there appear to be a few other fixes included:
# diff stress-cyclic.c new_stress-cyclic.c bytes(" cyclic- sleep", cyclic_sleep, "cyclic- sleep", cyclic_sleep, bytes(" cyclic- prio", cyclic_prio, 1, 100); "cyclic- prio", cyclic_prio, 1, 100); bytes(" cyclic- dist", cyclic_dist, 1, 10000000); "cyclic- dist", cyclic_dist, 1, 10000000); RLIMIT_ RTTIME)
82c82
< check_range_
---
> check_range(
110c110
< check_range_
---
> check_range(
119c119
< check_range_
---
> check_range(
603a604
> #if defined(
606a608
> #endif
716a719,720
>
>
#
When I ran the make:
# cp ../new_ stress- cyclic. c stress-cyclic.c FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -c -o stress-flock.o stress-flock.c FLOAT_DECIMAL -DHAVE_ASM_NOP -DHAVE_ALIGNED_64 -DHAVE_ALIGNED_128 -DHAVE_ALIGNED_64K -DHAVE_AFFINITY -DHAVE_MADVISE -DHAVE_SEM_POSIX -DHAVE_MQ_POSIX -DHAVE_MQ_SYSV -DHAVE_SHM_SYSV -c -o stress-fanotify.o stress-fanotify.c fanotify. c:30:26: error: sys/fanotify.h: No such file or directory event_init' : fanotify. c:70: warning: implicit declaration of function 'fanotify_init' fanotify. c:91: warning: implicit declaration of function 'fanotify_mark' fanotify. c:91: error: 'FAN_MARK_ADD' undeclared (first use in this function) fanotify. c:91: error: (Each undeclared identifier is reported only once fanotify. c:91: error: for each function it appears in.) fanotify. c:91: error: 'FAN_MARK_MOUNT' undeclared (first use in this function) fanotify. c:92: error: 'FAN_ACCESS' undeclared (first use in this function) fanotify. c:92: error: 'FAN_MODIFY' undeclared (first use in this function) fanotify. c:92: error: 'FAN_OPEN' undeclared (first use in this function) fanotify. c:92: error: 'FAN_CLOSE' undeclared (first use in this function) fanotify. c:93: error: 'FAN_ONDIR' undeclared (first use in this function) fanotify. c:93: error: 'FAN_EVENT_ ON_CHILD' undeclared (first use in this function) fanotify. c:221: warning: implicit declaration of function 'FAN_EVENT_OK' fanotify. c:224: error: dereferencing pointer to incomplete type fanotify. c:224: error: 'FAN_NOFD' undeclared (first use in this function) fanotify. c:224: error: dereferencing pointer to incomplete type fanotify. c:225: error: dereferencing pointer to incomplete type fanotify. c:225: error: 'FAN_OPEN' undeclared (first use in this function) fanotify. c:227: error: dereferencing pointer to incomplete type fanotify. c:227: error: 'FAN_CLOSE_WRITE' undeclared (first use in this function) fanotify. c:229: error: dereferencing pointer to incomplete type fanotify. c:229: error: 'FAN_CLOSE_NOWRITE' undeclared (first use in this function) fanotify. c:231: error: dereferencing pointer to incomplete type fanotify. c:231: error: 'FAN_ACCESS' undeclared (first use in this function) fanotify. c:233: error: dereferencing pointer to incomplete type fanotify. c:233: error: 'FAN_MODIFY' undeclared (first use in this function) fanotify. c:237: error: dereferencing pointer to incomplete type fanotify. c:239: warning: implicit declaration of function 'FAN_EVENT_NEXT' fanotify. c:239: warning: assignment makes pointer from integer without a cast
#
# make
autoconfig: using -lz
autoconfig: using -lcrypt
autoconfig: using -lrt
... ... ...
... ... ...
cc -Wall -Wextra -DVERSION="0.08.06" -O2 -std=gnu99 -DHAVE_LIB_Z -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_SCTP -DHAVE_LIB_AIO -DHAVE_KEYUTILS_H -DHAVE_XATTR_H -DHAVE_
cc -Wall -Wextra -DVERSION="0.08.06" -O2 -std=gnu99 -DHAVE_LIB_Z -DHAVE_LIB_CRYPT -DHAVE_LIB_RT -DHAVE_LIB_PTHREAD -DHAVE_LIB_SCTP -DHAVE_LIB_AIO -DHAVE_KEYUTILS_H -DHAVE_XATTR_H -DHAVE_
stress-
stress-fanotify.c: In function 'fanotify_
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-fanotify.c: In function 'stress_fanotify':
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
stress-
make: *** [stress-fanotify.o] Error 1
#