Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get this error:

 -lm -lxml2 -lz -liconv -lm -lxslt -lxml2 -lz -licucore -lm  -o sapi/cgi/php-cgi
Undefined symbols for architecture x86_64:
  "_libiconv_open", referenced from:
      _convert in encodings.o
  "_libiconv", referenced from:
      _convert in encodings.o
  "_libiconv_close", referenced from:
      _convert in encodings.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

I tried many tricks found online but it did not work. I tried to patch ext/iconv/iconv.c and recompiling iconv without luck. I am running OSX 10.7.4

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.