Thanks Igor but same error. The 'make' fails with following errors
ld: warning: in thrift-t_html_generator.o, file was built for unsupported file 
format which is not the architecture being linked (i386)ld: warning: in 
thrift-t_js_generator.o, file was built for unsupported file format which is 
not the architecture being linked (i386)ld: warning: in 
thrift-t_javame_generator.o, file was built for unsupported file format which 
is not the architecture being linked (i386)Undefined 
symbols:  "t_generator_registry::get_generator_map()", referenced from:      
usage()    in thrift-main.o  "_yylineno", referenced from:      
_yylineno$non_lazy_ptr in thrift-main.o     (maybe you meant: 
_yylineno$non_lazy_ptr)  "_md5_finish", referenced from:      
t_type::generate_fingerprint()      in thrift-main.o  "_md5_init", referenced 
from:      t_type::generate_fingerprint()      in thrift-main.o  "_yytext", 
referenced from:      _yytext$non_lazy_ptr in thrift-main.o     (maybe you 
meant:
 _yytext$non_lazy_ptr)  "_yyin", referenced from:      _yyin$non_lazy_ptr in 
thrift-main.o     (maybe you meant: _yyin$non_lazy_ptr)  "yyparse()", 
referenced from:      parse(t_program*, t_program*)in thrift-main.o      
parse(t_program*, t_program*)in 
thrift-main.o  "t_generator_registry::get_generator(t_program*, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&)", referenced from:      generate(t_program*, 
std::vector<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::allocator<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > > > const&)in 
thrift-main.o  "_md5_append", referenced from:      
t_type::generate_fingerprint()      in thrift-main.old: symbol(s) not 
foundcollect2: ld returned 1 exit statusmake[3]: *** [thrift] Error 1make[2]: 
*** [all] Error 2make[1]: *** [all-recursive] Error 1make: *** [all] Error 2

cheers,

--dheeraj

--- On Wed, 11/3/10, Igor Ribeiro de Assis <[email protected]> wrote:

From: Igor Ribeiro de Assis <[email protected]>
Subject: Re: Link issue on Mac OSX
To: [email protected]
Date: Wednesday, November 3, 2010, 6:05 PM

Have you tried:

CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure

?

On Mon, Nov 1, 2010 at 4:03 PM, Dheeraj Goswami
<[email protected]> wrote:
> Also, I think I need to build for i386 but when I run configure like this
>
> ./configure CC="gcc -arch i386" CXX="g++ -arch i386"
>
> The next step 'make' fails with bunch of ld errors and warning. How can I 
> make the 'make' happy with the i386 configurations?
>
> cheers,
>
> --dheeraj
>
> --- On Mon, 11/1/10, Dheeraj Goswami <[email protected]> wrote:
>
> From: Dheeraj Goswami <[email protected]>
> Subject: Link issue on Mac OSX
> To: [email protected]
> Date: Monday, November 1, 2010, 3:57 PM
>
> I downloaded and build 0.5.0 for Mac OSX 10.6 and it created the 
> libthrift.dylib and using file on this file gives the following
>
> libthrift.dylib: Mach-O 64-bit dynamically linked shared library x86_64
>
> When I try to like with our other libraries it gives the error
>
>
> ld: warning: in
> /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libthrift.dylib, file was
> built for unsupported file format which is not the architecture being
> linked (i386)
>
>
>
> In XCode I use ${NATIVE_ARCH} as architecture type.
>
>
>
> This all was fine until I upgrade to this one.
>
> cheers,
>
> --dheeraj



-- 
Igor Ribeiro de Assis

Reply via email to