Motion - Bug Report 2005x 11x 08x 140111

BUG: libavformat.so: undefined reference to

When building motion-3.2.4_snap4 and motion-3.2.3 I encounter errors during the make on FC4, it happens when linksing motion.

Any Ideas?

Test case

...

   ************************
   *   Configure status   *
   ************************

pthread Support:     Yes
jpeg Support:        Yes
V4L included:        Yes
FFmpeg Support:      Yes
MYSQL Support:       Yes
PostgreSQL Support:  No

CFLAGS: -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium4 -mfpmath=sse -msse2  -mmmx
LIBS: -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib/mysql -lmysqlclient -lz
LDFLAGS:  -L/usr/lib

Install prefix:       /usr

....
Motion object files compiled.

Linking Motion...
--------------------------------------------------------------------------------
gcc -L/usr/lib -o motion motion.o conf.o draw.o video.o netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o event.o picture.o rotate.o webhttpd.o webcam.o ffmpeg.o -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib/mysql -lmysqlclient -lz
/usr/lib/libavformat.so: undefined reference to `dc1394_stop_iso_transmission'
/usr/lib/libavformat.so: undefined reference to `dc1394_get_camera_nodes'
/usr/lib/libavformat.so: undefined reference to `dc1394_start_iso_transmission'
/usr/lib/libavformat.so: undefined reference to `dc1394_destroy_handle'
/usr/lib/libavformat.so: undefined reference to `dc1394_dma_unlisten'
/usr/lib/libavformat.so: undefined reference to `dc1394_create_handle'
/usr/lib/libavformat.so: undefined reference to `dc1394_dma_single_capture'
/usr/lib/libavformat.so: undefined reference to `dc1394_dma_setup_capture'
/usr/lib/libavformat.so: undefined reference to `dc1394_dma_done_with_buffer'
/usr/lib/libavformat.so: undefined reference to `dc1394_dma_release_camera'
collect2: ld returned 1 exit status
make: *** [motion] Error 1

Environment

Motion version: 3.2.3
ffmpeg version: 0.4.9-pre1, build 4756
Shared libraries: ffmpeg, mysql
Server OS: Fedora Core 4, kernel 2.6.11-1.1369_FC4

-- JeffCronstrom - 08 Nov 2005

Follow up

The problem is the ffmpeg you use.

There are a few ffmpeg rpms where something is wrong with respect to dependencies.

Either you need to find and install the rpm that satisfies the dc1394 dependency

or

use another ffmpeg rpm from another repositiry.

or

download the source version of the rpm and rebuild a new binary rpm from it. That is what I did back in the old days when I used Fedora core 2. The Dag rpm for ffmpeg has a problem.

It is not a bug in Motion.

-- KennethLavrsen - 14 Nov 2005

Fix record

Topic revision: r3 - 14 Nov 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.