Subject: mplayer build failuer after aalib-x11 addition
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: tech-pkg
Date: 07/18/2005 22:24:06
Hi,

after todays changes to multimedia/mplayer-share I tried to build
mplayer with the following options enabled:

	aalib gif jpeg mplayer-real mplayer-win32 png

The results:

$ cd pkgsrc/multimedia/mplayer && make
[...]
cc -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=3Dathl=
on-4 -mcpu=3Dathlon-4 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE=
 -I/usr/pkg/include  -I.  -I/usr/pkg/include    -I/usr/X11R6/include       =
-o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o p=
laytreeparser.o asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_conf=
ig.o m_option.o parser-cfg.o m_struct.o edl.o unrarlib.o mixer.o parser-mpc=
md.o subopt-helper.o libvo/libvo.a libao2/libao2.a  vidix/libvidix.a  libmp=
codecs/libmpcodecs.a loader/libloader.a loader/dshow/libDS_Filter.a loader/=
dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a =
postproc/libswscale.a osdep/libosdep.a  libavcodec/libavcodec.a libavformat=
/libavformat.a          -lpng -lz -lz -ljpeg     -ltermcap    -lungif      =
libfaad2/libfaad2.a  mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tr=
emor/libvorbisidec.a   -lGL -lXxf86dga -lXv  -lXxf86vm -lXinerama  -Wl,-R/u=
sr/X11R6/lib -L/usr/X11R6/lib -lXext -lX11                -L-Wl,-R/usr/pkg/=
lib -Wl,-R-Wl,-R/usr/pkg/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib    -lposix =
-lpthread  -rdynamic -li386  -lintl -lm
libvo/libvo.a(vo_aa.o)(.text+0x1f3): In function `printosdtext':
: undefined reference to `aa_printf'
libvo/libvo.a(vo_aa.o)(.text+0x29e): In function `printosdtext':
: undefined reference to `aa_printf'
libvo/libvo.a(vo_aa.o)(.text+0x35f): In function `config':
: undefined reference to `aa_resize'
libvo/libvo.a(vo_aa.o)(.text+0x71c): In function `flip_page':
: undefined reference to `aa_flush'
libvo/libvo.a(vo_aa.o)(.text+0x872): In function `flip_page':
: undefined reference to `aa_puts'
libvo/libvo.a(vo_aa.o)(.text+0x8b0): In function `flip_page':
: undefined reference to `aa_puts'
libvo/libvo.a(vo_aa.o)(.text+0x8d6): In function `check_events':
: undefined reference to `aa_getevent'
libvo/libvo.a(vo_aa.o)(.text+0xb2b): In function `preinit':
: undefined reference to `aa_displayrecommended'
libvo/libvo.a(vo_aa.o)(.text+0xb30): In function `preinit':
: undefined reference to `aa_getfirst'
libvo/libvo.a(vo_aa.o)(.text+0xb43): In function `preinit':
: undefined reference to `aa_displayrecommended'
libvo/libvo.a(vo_aa.o)(.text+0xb48): In function `preinit':
: undefined reference to `aa_recommendhi'
libvo/libvo.a(vo_aa.o)(.text+0xb4f): In function `preinit':
: undefined reference to `aa_defparams'
libvo/libvo.a(vo_aa.o)(.text+0xb54): In function `preinit':
: undefined reference to `aa_autoinit'
libvo/libvo.a(vo_aa.o)(.text+0xb71): In function `preinit':
: undefined reference to `aa_autoinitkbd'
libvo/libvo.a(vo_aa.o)(.text+0xb8f): In function `preinit':
: undefined reference to `aa_resizehandler'
libvo/libvo.a(vo_aa.o)(.text+0xb9d): In function `preinit':
: undefined reference to `aa_hidecursor'
libvo/libvo.a(vo_aa.o)(.text+0xba2): In function `preinit':
: undefined reference to `aa_getrenderparams'
libvo/libvo.a(vo_aa.o)(.text+0xc67): In function `preinit':
: undefined reference to `aa_close'
libvo/libvo.a(vo_aa.o)(.text+0xd0a): In function `preinit':
: undefined reference to `aa_displayrecommended'
libvo/libvo.a(vo_aa.o)(.text+0xd17): In function `preinit':
: undefined reference to `aa_recommendlow'
libvo/libvo.a(vo_aa.o)(.text+0xd26): In function `preinit':
: undefined reference to `aa_displayrecommended'
libvo/libvo.a(vo_aa.o)(.text+0xd2b): In function `preinit':
: undefined reference to `aa_recommendhi'
libvo/libvo.a(vo_aa.o)(.text+0xf01): In function `resize':
: undefined reference to `aa_resize'
libvo/libvo.a(vo_aa.o)(.text+0x143b): In function `draw_frame':
: undefined reference to `aa_fastrender'
libvo/libvo.a(vo_aa.o)(.text+0x1486): In function `draw_frame':
: undefined reference to `aa_render'
libvo/libvo.a(vo_aa.o)(.text+0x15b2): In function `draw_slice':
: undefined reference to `aa_fastrender'
libvo/libvo.a(vo_aa.o)(.text+0x15ec): In function `draw_slice':
: undefined reference to `aa_render'
libvo/libvo.a(vo_aa.o)(.text+0x1701): In function `uninit':
: undefined reference to `aa_close'
libvo/libvo.a(vo_aa.o)(.text+0x1ce5): In function `parse_suboptions':
: undefined reference to `aa_defrenderparams'
libvo/libvo.a(vo_aa.o)(.text+0x1cec): In function `parse_suboptions':
: undefined reference to `aa_defparams'
libvo/libvo.a(vo_aa.o)(.text+0x1cf1): In function `parse_suboptions':
: undefined reference to `aa_parseoptions'
libvo/libvo.a(vo_aa.o)(.text+0x1f3a): In function `parse_suboptions':
: undefined reference to `aa_defparams'
libvo/libvo.a(vo_aa.o)(.text+0x1f4a): In function `parse_suboptions':
: undefined reference to `aa_defrenderparams'
libvo/libvo.a(vo_aa.o)(.text+0x1f56): In function `parse_suboptions':
: undefined reference to `aa_parseoptions'
libvo/libvo.a(vo_aa.o)(.text+0x1f61): In function `parse_suboptions':
: undefined reference to `aa_help'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x112): In function `control':
: undefined reference to `_oss_ioctl'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x1ad): In function `control':
: undefined reference to `_oss_ioctl'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x1e6): In function `control':
: undefined reference to `_oss_ioctl'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x21e): In function `control':
: undefined reference to `_oss_ioctl'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x285): In function `control':
: undefined reference to `_oss_ioctl'
libmpdemux/libmpdemux.a(tvi_bsdbt848.o)(.text+0x2a7): more undefined refere=
nces to `_oss_ioctl' follow
gmake: *** [mplayer] Error 1
*** Error code 2
[...]


Adding `-laa-x11 -lossaudio' made the failing command succeed. Any
idea what could be wrong?


Cheers, Jukka

--=20
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~