-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
php embed sapi:undefinded reference to 'sigsetjmp' #564
Comments
Can you try if |
Thanks for the reminder, but the flag |
That's weird. FrankenPHP is using the embed SAPI and doesn't have this issue. |
I added the whole thing to the zip package. embed-package |
@KingBes I tested and it's working, but indeed there are some bugs need to be fixed. I'm using FrankenPHP's default extension combination to build embed SAPI, and changed # spc build command
bin/spc build apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,ftp,gd,gmp,gettext,iconv,igbinary,imagick,intl,ldap,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,parallel,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,protobuf,readline,redis,session,shmop,simplexml,soap,sockets,sodium,sqlite3,ssh2,sysvmsg,sysvsem,sysvshm,tidy,tokenizer,xlswriter,xml,xmlreader,xmlwriter,zip,zlib,yaml,zstd --build-cli --build-micro --debug --enable-zts --build-embed
# edit php-config file using sed or vim or something.....
# compile, use musl-gcc (glibc gcc cannot be compiled statically)
/usr/local/musl/bin/x86_64-linux-musl-cc $(buildroot/bin/php-config --includes) -L$(pwd)/buildroot/lib a.c -lphp $(buildroot/bin/php-config --libs) -lm -lresolv -ldl -lpthread -lc -Wl,-rpath=$(pwd)/buildroot/lib -lpq -lpgport -lpgcommon -lgomp -lstdc++ -static |
I found some bugs:
I'm not sure about the habits of most developers who use embed, so it would be great if you or someone could provide some suggestions. |
System:Ubuntu 、deepin
bulid
./spc build --build-all "apcu,bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,gd,iconv,intl,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,readline,redis,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,xsl,zip,zlib" --with-upx-pack --debug
cphp.c
index.php
build.sh
The text was updated successfully, but these errors were encountered: