Redhat 6 missing header files from /usr/include/stropts.h is a trick to recover.
When migrating our code from Redhat 5 to Redhat 6 and if we are using some header file like
So we got a compilation error because some of the development packages are missing at the time of installation.
Overview of Redhat 6 missing header file
To resolve this need to install particular or correct header in redhat6.
So now the question arises, how we can find the correct package?
Need to install package from yum command:-
yum to install oprofile-devel.
Above package is available for 34bit and 64 bit.
What this file is missing :-
'stropt.h' header file is STREAMS interface (STREAMS),
Suggested : Streams hasn’t been supported in Linux by default need to install package.
oprofile is a software and system profiler tool.
Resolution: Either remove or comment the header file otherwise install
'oprofile' software tool.
2 thoughts on “Linux: Redhat 6 missing header file stropts.h”