Originally Posted by
Ringi
Yes it works in 12.04 and solves this problem:
(I cant test it in 13.10, no dvd drive)
Tested in 13.10
Code:
rig@rig-Aspire-R3600:~$ sudo apt-get -y install build-essential checkinstall && \
> mkdir -pv $HOME/libdvdcss_build && cd $HOME/libdvdcss_build && \
> sudo apt-get remove libdvdcss2 && \
> wget http://download.videolan.org/pub/libdvdcss/1.2.13/libdvdcss-1.2.13.tar.bz2 && \
> tar xvf libdvdcss-1.2.13.tar.bz2 && \
> cd libdvdcss-1.2.13 && \
> ./configure && make && \
> sudo checkinstall --pakdir "$HOME/libdvdcss_build" --backup=no --deldoc=yes \
> --pkgname libdvdcss2 --pkgversion "1.2.13" --fstrans=no \
> --deldesc=yes --delspec=yes --default && \
> make distclean && sudo ldconfig
[sudo] password for rig:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following NEW packages will be installed:
checkinstall
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 121 kB of archives.
After this operation, 516 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ saucy/universe checkinstall amd64 1.6.2-4ubuntu1 [121 kB]
Fetched 121 kB in 0s (382 kB/s)
Selecting previously unselected package checkinstall.
(Reading database ... 911634 files and directories currently installed.)
Unpacking checkinstall (from .../checkinstall_1.6.2-4ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up checkinstall (1.6.2-4ubuntu1) ...
mkdir: created directory ‘/home/rig/libdvdcss_build’
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libdvdcss2' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--2013-09-28 13:13:12-- http://download.videolan.org/pub/libdvdcss/1.2.13/libdvdcss-1.2.13.tar.bz2
Resolving download.videolan.org (download.videolan.org)... 88.191.250.9, 2a01:e0d:1:3:58bf:fa02:0:2
Connecting to download.videolan.org (download.videolan.org)|88.191.250.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 338588 (331K) [text/plain]
Saving to: ‘libdvdcss-1.2.13.tar.bz2’
100%[======================================>] 338.588 529KB/s in 0,6s
2013-09-28 13:13:13 (529 KB/s) - ‘libdvdcss-1.2.13.tar.bz2’ saved [338588/338588]
libdvdcss-1.2.13/
libdvdcss-1.2.13/src/
libdvdcss-1.2.13/src/dvdcss/
libdvdcss-1.2.13/src/dvdcss/dvdcss.h
libdvdcss-1.2.13/src/libdvdcss.pc.in
libdvdcss-1.2.13/src/device.c
libdvdcss-1.2.13/src/error.c
libdvdcss-1.2.13/src/ioctl.h
libdvdcss-1.2.13/src/device.h
libdvdcss-1.2.13/src/css.h
libdvdcss-1.2.13/src/common.h
libdvdcss-1.2.13/src/csstables.h
libdvdcss-1.2.13/src/ioctl.c
libdvdcss-1.2.13/src/libdvdcss.c
libdvdcss-1.2.13/src/libdvdcss.h
libdvdcss-1.2.13/src/css.c
libdvdcss-1.2.13/README
libdvdcss-1.2.13/aclocal.m4
libdvdcss-1.2.13/configure
libdvdcss-1.2.13/config.h.in
libdvdcss-1.2.13/depcomp
libdvdcss-1.2.13/test/
libdvdcss-1.2.13/test/dvd_region.c
libdvdcss-1.2.13/test/csstest.c
libdvdcss-1.2.13/config.sub
libdvdcss-1.2.13/config.guess
libdvdcss-1.2.13/AUTHORS
libdvdcss-1.2.13/libdvdcss.spec
libdvdcss-1.2.13/NEWS
libdvdcss-1.2.13/Makefile.am
libdvdcss-1.2.13/doc/
libdvdcss-1.2.13/doc/doxygen.cfg.in
libdvdcss-1.2.13/doc/footer.html
libdvdcss-1.2.13/doc/header.html
libdvdcss-1.2.13/COPYING
libdvdcss-1.2.13/INSTALL
libdvdcss-1.2.13/configure.ac
libdvdcss-1.2.13/ChangeLog
libdvdcss-1.2.13/missing
libdvdcss-1.2.13/m4/
libdvdcss-1.2.13/m4/ltsugar.m4
libdvdcss-1.2.13/m4/lt~obsolete.m4
libdvdcss-1.2.13/m4/libtool.m4
libdvdcss-1.2.13/m4/attributes.m4
libdvdcss-1.2.13/m4/ltversion.m4
libdvdcss-1.2.13/m4/ltoptions.m4
libdvdcss-1.2.13/install-sh
libdvdcss-1.2.13/ltmain.sh
libdvdcss-1.2.13/Makefile.in
libdvdcss-1.2.13/msvc/
libdvdcss-1.2.13/msvc/libdvdcss.dsp
libdvdcss-1.2.13/msvc/workspace.dsw
libdvdcss-1.2.13/msvc/csstest.dsp
libdvdcss-1.2.13/msvc/config.h
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
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... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking whether O_BINARY is declared... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for posix mkdir()... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.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... no
checking sys/cdio.h presence... no
checking for sys/cdio.h... no
checking sys/dvdio.h usability... no
checking sys/dvdio.h presence... no
checking for sys/dvdio.h... no
checking linux/cdrom.h usability... yes
checking linux/cdrom.h presence... yes
checking for linux/cdrom.h... yes
checking dvd.h usability... no
checking dvd.h presence... no
checking for dvd.h... no
checking sys/scsi/scsi_types.h, usability... no
checking sys/scsi/scsi_types.h, presence... no
checking for sys/scsi/scsi_types.h,... no
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
checking if gcc supports -Wall flag... yes
checking if gcc supports -Wsign-compare flag... yes
checking for gcc way to treat warnings as errors... -Werror
checking if gcc supports -fvisibility=hidden... yes
checking if gcc supports __attribute__(( visibility("default") ))... yes
checking for doxygen... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/doxygen.cfg
config.status: creating src/libdvdcss.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make all-am
make[1]: Entering directory `/home/rig/libdvdcss_build/libdvdcss-1.2.13'
CC src/libdvdcss.lo
src/libdvdcss.c: In function 'dvdcss_open':
src/libdvdcss.c:419:18: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write( i_fd, psz_tag, strlen(psz_tag) );
^
CC src/device.lo
CC src/css.lo
src/css.c: In function '_dvdcss_title':
src/css.c:275:18: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write( i_fd, psz_key, KEY_SIZE * 3 + 1 );
^
CC src/ioctl.lo
CC src/error.lo
CCLD libdvdcss.la
make[1]: Leaving directory `/home/rig/libdvdcss_build/libdvdcss-1.2.13'
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: y
Preparing package documentation...OK
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@rig-Aspire-R3600 ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ libdvdcss2 ]
3 - Version: [ 1.2.13 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ libdvdcss-1.2.13 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ libdvdcss2 ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
make[1]: Entering directory `/home/rig/libdvdcss_build/libdvdcss-1.2.13'
/bin/mkdir -p '/usr/local/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libdvdcss.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libdvdcss.so.2.1.0 /usr/local/lib/libdvdcss.so.2.1.0
libtool: install: (cd /usr/local/lib && { ln -s -f libdvdcss.so.2.1.0 libdvdcss.so.2 || { rm -f libdvdcss.so.2 && ln -s libdvdcss.so.2.1.0 libdvdcss.so.2; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libdvdcss.so.2.1.0 libdvdcss.so || { rm -f libdvdcss.so && ln -s libdvdcss.so.2.1.0 libdvdcss.so; }; })
libtool: install: /usr/bin/install -c .libs/libdvdcss.lai /usr/local/lib/libdvdcss.la
libtool: install: /usr/bin/install -c .libs/libdvdcss.a /usr/local/lib/libdvdcss.a
libtool: install: chmod 644 /usr/local/lib/libdvdcss.a
libtool: install: ranlib /usr/local/lib/libdvdcss.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/share/doc/libdvdcss'
/usr/bin/install -c -m 644 AUTHORS COPYING NEWS README ChangeLog '/usr/local/share/doc/libdvdcss'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 src/libdvdcss.pc '/usr/local/lib/pkgconfig'
/bin/mkdir -p '/usr/local/include/dvdcss'
/usr/bin/install -c -m 644 src/dvdcss/dvdcss.h '/usr/local/include/dvdcss'
make[1]: Leaving directory `/home/rig/libdvdcss_build/libdvdcss-1.2.13'
======================== Installation successful ==========================
Copying documentation directory...
./
./doc/
./doc/footer.html
./doc/header.html
./doc/doxygen.cfg.in
./doc/doxygen.cfg
./COPYING
./ChangeLog
./README
./INSTALL
./AUTHORS
./NEWS
Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Transferring package to /home/rig/libdvdcss_build...OK
Erasing temporary files...OK
Deleting doc-pak directory...OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been installed and saved to
/home/rig/libdvdcss_build/libdvdcss2_1.2.13-1_amd64.deb
You can remove it from your system anytime using:
dpkg -r libdvdcss2
**********************************************************************
test -z "libdvdcss.la" || rm -f libdvdcss.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -rf src/.libs src/_libs
rm -Rf stamp-doxygen doc/html
rm -f *.o
rm -f src/css.o
rm -f src/css.lo
rm -f src/device.o
rm -f src/device.lo
rm -f src/dvd_region-ioctl.o
rm -f src/error.o
rm -f src/error.lo
rm -f src/ioctl.o
rm -f src/ioctl.lo
rm -f src/libdvdcss.o
rm -f src/libdvdcss.lo
rm -f test/csstest-csstest.o
rm -f test/dvd_region-dvd_region.o
rm -f *.lo
rm -f *.tab.c
test -z "doc/doxygen.cfg src/libdvdcss.pc" || rm -f doc/doxygen.cfg src/libdvdcss.pc
test . = "." || test -z "" || rm -f
rm -f src/.deps/.dirstamp
rm -f src/.dirstamp
rm -f test/.deps/.dirstamp
rm -f test/.dirstamp
test -z "ChangeLog" || rm -f ChangeLog
rm -f config.h stamp-h1
rm -f libtool config.lt
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf src/.deps test/.deps
rm -f Makefile
rig@rig-Aspire-R3600:~/libdvdcss_build/libdvdcss-1.2.13$