Errors during rebuild
Posted: Thu Mar 03, 2011 10:47 pm
I lost my old zm system so I'm trying to build a new one. Installed Opensuse 11.3 and downloaded the 1.24 zm source archive. I had to install about a dozen more items during configure, but it finally completed successfully using the following options.
./configure --with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin
Now when I run make, it errors immediately with:
fizzy:/home/zm/ZoneMinder-1.24.2 # make
make all-recursive
make[1]: Entering directory `/home/zm/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/home/zm/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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 zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959:14: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40:81: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956:14: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/zm/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zm/ZoneMinder-1.24.2'
make: *** [all] Error 2
./configure --with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin
Now when I run make, it errors immediately with:
fizzy:/home/zm/ZoneMinder-1.24.2 # make
make all-recursive
make[1]: Entering directory `/home/zm/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/home/zm/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -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 zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959:14: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40:81: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956:14: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/zm/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zm/ZoneMinder-1.24.2'
make: *** [all] Error 2