#112 build problem in libmpeg3

open
nobody
XMovie (10)
5
2005-01-18
2005-01-18
David Ronis
No

I'm trying to build cinelerra and/or xmovie from source
on an
i686 (slackware-10+patches) box using gcc-3.4.3. I get
lots of
build errors, in part I think because of unresolved
externals
in libmpeg3.a. For example,

gcc `cat i686/c_flags` -o i686/mpeg3dump mpeg3dump.c
i686/libmpeg3.a -lm -lpthread
i686/libmpeg3.a(output.o)(.text+0x5b): In function
`mpeg3video_rgb16_mmx':
: undefined reference to `mpeg3_MMX_80w'

plus load s of others. The reason for all of these
seems to be in libmpeg3/output/video.c. All the
variables are declared static; e.g.,

static unsigned long mpeg3_MMX_80w[] =
{0x00800080, 0x00800080}; /*dd
00080 0080h, 000800080h */

Removing the static gets rid of the errror. Similar
problems
show up in slice.c and reconstruct.c

There are still compile problems, but seem to be related to
inline assembly differences in the latest version of gcc
(I'll report them later if/when I figure out what's
going on)

Discussion