strndup undefined

Steven M. Schultz sms at 2BSD.COM
Fri Jun 14 08:38:31 CEST 2002


Hi!

	Building the current cvs version of 'vlc' on BSD/OS gives me an
	undefined symbol 'strndup':

gcc -Wall -Winline  -pthread -DSYS_BSDI -finline-limit-30000 -pipe -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\" -Iinclude -Iextras -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -D__VLC__ -O3 -ffast-math -funroll-loops -fomit-frame-pointer -mcpu=pentiumpro -o vlc src/vlc.o  lib/libvlc.a plugins/idct.a plugins/idctclassic.a plugins/motion.a plugins/imdct.a plugins/downmix.a plugins/mpeg_adec.a plugins/ac3_adec.a plugins/mpeg_vdec.a plugins/xvideo.a  -Wall -lintl -lgnugetopt -ldl   $idct_LDFLAGS $idctclassic_LDFLAGS $motion_LDFLAGS $imdct_LDFLAGS $downmix_LDFLAGS $mpeg_adec_LDFLAGS $ac3_adec_LDFLAGS $mpeg_vdec_LDFLAGS $xvideo_LDFLAGS
lib/libvlc.a(video_output.o): In function `__vout_CreateThread':
video_output.o(.text+0xdd): undefined reference to `strndup'
gmake: *** [vlc] Error 1

	I suspect that 'strndup' isn't as widely available as 'strdup'.

	Would 'strdup' work instead of 'strndup'?

	Cheers,
	Steven Schultz
	sms at 2bsd.com

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list