Page 1 of 1

Trouble compiling / linking under debian - kernel: 2.6.8-2-3

Posted: Sat Oct 01, 2005 10:16 pm
by tobkron
Hi,
I need some help building ZoneMinder. Seaching the Forum and reading through FAQ did not help me, solving my problem:

Debian 3.1 : "Linux server 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux"

I have trouble linking zoneminder "zm-1.21.3":
- configure is fine - except of:
checking for MD5 in -lcrypto... no
configure: WARNING: libcrypto.a is required for authenticated streaming
which I have read, is not a real problem.

- perl ./zmconfig.pl looks good

- make gives me the following error messages:
make all-recursive
make[1]: Entering directory `/usr/src/zm-1.21.3'
Making all in src
make[2]: Entering directory `/usr/src/zm-1.21.3/src'
g++ -g -O2 -L -L/usr/bin/lib -L/usr/lib/mysql -o zmc zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lavformat -lavcodec -lpcre -lmysqlclient -ldl -lz -ljpeg
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x33d): In function `dts_decode_frame':
: undefined reference to `dts_frame'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x395): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x3bf): In function `dts_decode_frame':
: undefined reference to `dts_block'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x3fd): In function `dts_decode_frame':
: undefined reference to `dts_samples'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x485): In function `dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libavcodec.a(dtsdec.o)(.text+0x51e): In function `dts_decode_init':
: undefined reference to `dts_init'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/usr/src/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm-1.21.3'
make: *** [all] Error 2
Thanks a lot for your help

tobkron

Posted: Sun Oct 02, 2005 10:45 pm
by zoneminder
This looks like a problem with the ffmpeg libraries as the function complaining is in one of the ffmpeg libraries. Do you know which version of ffmpeg you have and have you built it with any particular options?

Phil

try adding -ldts

Posted: Mon Oct 03, 2005 3:25 pm
by seb3s
Hi,
I had the same problem with my debian sarge & zm 1.21.3.

I just added -ldts to the following line:
LIBS = -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg -ldts

In the 2 files:
- Makefile
- src/Makefile

Have a look at:
http://www.zoneminder.com/forums/viewtopic.php?t=4270
It solved my problem.

Sebastien.

Posted: Tue Oct 04, 2005 7:58 pm
by tobkron
Hello Phil,

I did not build ffmpeg, but installed the Debian package:
ffmpeg -v
ffmpeg version 0.4.9-pre1, build 4747, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --build i386-linux --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-a52 --enable-dts --disable-debug --prefix=/usr
built on Mar 22 2005 00:10:18, gcc: 3.3.5 (Debian 1:3.3.5-12)
Thank you

tobkron

Posted: Tue Oct 04, 2005 8:01 pm
by tobkron
Hello Sebastien,

thanks a lot.
This solved the problem !! - No more complaints by the compiler / linker

Thank you

tobkron