Menu

#110 open-vm-tools still fails to build with GCC 4.6 or later

closed
nobody
None
5
2011-07-24
2011-07-21
Nate Muench
No

I just downloaded the new release for open-vm-tools (2011.07.19-450511), There still appears to be issues, below are the remaining issues:

lib/file/
fileLockPrimitive.c:1404:8: error: variable 'cnt' set but not used

lib/file/
fileLockPosix.c:988:9: error: variable 'gotProcData' set but not used

I've also attached a partial build log (which is from later during the build), with more errors. It may not be related to GCC 4.6 but I thought I'd bring it up.

Discussion

  • Nate Muench

    Nate Muench - 2011-07-21
    • priority: 5 --> 9
     
  • Anonymous

    Anonymous - 2011-07-21

    Could you try to configure with "-Wno-unused-but-set-variable" in your CFLAGS? You're interested in building, not in keeping the code clean, so that should work for you. (FYI: it needs to come after "-Wall -Werror" in the gcc command line; I believe just setting CFLAGS in the configure command line will do that.)

    We still don't use gcc 4.6 internally, so it's hard for us to keep track of these warnings. We'll fix them as we run into them, but disabling that warning is probably the easier solution for you guys.

    As for the other build errors, they seem to be related to not finding the SunRPC functions in libc. Did something change in the version of glibc you're using? The functions used to be in libc.so. If they've moved, you may need to tweak LDFLAGS.

     
  • Anonymous

    Anonymous - 2011-07-21
    • priority: 9 --> 5
     
  • Nate Muench

    Nate Muench - 2011-07-22

    Adding "-Wno-unused-but-set-variable" to the CFLAGS worked, it built successfully.

     
  • Nate Muench

    Nate Muench - 2011-07-24
    • status: open --> closed
     

Log in to post a comment.