./config compile error. All options selected.

Forum for questions and support relating to the 1.24.x releases only.
Locked
alltech
Posts: 34
Joined: Sat Jun 25, 2011 6:07 am

./config compile error. All options selected.

Post by alltech »

I downloaded the zm source 1.24.25 and proceded to /configure it on ubuntu latest edition.

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr/local ZM_DB_PASS=xxxxx ZM_DB_NAME=zm ZM_DB_USER=lortech --with-ffmpeg=/usr/bin/ffmpeg --with-libarch --with-webuser=apache --with-extralibs=lm3plame --enable-debug=yes-enable-crashtrace=yes --with-webgroup=apache --enable-mmap=yes --enable-crashtrace=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
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... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.


So error log says this:
cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by zm configure 1.24.2, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr/local ZM_DB_PASS=icu812 ZM_DB_NAME=zm ZM_DB_USER=lortech --with-ffmpeg=/usr/bin/ffmpeg --with-libarch --with-webuser=apache --with-extralibs=lm3plame --enable-debug=yes-enable-crashtrace=yes --with-webgroup=apache --enable-mmap=yes --enable-crashtrace=yes

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

hostname = zm
uname -m = i686
uname -r = 2.6.38-10-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
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
PATH: /usr/X11R6/bin


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

configure:1408: checking for a BSD-compatible install
configure:1463: result: /usr/bin/install -c
configure:1474: checking whether build environment is sane
configure:1517: result: yes
configure:1582: checking for gawk
configure:1611: result: no
configure:1582: checking for mawk
configure:1598: found /usr/bin/mawk
configure:1608: result: mawk
configure:1618: checking whether make sets $(MAKE)
configure:1642: result: no
configure:2173: checking for g++
configure:2202: result: no
configure:2173: checking for c++
configure:2202: result: no
configure:2173: checking for gpp
configure:2202: result: no
configure:2173: checking for aCC
configure:2202: result: no
configure:2173: checking for CC
configure:2202: result: no
configure:2173: checking for cxx
configure:2202: result: no
configure:2173: checking for cc++
configure:2202: result: no
configure:2173: checking for cl
configure:2202: result: no
configure:2173: checking for FCC
configure:2202: result: no
configure:2173: checking for KCC
configure:2202: result: no
configure:2173: checking for RCC
configure:2202: result: no
configure:2173: checking for xlC_r
configure:2202: result: no
configure:2173: checking for xlC
configure:2202: result: no
configure:2215: checking for C++ compiler version
configure:2218: g++ --version </dev/null >&5
./configure: line 2219: g++: command not found
configure:2221: $? = 127
configure:2223: g++ -v </dev/null >&5
./configure: line 2224: g++: command not found
configure:2226: $? = 127
configure:2228: g++ -V </dev/null >&5
./configure: line 2229: g++: command not found
configure:2231: $? = 127
configure:2254: checking for C++ compiler default output file name
configure:2257: g++ -I/usr/bin/ffmpeg/include -L/usr/bin/ffmpeg/yes -L/usr/local/yes/mysql lm3plame conftest.cc >&5
./configure: line 2258: g++: command not found
configure:2260: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.24.2"
| #define PACKAGE_STRING "zm 1.24.2"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.24.2"
| #define ZM_DBG_OFF 1
| #define ZM_MEM_MAPPED 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2299: error: C++ compiler cannot create executables
See `config.log' for more details.

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

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_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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_ZM_DB_HOST_set=
ac_cv_env_ZM_DB_HOST_value=
ac_cv_env_ZM_DB_NAME_set=set
ac_cv_env_ZM_DB_NAME_value=zm
ac_cv_env_ZM_DB_PASS_set=set
ac_cv_env_ZM_DB_PASS_value=icu812
ac_cv_env_ZM_DB_USER_set=set
ac_cv_env_ZM_DB_USER_value=lortech
ac_cv_env_ZM_MYSQL_ENGINE_set=
ac_cv_env_ZM_MYSQL_ENGINE_value=
ac_cv_env_ZM_SSL_LIB_set=
ac_cv_env_ZM_SSL_LIB_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_prog_AWK=mawk
ac_cv_prog_make_make_set=no

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

ACLOCAL='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run tar'
AUTOCONF='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run automake-1.9'
AWK='mawk'
BINDIR=''
CC=''
CCDEPMODE=''
CFLAGS='-I/usr/bin/ffmpeg/include '
CGI_PREFIX='/var/www/cgi-bin'
CPPFLAGS='-I/usr/bin/ffmpeg/include '
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_MMAP='yes'
EXEEXT=''
EXTRA_LIBS='lm3plame'
EXTRA_PERL_LIB=''
FFMPEG_CFLAGS='-I/usr/bin/ffmpeg/include'
FFMPEG_LIBS='-L/usr/bin/ffmpeg/yes'
FFMPEG_PREFIX='/usr/bin/ffmpeg'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/usr/bin/ffmpeg/yes -L/usr/local/yes/mysql lm3plame'
LIBDIR=''
LIBOBJS=''
LIBS=''
LIB_ARCH='yes'
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/src/zm/ZoneMinder-1.24.2/missing --run makeinfo'
MYSQL_CFLAGS='-I/usr/local/include'
MYSQL_LIBS='-L/usr/local/yes/mysql'
MYSQL_PREFIX='/usr/local'
OBJEXT=''
OPT_FFMPEG=''
OPT_NETPBM=''
PACKAGE='ZoneMinder'
PACKAGE_BUGREPORT='support@zoneminder.com'
PACKAGE_NAME='zm'
PACKAGE_STRING='zm 1.24.2'
PACKAGE_TARNAME='ZoneMinder'
PACKAGE_VERSION='1.24.2'
PATH_BUILD='/usr/src/zm/ZoneMinder-1.24.2'
PATH_FFMPEG=''
PATH_NETPBM=''
PATH_SEPARATOR=':'
PERL=''
PERL_MM_PARMS=''
POW_LIB=''
RANLIB=''
RUNDIR=''
SET_MAKE='MAKE=make'
SHELL='/bin/bash'
STRIP=''
SYSCONFDIR=''
TIME_BUILD='1312316156'
VERSION='1.24.2'
WEB_GROUP='apache'
WEB_PREFIX='/var/www/html/zm'
WEB_USER='apache'
ZM_CONFIG=''
ZM_DB_HOST='localhost'
ZM_DB_NAME='zm'
ZM_DB_PASS='xxxxx' <---- covered up paSS
ZM_DB_USER='lortech'
ZM_MYSQL_ENGINE='MyISAM'
ZM_PCRE=''
ZM_PID=''
ZM_RUNDIR=''
ZM_SSL_LIB='gnutls'
ZM_V4L2=''
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/src/zm/ZoneMinder-1.24.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "ZoneMinder"
#define PACKAGE_BUGREPORT "support@zoneminder.com"
#define PACKAGE_NAME "zm"
#define PACKAGE_STRING "zm 1.24.2"
#define PACKAGE_TARNAME "ZoneMinder"
#define PACKAGE_VERSION "1.24.2"
#define VERSION "1.24.2"
#define ZM_DBG_OFF 1
#define ZM_MEM_MAPPED 1

configure: exit 77
lortech@zm:/usr/src/zm/ZoneMinder-1.24.2$


First time a ./configure failed on me, so this log is new to me.

Thanks
alltech
Posts: 34
Joined: Sat Jun 25, 2011 6:07 am

Re: ./config compile error. All options selected.

Post by alltech »

good news!

Seems I was having memory setting issues. smmin amd smmax were set to zero. So gave them the correct memory settings. I can now see flicker free vidio in xawtv!!! but, The zoneminder source text is still red!! it needs to be yellow to read the vidio. I still have a problem and will not get vidio in zoneminder web page.

Well, did a chown www-data.www.data /dev/Vidio0 as what was instructed to get the deamon to be read by zoneminder and now zoneminder will not start. Get this error!

Starting ZoneMinder: sh: Syntax error: end of file unexpected
failure

BTW, www-data.www.data does not make any sence. Should this have been http://localhost/zm ?



syslog
Aug 2 19:30:54 zm zmdc[2465]: INF [Starting pending process, zmc -d /dev/video0]
Aug 2 19:30:54 zm zmdc[2465]: INF ['zmc -d /dev/video0' starting at 11/08/02 19:30:54, pid = 2573]
Aug 2 19:30:54 zm zmdc[2573]: INF ['zmc -d /dev/video0' started at 11/08/02 19:30:54]
Aug 2 19:30:54 zm zmc_dvideo0[2573]: INF [Debug Level = 0, Debug Log = <none>]
Aug 2 19:30:54 zm zmc_dvideo0[2573]: INF [Starting Capture]
Aug 2 19:30:54 zm zmc_dvideo0[2573]: FAT [Failed to get picture attributes: Invalid argument]
Aug 2 19:30:54 zm zmc_dvideo0[2573]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Aug 2 19:30:54 zm zmdc[2465]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]



zmu -q -d /dev/video0 -v
[sudo] password for lortech:
Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video (GrandTec Multi Cap
Bus: PCI:0000:04:00.0
Version: 0.9.18
Type: 0x5000015
Supports video capture (X)
Does not support video output
Supports frame buffer overlay
Supports VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Supports read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
NTSC
NTSC-M
NTSC-M-JP
NTSC-M-KR
PAL
PAL-BG
PAL-H
PAL-I
PAL-DK
PAL-M
PAL-N
PAL-Nc
PAL-60
SECAM
SECAM-B
SECAM-G
SECAM-H
SECAM-DK
SECAM-L
SECAM-Lc
Formats:
8 bpp, gray (GREY)
8 bpp, dithered color (HI24)
15 bpp RGB, le (RGBO)
15 bpp RGB, be (RGBQ)
16 bpp RGB, le (RGBP)
16 bpp RGB, be (RGBR)
24 bpp RGB, le (BGR3)
32 bpp RGB, le (BGR4)
32 bpp RGB, be (RGB4)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, UYVY (UYVY)
4:2:2, planar, Y-Cb-Cr (422P)
4:2:0, planar, Y-Cb-Cr (YU12)
4:2:0, planar, Y-Cr-Cb (YV12)
4:1:1, planar, Y-Cb-Cr (411P)
4:1:0, planar, Y-Cb-Cr (YUV9)
4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
Bounds: 838 x 504
Default: 768 x 480
Current: 768 x 480
Inputs: 4
Input 0
Name: Composite0
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 1
Name: Composite1
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 2
Name: Composite2
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 3
Name: Composite3
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
jbmia
Posts: 50
Joined: Sat Jul 30, 2011 1:56 pm

Re: ./config compile error. All options selected.

Post by jbmia »

I would love to provide a response to this gentleman, but I keep getting this message:

"Your post looks too spamy for a new user, please remove off-site URLs."

Despite having no off site URL's in my post. Can someone please remove this limitation from my account so I can jump in here and help out..

jbmia
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: ./config compile error. All options selected.

Post by mastertheknife »

Your ./configure is somewhat messed up. You had some things that don't need to be there, and some were duplicated. I fixed it for you:

Code: Select all

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr ZM_DB_PASS=icu812 ZM_DB_NAME=zm ZM_DB_USER=lortech --with-ffmpeg=/usr --with-webuser=apache --with-webgroup=apache --enable-debug=yes --enable-crashtrace=yes
mastertheknife
Kfir Itzhak.
alltech
Posts: 34
Joined: Sat Jun 25, 2011 6:07 am

Re: ./config compile error. All options selected.

Post by alltech »

masterknife,

We talked on irc tonight. thanks for the help getting my system configured as well as bb99 and Coyote.

Now, zoneminder is not loading on bootup. I can manually load the rc file by typing in:

/etc/rc2.d/S20zoneminder start

And it does load. But what in the boot process loads this rc file?
Locked