"has different visibility" warnings

Recently I started getting these warnings - thousands of them - and I'm not sure what I did to cause them or how to solve them:

ld: warning llvm::MemoryBuffer::getBufferStart() const has different visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and (2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning llvm::OwningPtr<llvm::MemoryBuffer>::OwningPtr(llvm::MemoryBuffer*)has different visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and (2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning llvm::OwningPtr<llvm::MemoryBuffer>::OwningPtr(llvm::MemoryBuffer*)has different visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and (2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning llvm::OwningPtr<llvm::MemoryBuffer>::~OwningPtr()has different visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and (2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning llvm::OwningPtr<llvm::MemoryBuffer>::~OwningPtr()has different visibility (1) in /usr/local/lib/libLLVMSupport.a(MemoryBuffer.o) and (2) in /usr/local/lib/libLLVMSupport.a(CommandLine.o)
ld: warning llvm::APInt::isSingleWord() consthas different visibility (2) in /usr/local/lib/libLLVMTarget.a(TargetData.o) and (1) in /usr/local/lib/libLLVMSupport.a(APFloat.o)
ld: warning llvm::APInt::isSingleWord() consthas different visibility (2) in /usr/local/lib/libLLVMCore.a(Instructions.o) and (1) in /usr/local/lib/libLLVMSupport.a(APFloat.o)
ld: warning llvm::APInt::getNumWords() consthas different visibility (2) in /usr/local/lib/libLLVMCore.a(Instructions.o) and (1) in /usr/local/lib/libLLVMSupport.a(APFloat.o)
ld: warning llvm::APInt::clearUnusedBits() has different visibility (2) in /usr/local/lib/libLLVMCore.a(Instructions.o) and (1) in /usr/local/lib/libLLVMSupport.a(APFloat.o)

(and so on...) Any suggestions?

-- Talin

http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-August/016763.html

The root of the problem is that I committed the changes to apply
-fvisibility-lines-hidden
but that was later backed out. If you have object files built in the
time in between the
commit and the backing out then they will differ. A clean rebuild
should get rid of the
warnings.

- Daniel