[EMAIL PROTECTED] wrote on Wed, 15 Aug 2007 12:41 -0400:
> I m compiling pvfs-2.6.3 with IB support (ofed-1.2). Below is my config flag:
> 
> ./configure --prefix=/tmp --with-db=/tmp/BerkeleyDB 
> --with-openib=/usr/local/ofed --with-openib-libs=/usr
> /local/ofed/lib64 --with-openib-includes=/usr/local/ofed/include 
> --with-mpi=/home/ouyangx/mpich2-install 
> --with-kernel=/usr/src/linux-2.6.20.5
> 
> make
> 
> 
> During make, I received some warning msg. One bunch of warnings (as follows) 
> reoccurs 3 times:
> 
> 
> In file included from src/io/bmi/bmi_ib/openib.c:19:
> /usr/local/ofed/include/infiniband/verbs.h:635: warning: declaration of 
> 'access' shadows a global declaration
> /usr/include/unistd.h:256: warning: shadowed declaration is here
> /usr/local/ofed/include/infiniband/verbs.h:640: warning: declaration of 
> 'access' shadows a global declaration
> /usr/include/unistd.h:256: warning: shadowed declaration is here
> /usr/local/ofed/include/infiniband/verbs.h:773: warning: declaration of 
> 'index' shadows a global declaration
> /usr/include/string.h:304: warning: shadowed declaration is here
> /usr/local/ofed/include/infiniband/verbs.h:779: warning: declaration of 
> 'index' shadows a global declaration
> /usr/include/string.h:304: warning: shadowed declaration is here
> /usr/local/ofed/include/infiniband/verbs.h:795: warning: declaration of 
> 'access' shadows a global declaration
> /usr/include/unistd.h:256: warning: shadowed declaration is here
> 
> 
> It seems some local variables mask out global variables. Will this cause 
> problems in my future programming? thanks!

That's glibc and openfabrics fighting each other.  PVFS doesn't have
any way to fix it.  It's not a real problem.  Best advice: do not
use the "-Wshadow" option to gcc.

                -- Pete
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to