openbsd support

Support and queries relating to all previous versions of ZoneMinder
Locked
bsdman
Posts: 13
Joined: Mon May 28, 2007 10:01 am

openbsd support

Post by bsdman »

i'm trying to compile zoneminder (1.22.3) on openbsd 4.0-stable (i386 arch)
if i manage to get it run, i will do a port. (for network use, as there is no webcam drivers i believe)

for now i get the following problem on configure:
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... no
configure: error: zm requires libdl.a
*** Error code 1

problem: dlsym exist on openbsdl but there is no libdl
http://www.openbsd.org/cgi-bin/man.cgi? ... ormat=html

if i check manually conftest and i compile it without -ldl flag, it works:
c++ -o conftest -O2 -pipe -I/usr/local/include -L/usr/local/lib -L/usr/local/lib/mysql conftest.cpp -lz -ljpeg

is there a way in configure option to make it happen this way ?
how do i change the configure.in line:
AC_CHECK_LIB(dl,dlsym,,AC_MSG_ERROR(zm requires libdl.a))

thanks
regards
bsdman
Posts: 13
Joined: Mon May 28, 2007 10:01 am

Post by bsdman »

few tests later, still blocked ...
commenting -ldl line in configure.in and regenerating configure pass the problem

it really would be easier if the local camera ports with platform dependent drivers was separated and a configure option, so other platforms can use zoneminder with network cameras. (OpenBSD, MacOS X, ...)

else, in improving support, you need
- add values.h (bsd => limits.h), execinfo.h (=> not needed), -ldl (=> not needed), linux/videodev.h in configure.in, config.h.in, and the relevant source files
- i try freebsd port patch, it improves a bit, but not sufficient to compile.


i get stopped there:

===> Building for ZoneMinder-1.22.3
make all-recursive
Making all in src
if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/local/include -I/usr/local/include -O2 -pipe -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.cpp; then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
In file included from jinclude.h:20,
from zm_jpeg.h:22,
from zm_image.h:33,
from zm_camera.h:32,
from zm_camera.cpp:21:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
from zm.h:28,
from zm_camera.cpp:20:
../config.h:77:1: warning: this is the location of the previous definition
zm_camera.cpp: In constructor `Camera::Camera(Camera::SourceType, int, int,
int, int, int, int, int, bool)':
zm_camera.cpp:25: error: `VIDEO_PALETTE_GREY' undeclared (first use this
function)
zm_camera.cpp:25: error: (Each undeclared identifier is reported only once for
each function it appears in.)
*** Error code 1


which seems a local camera dummy support from freebsd port.

ideas to make it work ?

thanks
regards
Locked