Undefined symbols for architecture x86_64

Hello,


I am on a Mac OS X Client test server I built from scratch, "sort off" (Not the Mac OS X Server). The hardware is a Mac Mini running Mavericks 10.9.5. The processor is an Intel Core i5, therefore, according with this info; How to tell if your Intel-based Mac has a 32-bit or 64-bit processor - Apple Support it is a 64 bit processor hardware. As some of you know, the native Apache 2.2.29 become obsolete on SSL Cyphers. Therefore I am in this project to upgrade Apache 2.4.12 /PHP out of /usr/local. MySQL is already there and running fine.

Natively, the system is configured and running an e_commerce store (open source) with Apache 2.2.29 and PHP 5.4.38 and MySQL. I already installed Apache 2.4.12 on /usr/local/ on port 8080 and SSL 8443 and adapted it's configuration to pickup most of the services (Websites and SSL) and it is running fine on these ports. I already tested.


The issue here comes when I tried to install PHP from the command line, (not matter what version) from the command line, I am getting these errors on Make.


Undefined symbols for architecture x86_64:

"_libiconv", referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

_php_iconv_stream_filter_append_bucket in iconv.o

__php_iconv_appendl in iconv.o

...

"_libiconv_close", referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

_php_iconv_stream_filter_cleanup in iconv.o

...

"_libiconv_open", referenced from:

_zif_iconv_substr in iconv.o

_zif_iconv_mime_encode in iconv.o

_php_iconv_string in iconv.o

__php_iconv_strlen in iconv.o

__php_iconv_strpos in iconv.o

__php_iconv_mime_decode in iconv.o

_php_iconv_stream_filter_factory_create in iconv.o

...

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [libs/libphp5.bundle] Error 1


Obs: I have Xcode 6.2 with the command tools installed.

Now, researching, I found this php development on http://php-osx.liip.ch/ that install just fine. However, when I tried to turn the module libphp5.so; I am getting these errors and Apache 2.4.12/PHP5 won't work.


httpd: Syntax error on line 157 of /usr/local/apache-2.4.12/conf/httpd.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _unixd_config\n Referenced from: /usr/local/php5/libphp5.so\n Expected in: /usr/local/apache-2.4.12/bin/httpd\n in /usr/local/php5/libphp5.so


Some of you might direct me to install some other Mamp package. That I already successfully did. However I want to see if I can run both Apache/PHP/MySQL out of /usr/local compiling and installing them. MySQL is already there and is running fine. Apache 2.4.12 is already there and is running fine. My issue here is with PHP. Any ideas, suggestions, fixes are welcome!


Thanks!

Mac mini, OS X Mavericks (10.9.5)

Posted on Jun 1, 2015 11:23 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Undefined symbols for architecture x86_64

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.