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: unassig...@nondot.org
ReportedBy: sean....@googlemail.com
CC: llvm...@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.
_______________________________________________
LLVMbugs mailing list
LLVM...@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs