[LLVMbugs] [Bug 12367] New: Build fails on DynamicLibrary.cpp against Android ndk r7b

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 27 00:53:29 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12367

             Bug #: 12367
           Summary: Build fails on DynamicLibrary.cpp against Android ndk
                    r7b
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean.childs at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


error:
llvm/lib/Support/DynamicLibrary.cpp: In static member function 'static void*
llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(const char*)':
llvm/lib/Support/DynamicLibrary.cpp:165: error: lvalue required as unary '&'
operand
llvm/lib/Support/DynamicLibrary.cpp:166: error: lvalue required as unary '&'
operand
llvm/lib/Support/DynamicLibrary.cpp:167: error: lvalue required as unary '&'
operand


Content of DynamicLibrary at given lines:
// On linux we have a weird situation. The stderr/out/in symbols are both
// macros and global variables because of standards requirements. So, we
// boldly use the EXPLICIT_SYMBOL macro without checking for a #define first.
#if defined(__linux__)
  {
    EXPLICIT_SYMBOL(stderr);
    EXPLICIT_SYMBOL(stdout);
    EXPLICIT_SYMBOL(stdin);
  }
#else
  // For everything else, we want to check to make sure the symbol isn't
defined
  // as a macro before using EXPLICIT_SYMBOL.
  {
#ifndef stdin
    EXPLICIT_SYMBOL(stdin);
#endif
#ifndef stdout
    EXPLICIT_SYMBOL(stdout);
#endif
#ifndef stderr
    EXPLICIT_SYMBOL(stderr);
#endif
  }
#endif
#undef EXPLICIT_SYMBOL

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list