Author Topic: Error (probably user) in ./configure during debian compile.  (Read 8659 times)

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Hey! I love what all of you are striving for and I want to thank you for what you have done so far.

I'm trying to compile OpenXcom 1.0 in Debian Wheezy, I seem to have run into an error during the ./configure step.

Code: [Select]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/fertig/OpenXcom':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

Here is config.log
Code: [Select]
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by openxcom configure 1.0.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = debian
uname -m = i686
uname -r = 3.2.0-4-686-pae
uname -s = Linux
uname -v = #1 SMP Debian 3.2.57-3+deb7u1

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2309: checking for a BSD-compatible install
configure:2377: result: /usr/bin/install -c
configure:2388: checking whether build environment is sane
configure:2438: result: yes
configure:2579: checking for a thread-safe mkdir -p
configure:2618: result: /bin/mkdir -p
configure:2631: checking for gawk
configure:2661: result: no
configure:2631: checking for mawk
configure:2647: found /usr/bin/mawk
configure:2658: result: mawk
configure:2669: checking whether make sets $(MAKE)
configure:2691: result: yes
configure:2782: checking whether make supports nested variables
configure:2799: result: yes
configure:2878: checking for g++
configure:2908: result: no
configure:2878: checking for c++
configure:2908: result: no
configure:2878: checking for gpp
configure:2908: result: no
configure:2878: checking for aCC
configure:2908: result: no
configure:2878: checking for CC
configure:2908: result: no
configure:2878: checking for cxx
configure:2908: result: no
configure:2878: checking for cc++
configure:2908: result: no
configure:2878: checking for cl.exe
configure:2908: result: no
configure:2878: checking for FCC
configure:2908: result: no
configure:2878: checking for KCC
configure:2908: result: no
configure:2878: checking for RCC
configure:2908: result: no
configure:2878: checking for xlC_r
configure:2908: result: no
configure:2878: checking for xlC
configure:2908: result: no
configure:2932: checking for C++ compiler version
configure:2941: g++ --version >&5
./configure: line 2943: g++: command not found
configure:2952: $? = 127
configure:2941: g++ -v >&5
./configure: line 2943: g++: command not found
configure:2952: $? = 127
configure:2941: g++ -V >&5
./configure: line 2943: g++: command not found
configure:2952: $? = 127
configure:2941: g++ -qversion >&5
./configure: line 2943: g++: command not found
configure:2952: $? = 127
configure:2972: checking whether the C++ compiler works
configure:2994: g++    conftest.cpp  >&5
./configure: line 2996: g++: command not found
configure:2998: $? = 127
configure:3036: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "openxcom"
| #define PACKAGE_TARNAME "openxcom"
| #define PACKAGE_VERSION "1.0.0"
| #define PACKAGE_STRING "openxcom 1.0.0"
| #define PACKAGE_BUGREPORT "https://github.com/SupSuper/OpenXcom/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "openxcom"
| #define VERSION "1.0.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3041: error: in `/home/fertig/OpenXcom':
configure:3043: error: C++ compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_GL_CFLAGS_set=
ac_cv_env_GL_CFLAGS_value=
ac_cv_env_GL_LIBS_set=
ac_cv_env_GL_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SDL_CFLAGS_set=
ac_cv_env_SDL_CFLAGS_value=
ac_cv_env_SDL_LIBS_set=
ac_cv_env_SDL_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_YAML_CFLAGS_set=
ac_cv_env_YAML_CFLAGS_value=
ac_cv_env_YAML_LIBS_set=
ac_cv_env_YAML_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/fertig/OpenXcom/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/fertig/OpenXcom/missing --run autoconf'
AUTOHEADER='${SHELL} /home/fertig/OpenXcom/missing --run autoheader'
AUTOMAKE='${SHELL} /home/fertig/OpenXcom/missing --run automake-1.11'
AWK='mawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEBUG_CFLAGS=''
DEFS=''
DEPDIR=''
DOXYGEN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GL_CFLAGS=''
GL_LDFLAGS=''
GL_LIBS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/fertig/OpenXcom/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT=''
PACKAGE='openxcom'
PACKAGE_BUGREPORT='https://github.com/SupSuper/OpenXcom/issues'
PACKAGE_NAME='openxcom'
PACKAGE_STRING='openxcom 1.0.0'
PACKAGE_TARNAME='openxcom'
PACKAGE_URL=''
PACKAGE_VERSION='1.0.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SDL_CFLAGS=''
SDL_LIBS=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='1.0.0'
WITH_OPENXCOM_DOCS_FALSE=''
WITH_OPENXCOM_DOCS_TRUE=''
WITH_OPENXCOM_MAN_FALSE=''
WITH_OPENXCOM_MAN_TRUE=''
XMKMF=''
XMLTO=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
YAML_CFLAGS=''
YAML_LIBS=''
ac_ct_CC=''
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/fertig/OpenXcom/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "openxcom"
#define PACKAGE_TARNAME "openxcom"
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_STRING "openxcom 1.0.0"
#define PACKAGE_BUGREPORT "https://github.com/SupSuper/OpenXcom/issues"
#define PACKAGE_URL ""
#define PACKAGE "openxcom"
#define VERSION "1.0.0"

configure: exit 77

Thanks in advance!

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #1 on: June 16, 2014, 04:39:34 pm »
Make sure that you have g++ in system (apt-get install g++)

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #2 on: June 16, 2014, 06:00:44 pm »
Alternatively do "apt-get install build-essential" to get all the standard compilation packages.

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #3 on: June 16, 2014, 07:51:28 pm »
Thanks for your time and responses... I certainly appreciate it. I did as you said and tried to go a bit further on my own before getting stuck again. I'm such a goof.

Code: [Select]
configure: error: Package requirements (sdl >= 1.2.13 SDL_mixer >= 1.2.11 SDL_gfx >= 2.0.22 SDL_image >= 1.2) were not met:

No package 'SDL_mixer' found
No package 'SDL_image' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SDL_CFLAGS
and SDL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I tried
Code: [Select]
apt-cache search sdl mixerand instaling the libsdl-mixer1.2 that I found but I still get the same error as above.

Any suggestions?

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #4 on: June 16, 2014, 08:16:44 pm »
You need to install the "dev" packages. They should be listed here: https://www.ufopaedia.org/index.php?title=Compiling_with_Autotools_(OpenXcom)

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #5 on: June 16, 2014, 08:43:15 pm »
Awesome! Very helpful, I want to hit myself in the head for missing it!

I got a bit further gain and ran into this snag.
Code: [Select]
configure: error: Package requirements (yaml-cpp >= 0.5.0) were not met:

Requested 'yaml-cpp >= 0.5.0' but version of Yaml-cpp is 0.3.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables YAML_CFLAGS
and YAML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

It seems my wheezy repository is limited to libyaml-cpp0.3

Any suggestions? You all have been super patient with me. I sure appreciate it.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #6 on: June 16, 2014, 08:57:10 pm »
Quote
It seems my wheezy repository is limited to libyaml-cpp0.3
You could try compiling it yourself: https://code.google.com/p/yaml-cpp/

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #7 on: June 16, 2014, 11:11:32 pm »
I finished compiling correctly (I think) but running ./openxcom from the ~/OpenXcom directory gives me this error...

Code: [Select]
./openxcom: error while loading shared libraries: libyaml-cpp.so.0.5: cannot open shared object file: No such file or directory
Thanks for helping with this.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #8 on: June 17, 2014, 06:25:18 am »
Did you run "make install" when compiling and installing yaml-cpp 0.5?

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #9 on: June 17, 2014, 10:27:57 am »
I had to do sudo make install.
This was displayed.
Code: [Select]
[ 74%] Built target yaml-cpp
[ 92%] Built target run-tests
[ 94%] Built target parse
[ 97%] Built target read
[100%] Built target sandbox
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libyaml-cpp.so.0.5.1
-- Installing: /usr/local/lib/libyaml-cpp.so.0.5
-- Installing: /usr/local/lib/libyaml-cpp.so
-- Installing: /usr/local/include/yaml-cpp
-- Installing: /usr/local/include/yaml-cpp/mark.h
-- Installing: /usr/local/include/yaml-cpp/yaml.h
-- Installing: /usr/local/include/yaml-cpp/node
-- Installing: /usr/local/include/yaml-cpp/node/ptr.h
-- Installing: /usr/local/include/yaml-cpp/node/parse.h
-- Installing: /usr/local/include/yaml-cpp/node/type.h
-- Installing: /usr/local/include/yaml-cpp/node/detail
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_data.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_ref.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/iterator_fwd.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/memory.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/bool_type.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/impl.h
-- Installing: /usr/local/include/yaml-cpp/node/node.h
-- Installing: /usr/local/include/yaml-cpp/node/emit.h
-- Installing: /usr/local/include/yaml-cpp/node/convert.h
-- Installing: /usr/local/include/yaml-cpp/node/iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/impl.h
-- Installing: /usr/local/include/yaml-cpp/eventhandler.h
-- Installing: /usr/local/include/yaml-cpp/null.h
-- Installing: /usr/local/include/yaml-cpp/dll.h
-- Installing: /usr/local/include/yaml-cpp/emitter.h
-- Installing: /usr/local/include/yaml-cpp/anchor.h
-- Installing: /usr/local/include/yaml-cpp/traits.h
-- Installing: /usr/local/include/yaml-cpp/noncopyable.h
-- Installing: /usr/local/include/yaml-cpp/parser.h
-- Installing: /usr/local/include/yaml-cpp/contrib
-- Installing: /usr/local/include/yaml-cpp/contrib/graphbuilder.h
-- Installing: /usr/local/include/yaml-cpp/contrib/anchordict.h
-- Installing: /usr/local/include/yaml-cpp/emitterdef.h
-- Installing: /usr/local/include/yaml-cpp/binary.h
-- Installing: /usr/local/include/yaml-cpp/emitfromevents.h
-- Installing: /usr/local/include/yaml-cpp/exceptions.h
-- Installing: /usr/local/include/yaml-cpp/ostream_wrapper.h
-- Installing: /usr/local/include/yaml-cpp/emittermanip.h
-- Installing: /usr/local/include/yaml-cpp/stlemitter.h
-- Installing: /usr/local/lib/pkgconfig/yaml-cpp.pc

Offline Rogue Yun

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Error (probably user) in ./configure during debian compile.
« Reply #10 on: June 17, 2014, 10:33:07 am »
I fixed that problem I just had to remove the libyaml-cpp0.3 package. Silly me >.< Thanks for you help thus far!