make error

Support and queries relating to all previous versions of ZoneMinder
Locked
skyshadow
Posts: 8
Joined: Thu Jul 08, 2004 12:25 am
Location: Keokuk, Ia

make error

Post by skyshadow »

During make i run into this error:

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/devel/zoneminder/zm-1.21.0'
Making all in src
make[2]: Entering directory `/home/devel/zoneminder/zm-1.21.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Iyes/include -Iyes/include   -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zmc.cpp:24:
zm.h:37: error: storage class specified for field `positive'
In file included from zm_monitor.h:28,
                 from zmc.cpp:26:
zm_image.h:34: error: syntax error before `}' token
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/devel/zoneminder/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/devel/zoneminder/zm-1.21.0'
make: *** [all] Error 2
I am running zm-1.21.0 compiled from source on a clarkconnect server version 3.0 based on Fedora Core 2. I have all the dependancies that i have found met. I used default settings when running perl zmconfig.pl. Anyone know what this is about?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That's a little strange. What version of g++ do you have?

Phil
skyshadow
Posts: 8
Joined: Thu Jul 08, 2004 12:25 am
Location: Keokuk, Ia

Post by skyshadow »

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

Post by zoneminder »

So nothing particularly odd there.

It seems to be complaining about the word 'positive' as if it's a reserved word. You could try editing zm.h and changing both instances of positive to something like ptive, then recompiling. You may find other places you need to change it as well for a full build but I'd be interested whether it gets further.

Phil
skyshadow
Posts: 8
Joined: Thu Jul 08, 2004 12:25 am
Location: Keokuk, Ia

Post by skyshadow »

this is what i got after changing postive to ptive:

Code: Select all

In file included from zmc.cpp:24:
zm.h:37: error: storage class specified for field `ptive'
In file included from zm_monitor.h:28,
                 from zmc.cpp:26:
zm_image.h:34: error: syntax error before `}' token
zmc.cpp: In function `int main(int, char**)':
zmc.cpp:221: error: 'struct DeltaTimeval' has no member named 'positive'
zmc.cpp:246: error: 'struct DeltaTimeval' has no member named 'positive'
make[2]: *** [zmc.o] Error 1
I looked in both monitor and cpp and didn't see anything that referenced anything that has to do with the word positive. I did try changing the value for

Code: Select all

result.positive = (delta>=0)
to

Code: Select all

result.positive = (delta>1)
to see if i would get a different result but the error was the same.

And this is what i get if i change positive to ptive in the same line

Code: Select all

In file included from zmc.cpp:24:
zm.h:37: error: storage class specified for field `positive'
In file included from zm_monitor.h:28,
                 from zmc.cpp:26:
zm_image.h:34: error: syntax error before `}' token
zmc.cpp: In function `int main(int, char**)':
zmc.cpp:221: error: 'struct DeltaTimeval' has no member named 'ptive'
zmc.cpp:246: error: 'struct DeltaTimeval' has no member named 'ptive'
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/devel/zoneminder/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/devel/zoneminder/zm-1.21.0'
make: *** [all] Error 2
Seems like i may have missed a value in the ./configure part. Thats the only thing i can come up with.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you post the output of the configure command when you run it?

Phil
skyshadow
Posts: 8
Joined: Thu Jul 08, 2004 12:25 am
Location: Keokuk, Ia

Post by skyshadow »

Code: Select all

[root@sdihome /]# cd home/devel/zoneminder/zm-1.21.0
[root@sdihome zm-1.21.0]# ./configure --with-mysql --with-ffmpeg --with-webdir=/var/www/html --with-lame=/usr/local/lib --with-cgidir=/var/www/html/cgi-bin
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-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
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++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
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... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... no
configure: WARNING: libpcre.a is required for remote/network camera support
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required if ffmpeg was built with it
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating web/graphics/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for zmconfig.txt... yes
Does anything look wierd? I didn't see anything that stood out that could cause it. One thing i forgot to mention is that i am running an smp kernel. Don't know if that will matter but it seems to with some compiled software.
Locked