kitech / php-go

Write PHP extension using go/golang. Zend API wrapper for go/golang.
882 stars 108 forks source link

Fail to make it #5

Closed hyper0x closed 5 years ago

hyper0x commented 8 years ago

Hi,

I ran make under the project's dir, and got:

$ make
go install ./zend
# github.com/hyper-carrot/php-go/zend
In file included from zend/szend.c:10:
In file included from /usr/local/Cellar/php56/5.6.22/include/php/Zend/zend_API.h:26:
In file included from /usr/local/Cellar/php56/5.6.22/include/php/Zend/zend_modules.h:25:
In file included from /usr/local/Cellar/php56/5.6.22/include/php/Zend/zend.h:51:
In file included from /usr/local/Cellar/php56/5.6.22/include/php/Zend/zend_config.h:1:
In file included from /usr/local/Cellar/php56/5.6.22/include/php/main/../main/php_config.h:2530:
/usr/include/sys/types.h:92:23: error: cannot combine with previous 'int' declaration specifier
zend/sztypes.h:5:23: note: expanded from macro 'uint'
make: *** [all] Error 2

I don't know what is the matter. My Env:

OS: OS X 10.11.5
Go version: 1.6.1
PHP version: 5.6.22 (install with homebrew)
kitech commented 8 years ago

When I try little change, that's compile error can be fixed. But now golang(<=1.6) for OS X not support -linkshared parameter, so one can only use gozend, can not use phpgo.

hyper0x commented 8 years ago

OK, looking forward to improving. Would you provide the point in time?

kitech commented 8 years ago

Of couse. I can compile zend and phpgo packages to .a on OS X. Next step don't known how link it. I can just fix the first half of this bug now.

kitech commented 8 years ago

Another, I try the brew install php56, this package not contains embed library named like libphp5.so. Maybe need a custom build php package for full feature. Much work to do about OS X platform.

hyper0x commented 8 years ago

@kitech OK, Thank you.

joostshao commented 8 years ago

两个中国人...

kitech commented 8 years ago

@hyper-carrot Thank you too.

kitech commented 8 years ago

好棒,只是输出调试信息太多了

hyper0x commented 8 years ago

@kitech @joostshao English discussions conducive to international collaboration. It's a lesson for open source project on Github.

kitech commented 7 years ago

since go 1.8 has full support buildmode=c-shared for MacOS,

with some test and looks fine.

think as fixed if no more report.

septianw commented 5 years ago

It's been years ago, please, somebody close this issue.