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

Support and queries relating to all previous versions of ZoneMinder
Locked
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

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

Post 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 :)
------
Regards,

Jason
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

Post 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
------
Regards,

Jason
Pete M
Posts: 7
Joined: Sun Feb 12, 2006 7:44 pm

Post 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
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

Post 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 :)
------
Regards,

Jason
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

Post 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
------
Regards,

Jason
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

Post by Jiberjaber »

Ack... I was sure I had tried that.... lost in the mists of time... it worked :)
------
Regards,

Jason
Jiberjaber
Posts: 42
Joined: Fri Dec 30, 2005 7:08 pm
Location: UK

Post 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 :)
------
Regards,

Jason
Locked