Page 1 of 1

Problem building ZM on 64bit machine..... help please :)

Posted: Thu Feb 23, 2006 11:18 pm
by Jiberjaber
Wow well I'm back, been away playing with mythtv :) ZM has performed great untill now however... though I dont think it is a fault of ZM...

I have taken the plunge and built a new beast, 2G AMDx2 64Bit thing and 2G or RAM and a huge amount of storage (got to put the goat pron somewhere ;) )... it's aim is to provide storage, mythtv and ZM instead of the two SSF's I had running doing the same tasks...

Anyway to cut a long story short, I dont seem to be able to build the latest ZM from ZoneMinder-1.22.0-rc3.tar.gz and I am currently getting stuck with the following error:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Tying to build with:

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin/ --with-libarch=lib64

Code: Select all

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
configure: WARNING: You can call configure with the --with-mysql option.
    This tells configure where to find the MySql C library and headers if configure cannot
    locate them automatically.
    e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-ffmpeg option.
    This tells configure where to find the ffmpeg root directory within which are the libavcodec
    and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that
    your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you
    are using a local install of ffmpeg you may have to remove or rename a previous real installation
    as the headers and libraries from that will probably be picked up before your local copy.
    e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-extralibs option.
    Ordinarily you will need to use this option only when your copy of ffmpeg has been built
    with support for additional formats and you would use this option to detail which additional
    libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
    You will need to wrap this option in quotes if it contains any spaces.
    e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --with-webuser option.
    This tells configure what the user name of the web user is if it is not the default of 'apache'.
    e.g. --with-webuser=apache or --with-webuser=web
configure: WARNING: You can call configure with the --with-webgroup option.
    This tells configure what the group name of the web group is if it is not the default of 'apache'.
    e.g. --with-webgroup=apache or --with-webgroup=web
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
    This tells configure whether to compile ZoneMinder with debug included. Although debug is included
    by default it is not output unless explicitly switched on elsewhere. These checks may induce a
    small penalty on performance and if you are after squeezing the maximum possible performance out
    of ZoneMinder you may use this switch to prevent debug from being compiled in.
    e.g. --enable-debug=yes or --disable-debug
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) 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... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
/lib/cpp is there so I am a bit stumped (though it maybe I am a bit rusty also :) )

Code: Select all

lrwxrwxrwx  1 root root 14 Feb 22 23:05 /lib/cpp -> ../usr/bin/cpp
Any ideas ? TIA :)

Posted: Fri Feb 24, 2006 11:21 pm
by zoneminder
Can you check in config.log to see if that sheds any light on the situation? I don't have any 64bit machines at present but I know several contributors do.

Posted: Sat Feb 25, 2006 11:06 am
by Jiberjaber
I've taken a look through the log file but dont seem to be able to see where the problem is... I note g++ doesnt get found however, but not sure if that's the cause.

File located here: http://www.jiberjaber.org.uk/zm/config.log

Posted: Sat Feb 25, 2006 8:34 pm
by Pete M
Jason

Which Linux distro are you using ?

I think you need to install g++

Zoneminder builds fine here on Gentoo AMD64

Pete

Posted: Sat Feb 25, 2006 11:55 pm
by Jiberjaber
Ah... Fedore Core 4 at the moment.... I'll look into it, I have no end of probs at teh moment... dammed new technology, knew I should have stuck with the old :)

Posted: Thu Mar 02, 2006 5:16 pm
by Jiberjaber
Well re-installed FC4 (again for the upteenth time!)....

It builds to a point then dies off now...

Command Line:

Code: Select all

./configure --with-webdir=/var/www/html/zm --with-libarch=lib64 --with-cgidir=/var/www/cgi-bin --with-mysql=/usr/lib64


Results with all OK untill...
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
If I locate the missing file it is here:
/usr/lib64/mysql/libmysqlclient.a
So trying with --with-extralibs="/usr/lib64/mysql/libmysqlclient.a" results in the same issue...

If I try --with-extralibs="/usr/lib64/mysql/" if fails to compile at all....

Any further ideas ?

http://www.jiberjaber.org.uk/zm/config2.log

Posted: Thu Mar 02, 2006 6:23 pm
by cordel
You should be using --with-mysql=/usr for your path. This is supposed to be the prefix path for mysql and not the installed location.

Corey

Posted: Fri Mar 03, 2006 12:27 am
by Jiberjaber
Ack... I was sure I had tried that.... lost in the mists of time... it worked :)

Posted: Fri Mar 03, 2006 12:31 am
by Jiberjaber
.... and then I tried make... :lol:

... cant find ffmpeg/avformat.h ....

Bring back the good old days when you knew where everything was and you built it from scratch..... dammed that YUMm thing!...

Might have a look again after my hangover tomorrow :)