build problems with cvs version of vlc

Steven M. Schultz sms at 2BSD.COM
Wed Apr 3 21:08:33 CEST 2002


Hi -

> From: Samuel Hocevar <sam at zoy.org>
>    You will need libdvdcss-1.1.0 which is about to be released. You can
> find it here for the moment:

	Wow - that was fast!

	I get further now ;)

gcc -finline-limit-30000 -Wall -Winline -pipe -DSYS_BSDI -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_PATH=\"/usr/local/share/videolan\" -DPLUGIN_PATH=\"/usr/local/lib/videolan/vlc\"  -Iinclude -Iextras -D_REENTRANT -D_GNU_SOURCE -pthread -O3 -ffast-math -funroll-loops -fomit-frame-pointer -mcpu=pentiumpro -I../../include -I../../extras  -DMODULE_NAME=vcd -DMODULE_NAME_IS_vcd -DPLUGIN  -fPIC -c cdrom_tools.c -o cdrom_tools.lo.vcd
cdrom_tools.c:55: linux/cdrom.h: No such file or directory
cdrom_tools.c: In function `ioctl_GetTrackCount':
cdrom_tools.c:95: storage size of `tochdr' isn't known
cdrom_tools.c:98: `CDROMREADTOCHDR' undeclared (first use in this function)
cdrom_tools.c:98: (Each undeclared identifier is reported only once
cdrom_tools.c:98: for each function it appears in.)
cdrom_tools.c:95: warning: unused variable `tochdr'
cdrom_tools.c: In function `ioctl_GetSectors':
cdrom_tools.c:173: storage size of `tochdr' isn't known
cdrom_tools.c:174: storage size of `tocent' isn't known
cdrom_tools.c:177: `CDROMREADTOCHDR' undeclared (first use in this function)
cdrom_tools.c:195: `CDROM_LBA' undeclared (first use in this function)
cdrom_tools.c:197: `CDROM_LEADOUT' undeclared (first use in this function)
cdrom_tools.c:199: `CDROMREADTOCENTRY' undeclared (first use in this function)
cdrom_tools.c:174: warning: unused variable `tocent'
cdrom_tools.c:173: warning: unused variable `tochdr'
cdrom_tools.c:115: warning: `i_tracks' might be used uninitialized in this function
cdrom_tools.c: In function `ioctl_ReadSector':
cdrom_tools.c:241: `CD_FRAMES' undeclared (first use in this function)
cdrom_tools.c:244: dereferencing pointer to incomplete type
cdrom_tools.c:244: `CD_SECS' undeclared (first use in this function)
cdrom_tools.c:245: dereferencing pointer to incomplete type
cdrom_tools.c:246: dereferencing pointer to incomplete type
cdrom_tools.c:249: `CDROMREADRAW' undeclared (first use in this function)
gmake[1]: *** [cdrom_tools.lo.vcd] Error 1

	For some reason none of the defines such as

		HAVE_BSD_DVD_STRUCT
		DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H
		DVD_STRUCT_IN_DVD_H

	are present, and on a non-linux system the "#include <linux/cdrom.h>"
	is obviously not going to work:

#if defined(HAVE_BSD_DVD_STRUCT) || \
 defined(DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H) || \
  defined(DVD_STRUCT_IN_DVD_H)
  #   include <dvd.h>
  #elif defined ( SYS_DARWIN )
  #   include <CoreFoundation/CFBase.h>
  #   include <IOKit/IOKitLib.h>
  #   include <IOKit/storage/IOCDTypes.h>
  #   include <IOKit/storage/IOCDMedia.h>
  #   include <IOKit/storage/IOCDMediaBSDClient.h>
  #else
  #   include <linux/cdrom.h>
#endif


	Hints, ideas - I suspect it's autoconf magic that needs to be
	added...

	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