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

build提示 ext/phar/phar_internal.h:619:1: error: expected identifier or '(' #603

Closed
taobali32 opened this issue Apr 24, 2024 · 4 comments

Comments

@taobali32
Copy link

image

使用的是官方提供的base镜像,
运行的命令是 bash make.sh build 然后就报错了
image

@jingjingxyk
Copy link
Contributor

你查看下你本地的源代码代码

也就是这个文件,619行,看看是否有错误
https://github.com/swoole/swoole-cli/blob/main/ext/phar/phar_internal.h

先看下查看一下619行

cat ext/phar/phar_internal.h

可参照这个脚本,一条命令构建完毕

https://github.com/swoole/swoole-cli/blob/main/build-release-example.sh

@jingjingxyk
Copy link
Contributor

或者参考这里: #504

@jingjingxyk
Copy link
Contributor

linux 环境下构建,需要容器外执行一遍,容器内执行一遍如下命令


php prepare.php

@taobali32
Copy link
Author

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