Po migracji kontenera VZ napotkałem pewien problem z kompilacją apcupsd. Nie wiem jak zachowują się inne pakiety przy kompilacji, ale:
Kod: Zaznacz cały
./configure -prefix=/etc/apcupsd/APC5000_A -sbindir=/etc/apcupsd/APC5000_A -with-log-dir=/etc/apcupsd/APC5000_A -sysconfdir=/etc/apcupsd/APC5000_A -with-serial-dev=/dev/ttyUSB3
Kod: Zaznacz cały
checking for true... /bin/truechecking for false... /bin/false
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: in `/etc/apcupsd/APC5000_A/apcupsd-3.14.13':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Kod: Zaznacz cały
root@cacti:/etc/apcupsd/APC5000_A/apcupsd-3.14.13# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
Kod: Zaznacz cały
root@cacti:/etc/apcupsd/APC5000_A/apcupsd-3.14.13# cat config.logThis file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure -prefix=/etc/apcupsd/APC5000_A -sbindir=/etc/apcupsd/APC5000_A -with-log-dir=/etc/apcupsd/APC5000_A -with-pid-dir=/etc/apcupsd/APC5000_A -sysconfdir=/etc/apcupsd/APC5000_A -with-lock-dir=/etc/apcupsd/APC5000_A -with-serial-dev=/dev/ttyUSB3 -sysconfdir=/etc/apcupsd/APC5000_A
## --------- ##
## Platform. ##
## --------- ##
hostname = cacti
uname -m = i686
uname -r = 2.6.32-37-pve
uname -s = Linux
uname -v = #1 SMP Wed Feb 11 10:00:27 CET 2015
/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/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2047: checking for true
configure:2065: found /bin/true
configure:2077: result: /bin/true
configure:2093: checking for false
configure:2111: found /bin/false
configure:2123: result: /bin/false
configure:2145: checking build system type
configure:2163: result: i686-pc-linux-gnu
configure:2185: checking host system type
configure:2200: result: i686-pc-linux-gnu
configure:2334: checking for g++
configure:2350: found /usr/bin/g++
configure:2361: result: g++
configure:2388: checking for C++ compiler version
configure:2396: g++ --version >&5
g++ (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2400: $? = 0
configure:2407: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-linux-gnu/4.7/lto-wrapper
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
configure:2411: $? = 0
configure:2418: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:2422: $? = 4
configure:2445: checking for C++ compiler default output file name
configure:2467: g++ -I/usr/local/include -L/usr/local/lib conftest.cpp >&5
as: error while loading shared libraries: libbfd-2.22-system.so: cannot open shared object file: No such file or directory
configure:2471: $? = 1
configure:2509: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2515: error: in `/etc/apcupsd/APC5000_A/apcupsd-3.14.13':
configure:2518: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_GAPCMON_CFLAGS_set=
ac_cv_env_GAPCMON_CFLAGS_value=
ac_cv_env_GAPCMON_LIBS_set=
ac_cv_env_GAPCMON_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_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_host=i686-pc-linux-gnu
ac_cv_path_FALSEPRG=/bin/false
ac_cv_path_TRUEPRG=/bin/true
ac_cv_prog_ac_ct_CXX=g++
## ----------------- ##
## Output variables. ##
## ----------------- ##
ABSSRCDIR='/etc/apcupsd/APC5000_A/apcupsd-3.14.13'
APCACCESS=''
APCAGENT=''
APCDRVLIBS=''
APCSMART_DRIVER=''
APCTEST=''
APCUPSD_MAIL=''
AR=''
AWK=''
BG=''
CC=''
CFLAGS=''
CGI=''
CGIBIN=''
CP=''
CPP=''
CPPFLAGS=' -I/usr/local/include'
CROSSTOOLS=''
CXX='g++'
CXXFLAGS=''
DATE='02 February 2015'
DEBUG=''
DEFS=''
DEPKGS=''
DISTDIR=''
DISTNAME=''
DISTVER=''
DRVLIBS=''
DUMB_DRIVER=''
ECHO=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRADEFS=''
EXTRAOBJ=''
FALSEPRG='/bin/false'
GAPCMON=''
GAPCMON_CFLAGS=''
GAPCMON_LIBS=''
GDHEAD=''
GD_LIBS=''
GREP=''
HALPOLICYDIR=''
HOST=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS=' -L/usr/local/lib'
LIBEXTRAOBJ=''
LIBOBJS=''
LIBS=''
LIBUSBH=''
LIBUSBHID=''
LIBUSBHIDINC=''
LN=''
LOCKDIR=''
LOGDIR=''
LTLIBOBJS=''
MAKE=''
MKINSTALLDIRS=''
MODBUS_DRIVER=''
MODBUS_USB_DRIVER=''
MV=''
NET_DRIVER=''
NISIP=''
NISPORT=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PCNET_DRIVER=''
PIDDIR=''
PKG_CONFIG=''
PTHREAD_CFLAGS=''
PTHREAD_LFLAGS=''
PWRFAILDIR=''
RANLIB=''
RM=''
RST2HTML=''
RST2PDF=''
SCRIPTSHELL=''
SED=''
SERIALDEV=''
SHELL='/bin/bash'
SHUTDOWN=''
SMTP=''
SNMPLITE_DRIVER=''
SNMP_DRIVER=''
STRP=''
SYSCONFDIR=''
TEST_DRIVER=''
TOP_DIR='/etc/apcupsd/APC5000_A'
TRUEPRG='/bin/true'
UPSCABLE=''
UPSTYPE=''
USB_DRIVER=''
USB_TYPE=''
VERSION='3.14.13'
WALL=''
WIN32=''
WINDRES=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_STRP=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='/usr/local/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
nologdir=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/etc/apcupsd/APC5000_A'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='/etc/apcupsd/APC5000_A'
sharedstatedir='${prefix}/com'
sysconfdir='/etc/apcupsd/APC5000_A'
target_alias=''
topdir='/etc/apcupsd/APC5000_A/apcupsd-3.14.13'
usbcfg=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
configure: exit 77
Pozdrawiam.