pbiggar / phc

A compiler for PHP
132 stars 37 forks source link

configure: error: Could not link against ! for Rose compiler #152

Closed pbiggar closed 9 years ago

pbiggar commented 9 years ago
I am trying to install Rose compiler and i am getting a configuration error 

root@bt:/opt/rose/rose-0.9.5a-17274/compileTree# .././configure --prefix=/opt/rose/rose-0.9.5a-17274/compileTree
 --with-boost=/opt/boost_1_48_0/[installTree] --with-boost-libdir=/opt/boost_1_48_0/[installTree]/lib

.././configure: line 1846: .././scripts/shtool: No such file or directory
.././configure: line 1846: .././scripts/shtool: No such file or directory
checking for ROSE Git version information in '../.'... 05fc876517fb86eb57c66627d6144d01faa8ea35
1326493697

Configuring ROSE, version 0.9.5a (05fc876517fb86eb57c66627d6144d01faa8ea35)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
.././configure: line 5090: TAR: command not found
.././configure: line 5090: AMTAR: command not found
Defined: am__tar   = tar --format=posix -chf - "$$tardir"
Defined: am__untar = tar -xf -
Defined: AMTAR     = ${SHELL} /opt/rose/rose-0.9.5a-17274/config/missing --run tar
checking build system type... i686-pc-linux-gnu
checking machine hardware cpu... i686
checking operating system vendor... pc
checking operating system... linux-gnu
checking for lsb_release... lsb_release
checking Ubuntu release version... 10.04
checking for ssl... In ROSE SSL SUPPORT MACRO: enable_ssl = no
Skipping use of SSL (libssl) support!
checking for Java (javac first, then java, then jvm)... yes
Now verifying aspects of the found java software (java, javac, javah, jar)...
checking for java... yes
checking for Java JVM include and link options... -I/usr/lib/jvm/java-1.6.0-openjdk/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include/linux and -L/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client
-ljvm
checking for jar... yes
checking for javac... yes
checking for javah... yes
checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no
ROSE can't find the jni.h in a default directory (this is good since it will be included
correctly).
checking whether gfortran executable path has been provided... no
checking for gfortran... /usr/bin/gfortran
------------------------------------------------
checking for user-specified languages to support... 
------------------------------------------------
checking for deprecated language configuration options... done
Creating Automake conditional flags for language support in Makefiles... done

  + Binary analysis
  + C
  + C++
  + Cuda
  + Fortran
  + Java
  + PHP
  - Python
  + OpenCL

(+)enabled (-)disabled
------------------------------------------------
Finished configuring user-specified languages to support
checking for Curl_connect in -lcurl... no
checking whether your GCC version is supported by ROSE (4.0.x - 4.4.x)... done
checking for RTEDUPC... no
checking if the Compass static analysis tool should be built... no
checking if we should build & test the ROSE/projects directory... enabled
checking if we should build & test the ROSE/tests directory... enabled
checking if we should build & test the ROSE/tutorial directory... enabled
enable_edg_version = 
Default version of EDG used (3.3)
edg_major_version_number = 3
edg_minor_version_number = 3
Recognized an accepted major version number.
Recognized an accepted minor version number.
checking host system type... i686-pc-linux-gnu
withval = yes
with_C_DEBUG = 
After initialization: with_C_DEBUG = yes
Using default options for maximal debug (true case)
Setup C_OPTIMIZE
Setup C_WARNINGS CC = gcc
withval = yes
with_C_WARNINGS = 
After initialization: with_C_WARNINGS = yes
C_DEBUG   = -g
CXX_DEBUG = 
C_WARNINGS   = -Wall -Wstrict-prototypes -Wmissing-prototypes
CXX_WARNINGS = 
withval = yes
with_CXX_DEBUG = 
After initialization: with_CXX_DEBUG = yes
Using default options for maximal debug (true case)
Setup CXX_OPTIMIZE
Setup CXX_WARNING CXX = g++
withval = yes
with_CXX_WARNINGS = 
After initialization: with_CXX_WARNINGS = yes
Using default options for maximal warnings (true case)
C_DEBUG   = -g
CXX_DEBUG = -g
C_WARNINGS   = -Wall -Wstrict-prototypes -Wmissing-prototypes
CXX_WARNINGS = -Wall
CFLAGS   = -g -O2 -g -Wall -Wstrict-prototypes -Wmissing-prototypes
CXXFLAGS =  -g -Wall
CPPFLAGS = 
checking for enabled advanced warning support... After processing --enable-advanced-warnings:
CXX_ADVANCED_WARNINGS = 
After processing --enable-advanced-warnings: CXX_WARNINGS = -Wall
After processing --enable-advanced-warnings: C_WARNINGS   = -Wall -Wstrict-prototypes
-Wmissing-prototypes
CFLAGS   = -g -O2 -g -Wall -Wstrict-prototypes -Wmissing-prototypes
CXXFLAGS =  -g -Wall
CPPFLAGS = 
checking for boostlib >= 1.36.0... yes
In boost base macro -- Boost version being used is: 
configure: No previously installed version of boost detected: using boost include directories
with normal -I option
Requested minimum boost version: boost_lib_version_req_major     = 1
Requested minimum boost version: boost_lib_version_req_minor     = 36
Requested minimum boost version: boost_lib_version_req_sub_minor = 0
Boost version being used is: 
rose_boost_version = 104800
Reasonable version of Boost found!
In ROSE/configure: ac_boost_path = /opt/boost_1_48_0/[installTree]
checking for GraphViz's dot program in path... yes
checking whether the Boost::Thread library is available... yes
checking whether the Boost::Date_Time library is available... yes
configure: error: Could not link against  !

Distribution :Backtrack 5(Ubuntu 10.04)
I have attached the configuration file

Original issue reported on code.google.com by tannyshetty007 on 2012-01-22 02:05:06

pbiggar commented 9 years ago
It doesnt seem to me that this is a phc problem. Am I missing something?

Original issue reported on code.google.com by paul.biggar on 2012-01-22 02:47:31

pbiggar commented 9 years ago
sorry my fault how to delete this post.? 

Original issue reported on code.google.com by tannyshetty007 on 2012-01-22 03:45:38

pbiggar commented 9 years ago
I'm not sure we can. Don't worry, I'll just close it.

Original issue reported on code.google.com by paul.biggar on 2012-01-22 04:04:25

pbiggar commented 9 years ago
I'm seeing this same problem when compiling phc on kubuntu precise. What's the cause/solution
for it?
.
.
.
.
.
checking for php... no
checking for zend_eval_string in -lphp5... no
checking for sapi/embed/php_embed.h... no
checking whether compiler supports covariant returns... yes
checking for /usr/lib/libCrun.so.1... no
checking for boostlib >= 1.35.0... yes
checking whether the Boost::Regex library is available... yes
configure: error: Could not link against  !

By the way, I do hape php (cli) and php-dev installed.

Thanks in advance.

Original issue reported on code.google.com by eantoranz on 2012-05-25 15:28:17

pbiggar commented 9 years ago
Installed libboost-all-dev and got past this point. Thanks anyway (hope that helps someone
with the same problem)

Original issue reported on code.google.com by eantoranz on 2012-05-25 15:34:49