[vlc-devel] Build of libdvdcss fails using SUN studio 7 cc

Lars Tunkrans lars.tunkrans at bredband.net
Thu Jan 16 23:39:16 CET 2003


SUN studio 7 cc  reports multiple warnings for
libdvdcss-1.2.4/src/ioctl.c
Then the assembler fails.




$ cd libdvdcss-1.2.4
$ echo $CFLAGS
-xarch=v8plusa
$ ./configure
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gcc... /opt/SUNWspro/bin/cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /opt/SUNWspro/bin/cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of /opt/SUNWspro/bin/cc... none
checking how to run the C preprocessor... /opt/SUNWspro/bin/cc -E
checking for ANSI C header files... yes
checking for non-GNU ld... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for /opt/SUNWspro/bin/cc option to produce PIC... -KPIC
checking if /opt/SUNWspro/bin/cc PIC flag -KPIC works... yes
checking if /opt/SUNWspro/bin/cc static flag -Bstatic works... yes
checking if /opt/SUNWspro/bin/cc supports -c -o file.o... yes
checking if /opt/SUNWspro/bin/cc supports -c -o file.lo... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.9 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for /opt/SUNWspro/bin/cc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for unistd.h... (cached) yes
checking winioctl.h usability... no
checking winioctl.h presence... no
checking for winioctl.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/cdio.h usability... yes
checking sys/cdio.h presence... yes
checking for sys/cdio.h... yes
checking sys/dvdio.h usability... no
checking sys/dvdio.h presence... no
checking for sys/dvdio.h... no
checking linux/cdrom.h usability... no
checking linux/cdrom.h presence... no
checking for linux/cdrom.h... no
checking dvd.h usability... no
checking dvd.h presence... no
checking for dvd.h... no
checking /sys/dev/scsi/scsi_ioctl.h usability... no
checking /sys/dev/scsi/scsi_ioctl.h presence... no
checking for /sys/dev/scsi/scsi_ioctl.h... no
checking sys/scsi/scsi_types.h usability... yes
checking sys/scsi/scsi_types.h presence... yes
checking for sys/scsi/scsi_types.h... yes
checking sys/scsi/impl/uscsi.h usability... yes
checking sys/scsi/impl/uscsi.h presence... yes
checking for sys/scsi/impl/uscsi.h... yes
checking sys/scsi.h usability... no
checking sys/scsi.h presence... no
checking for sys/scsi.h... no
checking IOKit/storage/IODVDMediaBSDClient.h usability... no
checking IOKit/storage/IODVDMediaBSDClient.h presence... no
checking for IOKit/storage/IODVDMediaBSDClient.h... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/dvdcss/Makefile
config.status: creating test/Makefile
config.status: creating debian/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
$ gmake
cd . \
   && CONFIG_FILES= CONFIG_HEADERS=config.h \
      /bin/bash ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
gmake  all-recursive
gmake[1]: Entering directory `/home/ltu/dvd/libdvdcss-1.2.4'
Making all in src
gmake[2]: Entering directory `/home/ltu/dvd/libdvdcss-1.2.4/src'
Making all in dvdcss
gmake[3]: Entering directory `/home/ltu/dvd/libdvdcss-1.2.4/src/dvdcss'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/home/ltu/dvd/libdvdcss-1.2.4/src/dvdcss'
gmake[3]: Entering directory `/home/ltu/dvd/libdvdcss-1.2.4/src'
source='libdvdcss.c' object='libdvdcss.lo' libtool=yes \
depfile='.deps/libdvdcss.Plo' tmpdepfile='.deps/libdvdcss.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST -xarch=v8plusa -c -o libdvdcss.lo `test 
-f libdvdcss.c || echo './'`libdvdcss.c
mkdir .libs
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c libdvdcss.c  -KPIC -DPIC -o libdvdcss.o
mv -f libdvdcss.o .libs/libdvdcss.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c libdvdcss.c -o libdvdcss.o >/dev/null 2>&1
mv -f .libs/libdvdcss.lo libdvdcss.lo
source='device.c' object='device.lo' libtool=yes \
depfile='.deps/device.Plo' tmpdepfile='.deps/device.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST -xarch=v8plusa -c -o device.lo `test -f 
device.c || echo './'`device.c
rm -f .libs/device.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c device.c  -KPIC -DPIC -o device.o
mv -f device.o .libs/device.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c device.c -o device.o >/dev/null 2>&1
mv -f .libs/device.lo device.lo
source='css.c' object='css.lo' libtool=yes \
depfile='.deps/css.Plo' tmpdepfile='.deps/css.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST -xarch=v8plusa -c -o css.lo `test -f 
css.c || echo './'`css.c
rm -f .libs/css.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c css.c  -KPIC -DPIC -o css.o
mv -f css.o .libs/css.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c css.c -o css.o >/dev/null 2>&1
mv -f .libs/css.lo css.lo
source='ioctl.c' object='ioctl.lo' libtool=yes \
depfile='.deps/ioctl.Plo' tmpdepfile='.deps/ioctl.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST -xarch=v8plusa -c -o ioctl.lo `test -f 
ioctl.c || echo './'`ioctl.c
rm -f .libs/ioctl.lo
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-DDVDCSS_DIST -xarch=v8plusa -c ioctl.c  -KPIC -DPIC -o ioctl.o
"ioctl.c", line 189: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 366: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 525: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 681: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 803: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 937: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 1070: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 1191: zero or negative subscript
"ioctl.c", line 1191: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 1312: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 1396: warning: statement not reached
"ioctl.c", line 1449: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
"ioctl.c", line 1533: warning: statement not reached
"ioctl.c", line 1594: warning: assignment type mismatch:
         pointer to char "=" pointer to unsigned char
cc: acomp failed for ioctl.c
gmake[3]: *** [ioctl.lo] Error 1
gmake[3]: Leaving directory `/home/ltu/dvd/libdvdcss-1.2.4/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/ltu/dvd/libdvdcss-1.2.4/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/ltu/dvd/libdvdcss-1.2.4'
gmake: *** [all] Error 2

--
========================================================
Lars Tunkrans
ICL Distinguished Engineer,
SUN Certified Network Administrator
Microsoft MCP MCP+I MCSE MCSE+I
Email     lars.tunkrans at bredband.net
--------------------------------------------------------

-- 
This is the vlc-devel 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-devel mailing list