[Xapian-devel] Compiling on Mac OS X

Samuel Williams space.ship.traveller at gmail.com
Wed Jul 6 09:47:28 BST 2011


Hi,

Tried that but it didn't work - same problem.

I checked and /opt/local/lib/libiconv.dylib is i386 and x86_64

Any other ideas?

Kind regards,
Samuel

On 6/07/2011, at 1:45 PM, Dan Colish wrote:

> Making all in .
> /bin/sh ./libtool  --tag=CXX   --mode=link g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Wstrict-null-sentinel -Wstrict-overflow=1 -fvisibility=hidden -Werror -I/Users/samuel/Documents/Programming/Internet/xapian/xapian-core/include -g -O2    -o omega omega.o query.o cgiparam.o utils.o configfile.o date.o cdb_init.o cdb_find.o cdb_hash.o cdb_unpack.o loadfile.o utf8convert.o datematchdecider.o weight.o str.o unixperm.o urlencode.o /Users/samuel/Documents/Programming/Internet/xapian/xapian-core/libxapian.la libtransform.la -liconv 
> libtool: link: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -Wstrict-null-sentinel -Wstrict-overflow=1 -fvisibility=hidden -Werror -I/Users/samuel/Documents/Programming/Internet/xapian/xapian-core/include -g -O2 -o .libs/omega omega.o query.o cgiparam.o utils.o configfile.o date.o cdb_init.o cdb_find.o cdb_hash.o cdb_unpack.o loadfile.o utf8convert.o datematchdecider.o weight.o str.o unixperm.o urlencode.o -Wl,-bind_at_load  /Users/samuel/Documents/Programming/Internet/xapian/xapian-core/.libs/libxapian.dylib -lz ./.libs/libtransform.a -L/opt/local/lib /opt/local/lib/libpcre.dylib /opt/local/lib/libiconv.dylib
> Undefined symbols for architecture x86_64:
>   "_iconv_open", referenced from:
>       convert_to_utf8(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in utf8convert.o
>   "_iconv", referenced from:
>       convert_to_utf8(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in utf8convert.o
>   "_iconv_close", referenced from:
>       convert_to_utf8(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in utf8convert.o
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> 
> Any ideas what is going wrong?
> 
> 
> It looks like you're not using the libiconv from ports. Try setting your DYLD_LIBRARY_PATH to /opt/local/lib and you should be good to go. 
> 
> --Dan
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20110706/99ffea2c/attachment.htm>


More information about the Xapian-devel mailing list