FG
💻 Software

Compiling PHP on OS X: iconv works only if forced to 64-bit

Fresh5 days ago
Mar 15, 20266823 views
Confidence Score0%
0%

Problem

I'm trying to compile PHP and I kept getting this error during : The command of PHP has the iconv folder pointing to , so the macport iconv library is used (which is installed using the the flag). Doing I get: I tried then install the iconv library manually, forcing only the 64-bit architecture (I …

Error Output

Undefined symbols for architecture x86_64:
  "_iconv_open", referenced from:
      __php_iconv_mime_decode in iconv.o
      __php_iconv_strlen in ico…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Compiling PHP on OS X: iconv works only if forced to 64-bit

Low Risk

The MacPorts iconv library renames the symbols to and . That's why PHP couldn't find them, not because of the forced 64-bit. Run vs (in 10.7.3).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment