Bug 4594 - implicit declaration of readahead() causes compilation failure
Summary: implicit declaration of readahead() causes compilation failure
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: VFS (show other bugs)
Version: 3.0.25
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Derrell Lipman
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-05-04 09:49 UTC by Derrell Lipman
Modified: 2007-05-06 22:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Derrell Lipman 2007-05-04 09:49:26 UTC
The configure test for whether readahead() is available, and the actual compilation of vfs_readahead.c which requires it use different flags.  If readahead() is available but is not explicitly declared, the configure test passes but the compilation fails.

If -Werror-implicit-function-declaration is going to be used during compilation, it should also be used during the configure tests so that configure will ignore features that will cause errors during compilation.
Comment 1 Derrell Lipman 2007-05-06 22:02:38 UTC
Fixed by checkin 22731.