Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird issue when installing 5.4.9 on OSX #22

Open
drgomesp opened this issue Mar 15, 2013 · 6 comments
Open

Weird issue when installing 5.4.9 on OSX #22

drgomesp opened this issue Mar 15, 2013 · 6 comments

Comments

@drgomesp
Copy link

Hey guys.

Sorry to ask for help in here, but I'm really lost.

I'm trying to install PHP 5.4.9, but I'm getting this weid compile error message:

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
  "_sk_shift", referenced from:
      _load_all_certs_from_file in openssl.o
  "_sk_value", referenced from:
      _zif_openssl_csr_new in openssl.o
      _zif_openssl_pkcs7_verify in openssl.o
      _php_openssl_parse_config in openssl.o
      _php_openssl_sockop_set_option in xp_ssl.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: *** [sapi/cli/php] Error 1
-----------------------------------------

Does anyone have any idea on how to solve that?

@marcosdsanchez
Copy link

Similar issue installing 5.3.23 :(

@marcosdsanchez
Copy link

To configure without openssl support , I had to remove the line

--with-openssl

from /usr/local/share/php-build/default_configure_options

@marcosdsanchez
Copy link

And to install with openssl support. I modified that line to be:

--with-openssl=/usr

@castor4bit
Copy link

Older version OpenSSL may cause them symbol problem.
I had the same problem when use 0.9.8r, but installed successfully with OpenSSL 1.0.1e.

@garamon
Copy link

garamon commented Apr 21, 2013

Try below steps:

 $ brew install openssl
 $ brew link openssl --force
 $ exec $SHELL -l
 $ openssl version
 OpenSSL 1.0.1e 11 Feb 2013

Install PHP.

@joaoteixeirajrr
Copy link

help me!

-----------------
|  BUILD ERROR  |
-----------------
Here are the last 10 lines from the log:
-----------------------------------------
                                                                         ^
./xdebug_hash.h:66:54: note: passing argument to parameter 'str_key' here
int  xdebug_hash_add_or_update(xdebug_hash *h, char *str_key, unsigned int str_key_len, unsigned long num_key, const void *p);
                                                     ^
3 warnings generated.
/var/tmp/php-build/source/xdebug-2.2.1/xdebug_tracing.c:452:28: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                        fprintf(XG(trace_file), tmp);
                                                ^~~
1 warning generated.
env: /usr/local/bin/../share/php-build/after-install.d/*: No such file or directory
-----------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants