pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47357: multimedia/mplayer option "caca" breaks build



>Number:         47357
>Category:       pkg
>Synopsis:       multimedia/mplayer option "caca" breaks build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 20 21:50:00 +0000 2012
>Originator:     John D. Baker
>Release:        NetBSD 6.0_STABLE/amd64, pkgsrc-HEAD (pre-pkgsrc-2012Q4)
>Organization:
>Environment:
NetBSD skuld 6.0_STABLE NetBSD 6.0_STABLE (SKULD) #5: Sun Dec 16 22:11:23 CST 
2012  sysop@skuld:/d0/build/netbsd-6/obj/amd64/sys/arch/amd64/compile/SKULD 
amd64

>Description:
This also occurs on netbsd-5 and HEAD, and with i386 on each.

With "PKG_OPTIONS.mplayer+=caca", building multimedia/mplayer fails as
follows:

[...]
gcc -MD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes 
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement 
-std=gnu99  -O2 -I/usr/pkg/include/cdparanoia -I/usr/pkg/include -I/usr/include 
-I/usr/X11R7/include -I/usr/pkg/include/faad2 -I/usr/X11R7/include/freetype2 
-fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -I. -Iffmpeg  -I/usr/pkg/include -I/usr/include 
-I/usr/X11R7/include -I/usr/pkg/include/faad2 -I/usr/X11R7/include/freetype2 
-D_THREAD_SAFE -I/usr/X11R7/include -I/usr/pkg/include/  
-I/usr/pkg/include/artsc -pthread -I/usr/pkg/include/glib/glib-2.0 
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include   
-I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/pkg/include 
-I/usr/pkg/include/libdvdread -c -o libvo/vo_caca.o libvo/vo_caca.c
libvo/vo_caca.c:57:23: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
libvo/vo_caca.c:58:23: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
libvo/vo_caca.c:59:23: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
libvo/vo_caca.c: In function 'resize':
libvo/vo_caca.c:139:5: warning: implicit declaration of function 
'caca_get_canvas_width'
libvo/vo_caca.c:139:38: error: 'canvas' undeclared (first use in this function)
libvo/vo_caca.c:139:38: note: each undeclared identifier is reported only once 
for each function it appears in
libvo/vo_caca.c:140:5: warning: implicit declaration of function 
'caca_get_canvas_height'
libvo/vo_caca.c:142:5: warning: implicit declaration of function 
'caca_free_dither'
libvo/vo_caca.c:142:22: error: 'dither' undeclared (first use in this function)
libvo/vo_caca.c:144:5: warning: implicit declaration of function 
'caca_create_dither'
libvo/vo_caca.c:153:5: warning: implicit declaration of function 
'caca_set_dither_antialias'
libvo/vo_caca.c:154:5: warning: implicit declaration of function 
'caca_set_dither_charset'
libvo/vo_caca.c:155:5: warning: implicit declaration of function 
'caca_set_dither_color'
libvo/vo_caca.c:156:5: warning: implicit declaration of function 
'caca_set_dither_algorithm'
libvo/vo_caca.c: In function 'draw_frame':
libvo/vo_caca.c:177:5: warning: implicit declaration of function 
'caca_dither_bitmap'
libvo/vo_caca.c:177:24: error: 'canvas' undeclared (first use in this function)
libvo/vo_caca.c:177:58: error: 'dither' undeclared (first use in this function)
libvo/vo_caca.c: In function 'flip_page':
libvo/vo_caca.c:194:13: warning: implicit declaration of function 'caca_put_str'
libvo/vo_caca.c:194:26: error: 'canvas' undeclared (first use in this function)
libvo/vo_caca.c:200:5: warning: implicit declaration of function 
'caca_refresh_display'
libvo/vo_caca.c:200:26: error: 'display' undeclared (first use in this function)
libvo/vo_caca.c: In function 'check_events':
libvo/vo_caca.c:243:5: error: 'caca_event_t' undeclared (first use in this 
function)
libvo/vo_caca.c:243:18: error: expected ';' before 'cev'
libvo/vo_caca.c:244:27: error: 'display' undeclared (first use in this function)
libvo/vo_caca.c:244:53: error: 'cev' undeclared (first use in this function)
libvo/vo_caca.c:244:5: error: too many arguments to function 'caca_get_event'
/d0/build/pkgsrc/multimedia/mplayer/work/.buildlink/include/caca.h:262:14: 
note: declared here
libvo/vo_caca.c:251:14: error: 'CACA_EVENT_QUIT' undeclared (first use in this 
function)
libvo/vo_caca.c:278:17: warning: implicit declaration of function 
'caca_get_dither_algorithm_list'
libvo/vo_caca.c:278:61: error: 'dither' undeclared (first use in this function)
libvo/vo_caca.c:286:17: warning: implicit declaration of function 
'caca_get_dither_antialias_list'
libvo/vo_caca.c:294:17: warning: implicit declaration of function 
'caca_get_dither_charset_list'
libvo/vo_caca.c:302:17: warning: implicit declaration of function 
'caca_get_dither_color_list'
libvo/vo_caca.c: In function 'uninit':
libvo/vo_caca.c:319:22: error: 'dither' undeclared (first use in this function)
libvo/vo_caca.c:321:5: warning: implicit declaration of function 
'caca_free_display'
libvo/vo_caca.c:321:23: error: 'display' undeclared (first use in this function)
libvo/vo_caca.c:322:5: warning: implicit declaration of function 
'caca_free_canvas'
libvo/vo_caca.c:322:22: error: 'canvas' undeclared (first use in this function)
libvo/vo_caca.c: In function 'preinit':
libvo/vo_caca.c:340:5: error: 'canvas' undeclared (first use in this function)
libvo/vo_caca.c:340:5: warning: implicit declaration of function 
'caca_create_canvas'
libvo/vo_caca.c:346:5: error: 'display' undeclared (first use in this function)
libvo/vo_caca.c:346:5: warning: implicit declaration of function 
'caca_create_display'
libvo/vo_caca.c:354:5: warning: implicit declaration of function 
'caca_set_display_title'
gmake: *** [libvo/vo_caca.o] Error 1
*** Error code 2

Stop.
make: stopped in /d0/nbsd/pkgsrc/multimedia/mplayer
*** Error code 1

Stop.
make: stopped in /d0/nbsd/pkgsrc/multimedia/mplayer

>How-To-Repeat:
In "/etc/mk.conf", set PKG_OPTIONS.mplayer+=caca

Attempt to build "multimedia/mplayer"
>Fix:
Workaround: don't use option "caca".



Home | Main Index | Thread Index | Old Index