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

Fail to compile with php 5.4.6 #16

Open
superjimpupcake opened this issue Aug 18, 2012 · 3 comments
Open

Fail to compile with php 5.4.6 #16

superjimpupcake opened this issue Aug 18, 2012 · 3 comments

Comments

@superjimpupcake
Copy link

I try to compile php-uv with source from php 5.4.6 on centos 6.2 64bit.

I got the following errors:

/root/downloads/php-uv/php_uv.c: In function ‘php_uv_zval_to_fd’:
/root/downloads/php-uv/php_uv.c:293: error: ‘php_socket’ undeclared (first use in this function)
/root/downloads/php-uv/php_uv.c:293: error: (Each undeclared identifier is reported only once
/root/downloads/php-uv/php_uv.c:293: error: for each function it appears in.)
/root/downloads/php-uv/php_uv.c:305: error: expected expression before ‘)’ token
/root/downloads/php-uv/php_uv.c:307: error: request for member ‘bsd_socket’ in something not a structure or union

Do you have any hints on this?

Thanks.

@chobie
Copy link
Owner

chobie commented Aug 18, 2012

got it. you don't enable socket on you php5.4. for now, can you add --enable-sockets for configure options?
or install via aptitude or yum.

I'll modify config.m4 later.

@superjimpupcake
Copy link
Author

Great! Got it working now. Thanks!
I do find that I need to add
CPPFLAGS += -fPIC in config.m4
since I was on 64bit

@datibbaw
Copy link
Contributor

@superjimpupcake The dependency on sockets has been added as part of 5817bfe

Not sure about the -fPIC compiler flags, AFAIK that should be set automatically as part of the ./configure run.

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

3 participants