[LU-6073] lustre/tests/*.c should use sys/xattr.h rather than attr/xattr.h Created: 29/Dec/14 Updated: 16/Mar/16 Resolved: 20/Feb/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.7.0 |
| Fix Version/s: | Lustre 2.7.0, Lustre 2.8.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 16899 | ||||||||
| Description |
|
In lustre/tests/ {multiop,orphan_linkea_check}.c we should include sys/xattr.h (provided by glibc-headers) rather than attr/xattr.h (provided by libattr-devel) since the former is more likely to be installed and has all of the needed declarations. |
| Comments |
| Comment by James A Simmons [ 29/Dec/14 ] |
|
Just ran into this issue. |
| Comment by Bob Glossman (Inactive) [ 29/Dec/14 ] |
|
Just as a data point I had builds fail on several of my long time builder VMs due to this issue. I had not installed the libattr-devel rpms everywhere which contains the /usr/include/attr files. They were never needed before the mod using <attr/xattr.h> landed in master. While the problem went away as soon as I did install the additional rpm I agree that it would be preferable to use the more commonly available <sys/xattr.h> instead. |
| Comment by Gerrit Updater [ 29/Dec/14 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13197 |
| Comment by Gerrit Updater [ 04/Jan/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13197/ |
| Comment by John Hammond [ 05/Jan/15 ] |
|
Patch landed to master. |
| Comment by Jodi Levi (Inactive) [ 20/Feb/15 ] |
|
Reopening to add fix version |
| Comment by Gerrit Updater [ 25/Jun/15 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/15391 |
| Comment by Gerrit Updater [ 25/Jun/15 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/15392 |
| Comment by Gerrit Updater [ 08/Jul/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15391/ |
| Comment by Chris Horn [ 10/Jul/15 ] |
|
The patch at http://review.whamcloud.com/15392 resolves the issue reported in [ 280s] cc1: warnings being treated as errors [ 280s] lfs.c: In function 'migrate_copy_timestamps': [ 280s] lfs.c:481: error: implicit declaration of function 'futimes' and [ 175s] cc1: warnings being treated as errors [ 175s] libiam.c: In function 'lfix_root': [ 175s] libiam.c:155: error: implicit declaration of function 'cpu_to_le64' [ 175s] libiam.c:156: error: implicit declaration of function 'cpu_to_le16' [ 175s] libiam.c:187: error: implicit declaration of function 'cpu_to_le32' |
| Comment by Chris Horn [ 10/Jul/15 ] |
|
As an aside, it seems like bad practice to re-use a ticket like this, as well as piggy back the "#include" changes on http://review.whamcloud.com/15392 |