whats the frequency of the letter n in:
q: installing php with iconv on mac osx 10.6 gives error: undefined symbols for architecture x86_64 i am setting up php on my local web server with iconv, which should be there by default, but i am getting the following error:
undefined symbols for architecture x86_64:
  _iconv, referenced from:
      __php_iconv_strlen in iconv.o
      _php_iconv_string in iconv.o
      __php_iconv_strpos in iconv.o
      __php_iconv_appendl in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _php_iconv_stream_filter_append_bucket in iconv.o
      ...
     (maybe you meant: _zif_iconv_strlen, _zif_iconv_strpos , _zif_iconv_mime_decode , _php_iconv_string , _zif_iconv_set_encoding , _zif_iconv_get_encoding , _zif_iconv_mime_decode_headers , _iconv_functions , _zif_iconv_mime_encode , _zif_iconv_strrpos , _iconv_module_entry , _iconv_globals , _zif_iconv_substr , _php_if_iconv , _zif_ob_iconv_handler )
ld: symbol(s) not found for architecture x86_64

now, presumably this means that my iconv is not 64 bit. i tried to download libiconv and manually reinstall it with 64 bit, as such:
cflags=-arch i386 -arch ppc -arch ppc64 -arch x86_64 ccflags=-arch i386 -arch ppc -arch ppc64 -arch x86_64 cxxflags=-arch i386 -arch ppc -arch ppc64 -arch x86_64 ./configure

but i get the following error:
configure: error: in `/users/jason/downloads/libiconv-1.13.1:
configure: error: c compiler cannot create executables
see `config.log for more details.

in my config.lob file, it says at the bottom:
configure: exit 77

any suggestions?

a: ive had exactly the same problem on os x 10.7, i.e. couldnt compile php due to the libiconv x86_64 errors, but have solved it as follows:
build an x86_64-only version of libiconv:
cflags=-arch x86_64 ccflags=-arch x86_64 cxxflags=-arch x86_64 ./configure
make
sudo make install

this will put the compiled files in /usr/local/lib
then run ./configure in the php source directory, then make
when you get the error with iconv, copy the last gcc command (the one that failed), change the start to:
gcc -bundle -bundle_loader /usr/sbin/httpd -l/usr/local/lib

so its pointing to the 64-bit-only version. then paste the new command and run make again and it works (at least did for me).

user
In the text, there are 129 "n"s.
assistant