[LU-6533] Missing include in wirecheck Created: 28/Apr/15  Updated: 08/May/15  Resolved: 08/May/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Henri Doreau (Inactive) Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

wirecheck.c won't build on some platforms due to a missing include.

make: Entering directory `/mnt/build/lustre-release/lustre/utils'
gcc -DHAVE_CONFIG_H -I. -I../.. -DCC="\"gcc\"" -include /mnt/build/lustre-release/config.h -I/mnt/build/lustre-release/libcfs/include -I/mnt/build/lustre-release/lnet/include -I/mnt/build/lustre-release/lustre/include -g -Wall -fPIC -D_GNU_SOURCE -g -O2 -Werror -MT wirecheck-wirecheck.o -MD -MP -MF .deps/wirecheck-wirecheck.Tpo -c -o wirecheck-wirecheck.o `test -f 'wirecheck.c' || echo './'`wirecheck.c
cc1: warnings being treated as errors
wirecheck.c: In function 'system_string':
wirecheck.c:2168: error: implicit declaration of function 'pipe'
wirecheck.c:2172: error: implicit declaration of function 'fork'
wirecheck.c:2177: error: implicit declaration of function 'dup2'
wirecheck.c:2191: error: implicit declaration of function 'close'
make: *** [wirecheck-wirecheck.o] Error 1



 Comments   
Comment by Gerrit Updater [ 28/Apr/15 ]

Henri Doreau (henri.doreau@cea.fr) uploaded a new patch: http://review.whamcloud.com/14626
Subject: LU-6533 utils: Include unistd.h in wirecheck
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b6b5ec0209dee95c70268e3fdf62a53f3ccfab13

Comment by Henri Doreau (Inactive) [ 28/Apr/15 ]

Patch is at http://review.whamcloud.com/14626

Comment by Peter Jones [ 28/Apr/15 ]

Nathaniel

Could you please take care of this patch?

Thanks

Peter

Comment by James A Simmons [ 28/Apr/15 ]

This is due to the libcfs.h header cleanups. What would be nice is to see libcfs.h to be removed from wire check.

Comment by Gerrit Updater [ 08/May/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14626/
Subject: LU-6533 utils: Include unistd.h in wirecheck
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1013e80927ef4449d2956461db6502f6192a3a61

Generated at Sat Feb 10 02:01:02 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.