From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 Description of problem: The re_comp and re_exec man pages suggest includeing <regex.h> for re_comp and re_exec, but they don't tell you that you need to define _REGEX_RE_COMP (or that these functions are probably deprecated). Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.man re_exec 2.grep -5 re_exec /usr/include/regex.h Actual Results: 21:56:turing 11% gcc -W -Wall -c re_test.c re_test.c: In function `main': re_test.c:12: warning: implicit declaration of function `re_comp' re_test.c:12: warning: assignment makes pointer from integer without a cast re_test.c:16: warning: implicit declaration of function `re_exec' Expected Results: 21:57:turing 13% gcc -D_REGEX_RE_COMP -W -Wall -c re_test.c 21:57:turing 13% Additional info: Showed up while investigating http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76594
This is a documentation bug.
fixed in 1.60-1