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

./make.sh build 构建出错,已经试过很多次就一直卡在这里,不知道是哪个步骤不对,请大佬指点一下,在ubuntu22.04版本下构建 #362

Closed
findnr opened this issue Sep 22, 2023 · 8 comments

Comments

@findnr
Copy link

findnr commented Sep 22, 2023

li/icu/include -I/usr/local/swoole-cli/libxslt/include -I/usr/local/swoole-cli/libxml2/include/libxml2 -I/usr/local/swoole-cli/libiconv/include -I/usr/local/swoole-cli/gmp/include -I/usr/local/swoole-cli/libsodium/include -I/usr/local/swoole-cli/ncurses/include/ncursesw -I/usr/local/swoole-cli/ncurses/include -I/usr/local/swoole-cli/readline/include -I/usr/local/swoole-cli/libjpeg/include -I/usr/local/swoole-cli/freetype/include/freetype2 -I/usr/local/swoole-cli/libpng/include/libpng16 -I/usr/local/swoole-cli/libwebp/include -I/usr/local/swoole-cli/libyaml/include -I/usr/local/swoole-cli/imagemagick/include/ImageMagick-7 -I/usr/local/swoole-cli/zlib/include -I/usr/local/swoole-cli/openssl/include -fno-common -Wstrict-prototypes -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wall -pthread -g -O2 -fvisibility=hidden -DZEND_SIGNALS -fno-ident -Os -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /work/main/streams/filter.c -o main/streams/filter.lo -MMD -MF main/streams/filter.dep -MT main/streams/filter.lo
/work/main/streams/cast.c:137:2: error: incompatible function pointer types initializing 'cookie_seek_function_t ' (aka 'int ()(void *, long *, int)') with an expression of type 'int (void *, zend_off_t, int)' (aka 'int (void *, long, int)') [-Wincompatible-function-pointer-types]
stream_cookie_seeker, stream_cookie_closer
^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:3683: main/streams/cast.lo] Error 1
make: *** Waiting for unfinished jobs....
/work/bin/swoole-cli: cannot open `/work/bin/swoole-cli' (No such file or directory)
readelf: Error: '/work/bin/swoole-cli': No such file

@findnr
Copy link
Author

findnr commented Sep 22, 2023

image

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Sep 23, 2023

构建运行在 alpine 容器内,需要确认子模块 swoole的版本
把swoole 版本切换为 v5.0.3

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Sep 23, 2023

linux 版本请在alpine 容器里构建。

@jingjingxyk
Copy link
Contributor

你用的那个分支构建的?

@jingjingxyk
Copy link
Contributor

切换 swoole 分支以后,别忘了执行 make clean

@findnr
Copy link
Author

findnr commented Sep 24, 2023

非常感谢,已经编译成功。大佬辛苦啦!!!但是zend模块中没有opcache
image

@jingjingxyk
Copy link
Contributor

可切换 PHP 版本 使用 build_native_php 分支 。

GD库支持 avif 格式的图片 ,使用 build_native_php 分支 或者 experiment 分支

各分支的区别简述:
#273

@findnr
Copy link
Author

findnr commented Sep 24, 2023

好的,谢谢了

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

2 participants