<HTML><HEAD><TITLE>Mail</TITLE>
<META name=GENERATOR 
content="KsDHTMLEDLib.ocx, FreeWare HTML Editor 1.164.2, ?Kurt Senfer">
<META content="text/html; charset=GB2312" http-equiv=Content-Type></HEAD>
<BODY style="FONT-FAMILY: 新宋体; FONT-SIZE: 9pt" leftMargin=5 topMargin=5 #ffffff>
<DIV>Hello everyone. This is my first mail list post ,so 
please forgive my poor Englist or any mistake</DIV>
<DIV>I'm facting the "undefined reference to 
`lldb_private::FileSpec::ReadFileContents ..." problem</DIV>
<DIV>too ,after some digging , seems like this problem is lead by different 
typedef of "off_t"</DIV>
<DIV> </DIV>
<DIV>after compiling FileSpec.o, nm gives:</DIV>
<DIV> </DIV>
<DIV>00001b90 T lldb_private::FileSpec::ReadFileContents(long, void*, unsigned 
int, lldb_private::Error*) const<BR>00001d80 T 
lldb_private::FileSpec::ReadFileContents(long, unsigned int, 
lldb_private::Error*) const</DIV>
<DIV> </DIV>
<DIV>but after compiling Host.o ,nm gives:</DIV>
<DIV> </DIV>
<DIV>U lldb_private::FileSpec::ReadFileContents(long long, void*, unsigned int, 
lldb_private::Error*) const</DIV>
<DIV> </DIV>
<DIV>same problem applies on following header too:</DIV>
<DIV> </DIV>
<DIV>Core/Module.h: </DIV>
<DIV> </DIV>
<DIV>      Module (const FileSpec& 
file_spec,<BR>             
const ArchSpec& 
arch,<BR>             
const ConstString *object_name = 
NULL,<BR>           off_t 
object_offset = 
0);<BR>           </DIV>
<DIV> </DIV>
<DIV>Symbol/ObjectFile.h:</DIV>
<DIV>        size_t<BR>     
ReadSectionData (const Section 
*section,<BR>                      
off_t 
section_offset,<BR>                      void 
*dst,<BR>                      
size_t dst_len) const;</DIV>
<DIV> </DIV>
<DIV>force changing these define from "off_t" to "long" ,lldb compiled and 
run.</DIV>
<DIV>but I can not assume lldb works OK. and I can not point out why off_t 
has </DIV>
<DIV>different meaning in different translation unit.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>and this is my build environment:</DIV>
<DIV> </DIV>
<DIV>llvm svn version: 175324</DIV>
<DIV>clang svn version:175313</DIV>
<DIV>lldb svn version:175378</DIV>
<DIV> </DIV>
<DIV>build in tree, config with</DIV>
<DIV> </DIV>
<DIV>./configure --prefix=/home/my_name/local_install --enable-optimized 
--enable-targets=x86 CC=gcc CXX=g++</DIV>
<DIV> </DIV>
<DIV>build host : ubuntu 11.04 32bit, gcc 4.6.3(compiled myself, first append in 
${PATH}) ,system gcc: 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)</DIV>
<DIV> </DIV>
<DIV>(compile with clang also has the same problem)</DIV>
<DIV> </DIV>
<DIV>attachment is the compile command in subdir "lldb/source/Host",</DIV>
<DIV>hopes this can help you</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV><U><STRONG>本邮件附件清单如下:</STRONG></U></DIV>
<DIV>  (1) make_verbose.txt (23.8 K)</DIV><BR></DIV>
<DIV>comicfans44,<A 
href="mailto:comicfans44@gmail.com">comicfans44@gmail.com</A></DIV>
<DIV>2013-2-17 </DIV></BODY></HTML>