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

configure: error: wrong libjit version or libjit not found #7

Open
sebastianbergmann opened this issue Sep 7, 2014 · 3 comments
Open

Comments

@sebastianbergmann
Copy link
Contributor

I have built libjit from current Git master (./configure --prefix=/usr/local/libjit, make, make install).

When I try to configure the jitfu build (phpize, ./configure --with-jitfu=/usr/local/libjit), I get the following

$ ./configure --with-jitfu=/usr/local/libjit
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php-5.6
checking for PHP includes... -I/usr/local/php-5.6/include/php -I/usr/local/php-5.6/include/php/main -I/usr/local/php-5.6/include/php/TSRM -I/usr/local/php-5.6/include/php/Zend -I/usr/local/php-5.6/include/php/ext -I/usr/local/php-5.6/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php-5.6/lib/php/extensions/debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/php-5.6/include/php
checking if debug is enabled... yes
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for JIT-Fu support... yes, shared
checking for jit_context_create in -ljit... no
configure: error: wrong libjit version or libjit not found
@marcioAlmada
Copy link

Me too. This same procedure was successful last month, btw.

@krakjoe
Copy link
Owner

krakjoe commented Sep 7, 2014

How very strange, I haven't changed anything about config.m4, not seeing changes upstream and cannot reproduce :s Will ask around ...

Recki ran integration two hours ago too: https://travis-ci.org/google/recki-ct/jobs/34633631

Seems that lib64 is not being scanned by php's builtin macro unless the prefix used to configure libjit was normal.

Temporarily use the following workaround, this should work:

LDFLAGS=-L/usr/local/libjit/lib64 ./configure --with-jitfu=/usr/local/libjit

@sebastianbergmann
Copy link
Contributor Author

Just tried the workaround: it works, thanks.

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

3 participants