Comment 3 for bug 1700484

Revision history for this message
Andy Williams (wilandy) wrote :

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
82c82
< check_range_bytes("cyclic-sleep", cyclic_sleep,
---
> check_range("cyclic-sleep", cyclic_sleep,
110c110
< check_range_bytes("cyclic-prio", cyclic_prio, 1, 100);
---
> check_range("cyclic-prio", cyclic_prio, 1, 100);
119c119
< check_range_bytes("cyclic-dist", cyclic_dist, 1, 10000000);
---
> check_range("cyclic-dist", cyclic_dist, 1, 10000000);
603a604
> #if defined(RLIMIT_RTTIME)
606a608
> #endif
716a719,720
>
>
#

When I ran the make:

# 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
#