Skip to content

Problem with build-static.sh - Library file 'libintl.a' for lib [gettext] does not exist #2154

@dac514

Description

@dac514

What happened?

I'm on Fedora 43 + KDE.

Following the instructions here: https://frankenphp.dev/docs/embed/#creating-a-binary-for-other-oses

git clone https://github.com/php/frankenphp
cd frankenphp
EMBED=/path/to/your/app ./build-static.sh

I'm trying to create a simple static version of Adminer just to experiment.

It's one file, I renamed it index.php, put it in the app folder, then I am running:

EMBED=/home/dac/code/adminer-app/app ./build-static.sh

It gets pretty far, but eventually fails with:

Library file 'libintl.a' for lib [gettext] does not exist in '/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/lib'. Please build it first.

I've rerun a few times, always stops at the same spot.

Help?

Build Type

Static binary

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

N/A

Relevant log output

...snip...
[19:09:51] [I] sysvsem is using --enable-sysvsem 
[19:09:51] [I] sysvshm is using --enable-sysvshm 
[19:09:51] [I] tidy is using --with-tidy=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot 
[19:09:51] [I] tokenizer is using --enable-tokenizer 
[19:09:51] [I] zip is using --with-zip=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot
[19:09:51] [I] xlswriter is using --with-xlswriter --enable-reader --with-openssl=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot
[19:09:51] [I] xmlreader is using --enable-xmlreader --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot"
[19:09:51] [I] xmlwriter is using --enable-xmlwriter --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot"
[19:09:51] [I] xsl is using --with-xsl=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot 
[19:09:51] [I] xz is using --with-xz 
[19:09:51] [I] yaml is using --with-yaml=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot 
[19:09:51] [I] zstd is using --enable-zstd --with-libzstd="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot"
[19:09:51] [I] [EXEC] CFLAGS=' -fPIE -fstack-protector-strong -O2 -w -s' CPPFLAGS='-I/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/include' LDFLAGS='-L/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/lib' LD_LIBRARY_PATH="/usr/local/musl/lib:/usr/local/musl/x86_64-linux-musl/lib" ./configure --prefix= --with-valgrind=no --disable-shared --enable-static --disable-all --disable-phpdbg --with-pic --disable-cli --disable-fpm --enable-embed=static --disable-micro --disable-cgi --with-config-file-path=/usr/local/etc/php --with-config-file-scan-dir=/usr/local/etc/php/conf.d --enable-zts --disable-zend-signals --enable-zend-max-execution-timers --with-amqp --with-librabbitmq-dir=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-apcu --enable-ast --enable-bcmath --enable-brotli --with-bz2=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-calendar --enable-ctype --with-curl --enable-dba --enable-dom --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-exif --enable-fileinfo --enable-filter --enable-ftp --with-zlib --enable-gd --with-freetype --with-jpeg --with-webp --with-avif --with-gmp=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-gettext=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-iconv=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-session --enable-igbinary --with-imagick=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot ac_cv_func_omp_pause_resource_all=no --enable-intl --with-openssl=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-ldap=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-lz4 --with-lz4-includedir=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-mbstring --enable-mbregex --enable-memcache --with-zlib-dir=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-memcached --with-zlib-dir=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-libmemcached-dir=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --disable-memcached-sasl --enable-memcached-json --with-zstd --enable-memcached-igbinary --enable-memcached-session --with-system-fastlz --enable-mysqlnd --with-mysqli --enable-opcache --disable-opcache-jit --with-password-argon2 --enable-parallel --enable-pcntl --enable-pdo --with-pdo-mysql --with-pgsql PGSQL_CFLAGS=-I/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/include PGSQL_LIBS="-L/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/lib -liconv -lcharset -ldl -lpthread -lm -lstdc++ -llzma -liconv -lcharset -ldl -lpthread -lm -lstdc++ -lz -ldl -lpthread -lm -lstdc++ -lxml2 -lm -ldl -lz -llzma -liconv -lcharset -ldl -lpthread -lm -lstdc++ -lssl -lcrypto -lz -ldl -lpthread -lm -lstdc++ -lncurses -ldl -lpthread -lm -lstdc++ -ledit -lncurses -ldl -lpthread -lm -lstdc++ -licuio -licui18n -licuuc -licudata -ldl -lpthread -lm -ldl -lpthread -lm -lstdc++ -lxslt -lexslt -lxml2 -lm -ldl -lz -llzma -liconv -lcharset -ldl -lpthread -lm -lstdc++ -lgmp -ldl -lpthread -lm -lstdc++ -lsodium -ldl -lpthread -lm -lstdc++ -lldap -llber -ldl -lpthread -lm -lsodium -lgmp -lssl -lcrypto -lz -ldl -lpthread -lm -lstdc++ -lzstd -ldl -lpthread -lm -lstdc++ -lpq -lpgcommon -lpgport -lzstd -lldap -llber -lsodium -lgmp -lxslt -lexslt -licuio -licui18n -licuuc -licudata -lpthread -ledit -lncurses -lssl -lcrypto -lxml2 -lm -ldl -lz -llzma -liconv -lcharset -ldl -lpthread -lm -lstdc++" --with-pdo-pgsql=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-sqlite3=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-pdo-sqlite --enable-sqlsrv --with-pdo-sqlsrv --enable-phar --enable-posix --enable-protobuf --with-libedit --without-readline --enable-redis --enable-redis-session --enable-redis-igbinary --disable-redis-msgpack --enable-redis-zstd --with-libzstd="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-redis-lz4 --with-liblz4="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-shmop --enable-simplexml --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-xml --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-soap --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-sockets --with-sodium --with-ssh2=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-tokenizer --with-zip=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-xlswriter --enable-reader --with-openssl=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-xmlreader --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --enable-xmlwriter --with-libxml="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot" --with-xsl=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --with-xz --with-yaml=/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot --enable-zstd --with-libzstd="/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot"
[19:10:19] [I] cleaning up php-src build files
[19:10:19] [I] [EXEC] make clean
[19:10:19] [I] building embed
Library file 'libintl.a' for lib [gettext] does not exist in '/home/dac/code/adminer-app/frankenphp/dist/static-php-cli/buildroot/lib'. Please build it first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions