Opened 9 years ago

Last modified 8 years ago

#1740 new defect

libswscale/mlib/yuv2rgb_mlib.c fails to build on OpenSolaris

Reported by: vle@… Owned by: reimar
Priority: normal Component: vo
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Build of mplayer on OpenSolaris? end like this

gcc -DHAVE_AV_CONFIG_H -I.. -I.. -I/usr/X11R6/include -I/usr/include -I/home/cheusov/pkg-gcc34/include -I/home/cheusov/pkg-gcc34/include/freetype2 -Wundef -Wdisabled-optimization -Wdeclaration-after-statement -std=gnu99 -O -I/usr/include -I/home/cheusov/pkg-gcc34/include -I/home/cheusov/pkg-gcc34/include/freetype2 -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -I/usr/X11R6/include -I/usr/include -I/home/cheusov/pkg-gcc34/include -I/home/cheusov/pkg-gcc34/include/freetype2 -I/usr/X11/include -I/home/cheusov/pkg-gcc34/include/SDL -D_REENTRANT -I/home/cheusov/pkg-gcc34/include/freetype2 -I/home/cheusov/pkg-gcc34/include -c -o mlib/yuv2rgb_mlib.o mlib/yuv2rgb_mlib.c
-mcpu=' is deprecated. Use -mtune=' or '-march=' instead.
mlib/yuv2rgb_mlib.c:33: error: syntax error before '*' token
mlib/yuv2rgb_mlib.c: In function `mlib_YUV2ARGB420_32':
mlib/yuv2rgb_mlib.c:36: error: `c' undeclared (first use in this function)
mlib/yuv2rgb_mlib.c:36: error: (Each undeclared identifier is reported only once
...

Note that struct SwsContext? is declared in libswscale/swscale.h but defined in libswscale/swscale_internal.h which is not included in libswscale/mlib/yuv2rgb_mlib.c.

Fix: #include "libswscale/swscale_internal.h"

Change History (1)

comment:1 Changed 8 years ago by compn

  • Owner changed from beastd to reimar
Note: See TracTickets for help on using tickets.