On Centos/RHEL 6 and 7, stropts.h does not exist.
See https://bugzilla.redhat.com/show_bug.cgi?id=656245 for rationale.
watchdog does not compile:
[ 194s] + /usr/bin/make -j2
[ 194s] Making all in src
[ 194s] make[1]: Entering directory /home/abuild/rpmbuild/BUILD/watchdog-5.14/src'
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o file_stat.o file_stat.c
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o file_table.o file_table.c
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o fstab.o fstab.c
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o iface.o iface.c
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o ifdown.o ifdown.c
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o keep_alive.o keep_alive.c
[ 194s] keep_alive.c:22:41: fatal error: stropts.h: No such file or directory
[ 194s] #include <stropts.h> /* for ioctl() */
[ 194s] ^
[ 194s] compilation terminated.
[ 194s] gcc -DHAVE_CONFIG_H -I. -I../include -I../include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o load.o load.c
[ 194s] make[1]: *** [keep_alive.o] Error 1
[ 194s] make[1]: *** Waiting for unfinished jobs....
[ 194s] make[1]: Leaving directory/home/abuild/rpmbuild/BUILD/watchdog-5.14/src'
[ 194s] make: *** [all-recursive] Error 1
Suggested solution:
-#include <stropts.h>
+#include <sys ioctl.h=""></sys></stropts.h>
Dear Marcus,
Thanks for pointing this out, have fixed my version and guess that
Michael will do the official version soon.
I guess there was some HTML-like format mangling in the <sys ioctl.h=""> above!</sys>
Regards,
Paul
--
Dr. Paul S. Crawford
c/o Satellite Station
University of Dundee
Small's Wynd, Dundee, DD1 4HN
Email: psc@sat.dundee.ac.uk
Tel: +44 (0)1382 38 4687
The University of Dundee is a Scottish Registered Charity, No. SC015096
Related
Bugs:
#11Yep looks like it got mangled somewhat. Many thanks for the quick fix.
Where does the official version live if not on sf?
Dear Marcus,
Sourceforge is the official version that Michael Meskes maintains.
I have my own 'experimental' version that has fed in many of the recent
bug-fixes and improvements to that project. It was created to fix and
change some thing we needed here, and to allow that to be done more
rapidly than the usual submission & review process that official
projects have to follow.
Regards,
Paul
--
Dr. Paul S. Crawford
c/o Satellite Station
University of Dundee
Small's Wynd, Dundee, DD1 4HN
Email: psc@sat.dundee.ac.uk
Tel: +44 (0)1382 38 4687
The University of Dundee is a Scottish Registered Charity, No. SC015096
This seems to have been fixed some time ago - closing this bug.