User:Gordon/Optical Drive Testing Script/scratchpad/cdrtools installation on Ubuntu 9.10

From FreekiWiki
Jump to navigation Jump to search

Here's how to build cdrtools on Ubuntu 9.10.

See also http://ubuntuforums.org/showthread.php?t=851707 (read the whole thread, it's a long-lived one but only 3 pages.)

The cdrtools Ubuntu build process that works

Install dependencies

  1. To be safe: sudo apt-get install build-essential

Build cdrtools beta

As of 13 March 2010, the stable version of cdrtools at ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz does NOT compile on Ubuntu 9.10, so you must use the latest development version (which at the time of writing, in case cdrtools-beta.tar.gz won't build, was cdrtools-2.01.01a77.tar.gz:

  1. wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz
  2. tar xvzf cdrtools-beta.tar.gz
  3. cd into the resulting directory
  4. ./Gmake.linux
  5. sudo ./Gmake.linux install

Build not working?

Maybe GNU make is to blame, so you could try building the cdrtools' author's 'smake' system and replacing 'Gmake.linux' in the above instructions with 'smake':

Build smake

  1. Download smake: wget ftp://ftp.berlios.de/pub/smake/smake-1.2.tar.gz
  2. tar xvzf smake-1.2.tar.gz
  3. cd into the resulting directory
  4. ./Gmake.linux
  5. sudo ./Gmake.linux install

Build instructions that didn't work

make COPTX=-DTRY_EXT2_FS wut?

The following still fails on 9.10 (using smake or the included Gmake.linux):

  1. Download cdrtools: wget ftp://ftp.berlios.de/pub/cdrecord/cdrtools.tar.gz
  2. tar xvzf cdrtools.tar.gz
  3. cd into the resulting directory
  4. /opt/schily/bin/smake

Error is:

In file included from skel.c:36:
../include/schily.h:111: error: conflicting types for ‘fexecve’
/usr/include/unistd.h:524: note: previous declaration of ‘fexecve’ was here
../include/schily.h:190: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here