[MPlayer-users] [BUG] latest cvs won't compile in freebsd (?)

Steven M. Schultz sms at 2BSD.COM
Sun May 19 20:18:01 CEST 2002


Hi -

> From: Jesus Climent <data at polinux.upv.es>
> Latest update breaks compilation in freebsd:
> 
> gmake -C libavcodec
> gmake[1]: Entering directory `/root/video/main/libavcodec'
> gcc -O4 -march=3Di686 -mcpu=3Di686 -pipe -ffast-math -fomit-frame-pointer
> -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -Wall -g
> -DHAVE_AV_CONFIG_H -I.. -I -c -o common.o common.c=20
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x79): undefined reference to `main'
> /tmp/ccxYqmjm.o: In function `init_vlc':
> /root/video/main/libavcodec/common.c:446: undefined reference to `av_free'
> /root/video/main/libavcodec/common.c:447: undefined reference to `av_free'
	
	The problem is that ffmpeg/libavcodec has changed.

	I worked around this problem by defining SRC_PATCH in the
	libavcodec/Makefile"

--- libavcodec/Makefile.dist	Sun May 19 10:22:00 2002
+++ libavcodec/Makefile	Sun May 19 11:02:27 2002
@@ -3,6 +3,7 @@
 # (c) 2000, 2001, 2002 Gerard Lantau
 #
 include ../config.mak
+SRC_PATH=`pwd`
 
 VPATH=$(SRC_PATH)/libavcodec
 
	Cheers,
	Steven Schultz
	sms at 2bsd.com




More information about the MPlayer-users mailing list