Menu

compiling 1.1.8 problem

Help
msch
2004-04-09
2004-04-14
  • msch

    msch - 2004-04-09

    i can't get 1.1.8 to compile.  here is the error i'm getting...
    g++ -DDRIVER_TABLE_FILE=\"/usr/local/share/cdrdao/drivers\" -g -O2   -o cdrdao  main.o -L. -ldao -L../paranoia -lcdda_paranoia -L../trackdb -ltrackdb -lpthread -L../scsilib/export -lscg -lschily -lnsl
    ./libdao.a(ScsiIf-lib.o)(.text+0x24a): In function `ScsiIf::init()':
    /home/msch/tmp/cdrdao-1.1.8/dao/ScsiIf-lib.cc:127: undefined reference to `scg_help'
    collect2: ld returned 1 exit status
    make[2]: *** [cdrdao] Error 1

    any suggestions?  i'm runing kernel 2.6.4 and debian unstable.  thanks!

     
    • Denis Leroy

      Denis Leroy - 2004-04-09

      Could you post more information ?  In particular, how is the compile configured ? Could you send me the output of the 'configure' command ? Was it configured to compile its own scsilib library, or are you using an external cdrtools library ? If you're using an external version of the scsi library, it should contain the scg_help command :

      > nm /usr/lib/libscg.a | grep scg_help
               U __scg_help
      000004e4 T scg_help
      00000000 T __scg_help

      The default configuration is to compile our own version of the scsi library, and it should do so *before* trying to  compile cdrdao itself.

      -denis

       
    • msch

      msch - 2004-04-10

      sure- i've tried it three ways..
      here are the results:

      ./configure
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... yes
      checking build system type... i686-pc-linux-gnu
      checking host system type... i686-pc-linux-gnu
      checking for gcc... gcc
      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... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking for style of include used by make... GNU
      checking dependency style of gcc... gcc3
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking dependency style of g++... gcc3
      checking how to run the C preprocessor... gcc -E
      checking for a BSD-compatible install... /usr/bin/install -c
      checking for ranlib... ranlib
      checking for ar... ar
      checking whether make sets $(MAKE)... (cached) yes
      checking for egrep... grep -E
      checking for ANSI C header files... yes
      checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking getopt.h usability... yes
      checking getopt.h presence... yes
      checking for getopt.h... yes
      checking malloc.h usability... yes
      checking malloc.h presence... yes
      checking for malloc.h... yes
      checking for unistd.h... (cached) yes
      checking sys/mman.h usability... yes
      checking sys/mman.h presence... yes
      checking for sys/mman.h... yes
      checking sched.h usability... yes
      checking sched.h presence... yes
      checking for sched.h... yes
      checking for an ANSI C-conforming const... yes
      checking return type of signal handlers... void
      checking for short... yes
      checking size of short... 2
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for long long... yes
      checking size of long long... 8
      checking for int16_t... yes
      checking for int32_t... yes
      checking for u_int16_t... yes
      checking for u_int32_t... yes
      checking for sched_getparam... yes
      checking for sched_get_priority_max... yes
      checking for sched_setscheduler... yes
      checking for socket in -lsocket... no
      checking for connect in -lsocket... no
      checking for gethostbyname in -lnsl... yes
      checking for inet_addr in -lnsl... yes
      checking for inet_ntoa in -lnsl... yes
      checking for strerror... yes
      checking for mlockall... yes
      checking for munlockall... yes
      checking for seteuid... yes
      checking for setegid... yes
      checking for getpagesize... yes
      checking for usleep... yes
      checking for inet_aton... yes
      checking for pthread_create... no
      checking for pthread_create in -lpthread... yes
      checking for pthread_sigmask in -lpthread... yes
      checking for pthread_attr_setschedpolicy in -lpthread... yes
      checking for pthread_attr_setschedparam in -lpthread... yes
      checking for pthread_getschedparam in -lpthread... yes
      checking for pthread_setschedparam in -lpthread... yes
      checking for Lame library version >= 3.92... yes
      checking for pkg-config... /usr/bin/pkg-config
      checking for gtkmm-2.0 >= 2.2... yes
      checking GTKMM2_CFLAGS... -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 
      checking GTKMM2_LIBS... -Wl,--export-dynamic -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
      checking for libgnomeuimm-2.0 >= 2.0... yes
      checking LIBGUIMM2_CFLAGS... -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.0 -I/usr/lib/libgnomeuimm-2.0/include -I/usr/include/libgnomemm-2.0 -I/usr/lib/libgnomemm-2.0/include -I/usr/include/libgnomecanvasmm-2.0 -I/usr/lib/libgnomecanvasmm-2.0/include -I/usr/include/gconfmm-2.0 -I/usr/lib/gconfmm-2.0/include -I/usr/include/libglademm-2.0 -I/usr/lib/libglademm-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libbonoboui-2.0 
      checking LIBGUIMM2_LIBS... -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lgnomeuimm-2.0 -lgnomemm-2.0 -lgnomecanvasmm-2.0 -lgconfmm-2.0 -lglademm-2.0 -lgnomeui-2 -lSM -lICE -lgtkmm-2.0 -lglade-2.0 -lgdkmm-2.0 -latkmm-1.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lbonoboui-2 -lxml2 -lpthread -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lgobject-2.0 -lgthread-2.0 -lm -lgmodule-2.0 -ldl -lglib-2.0 
      configure: creating ./config.status
      config.status: creating trackdb/Makefile
      config.status: creating dao/Makefile
      config.status: creating utils/Makefile
      config.status: creating xdao/Makefile
      config.status: creating xdao/stock/Makefile
      config.status: creating paranoia/Makefile
      config.status: creating Makefile
      config.status: creating specs/cdrdao.rh9.spec
      config.status: creating specs/cdrdao.fedora1.spec
      config.status: creating config.h
      config.status: config.h is unchanged
      config.status: executing depfiles commands

      ------------------------------------------------------
        Building scsilib   : yes
        Building cdrdao    : yes
        Building toc2cue   : yes
        Building cue2toc   : yes
        Building toc2mp3   : yes
        Building gcdmaster : yes
      ------------------------------------------------------

      produces :

      g++ -DDRIVER_TABLE_FILE=\"/usr/local/share/cdrdao/drivers\" -g -O2   -o cdrdao  main.o -L. -ldao -L../paranoia -lcdda_paranoia -L../trackdb -ltrackdb -lpthread -L../scsilib/export -lscg -lschily -lnsl
      ./libdao.a(ScsiIf-lib.o)(.text+0x24a): In function `ScsiIf::init()':
      /home/msch/tmp/cdrdao-1.1.8/dao/ScsiIf-lib.cc:127: undefined reference to `scg_help'
      collect2: ld returned 1 exit status
      make[2]: *** [cdrdao] Error 1

      i'll split the other ways into different posts so this doesn't get too long.

       
    • msch

      msch - 2004-04-10

      ./configure --with-scglib-inc=/usr/include/schily --with-scglib-lib=/usr/lib
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... yes
      checking build system type... i686-pc-linux-gnu
      checking host system type... i686-pc-linux-gnu
      checking for gcc... gcc
      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... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking for style of include used by make... GNU
      checking dependency style of gcc... gcc3
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking dependency style of g++... gcc3
      checking how to run the C preprocessor... gcc -E
      checking for a BSD-compatible install... /usr/bin/install -c
      checking for ranlib... ranlib
      checking for ar... ar
      checking whether make sets $(MAKE)... (cached) yes
      checking for egrep... grep -E
      checking for ANSI C header files... yes
      checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking getopt.h usability... yes
      checking getopt.h presence... yes
      checking for getopt.h... yes
      checking malloc.h usability... yes
      checking malloc.h presence... yes
      checking for malloc.h... yes
      checking for unistd.h... (cached) yes
      checking sys/mman.h usability... yes
      checking sys/mman.h presence... yes
      checking for sys/mman.h... yes
      checking sched.h usability... yes
      checking sched.h presence... yes
      checking for sched.h... yes
      checking for an ANSI C-conforming const... yes
      checking return type of signal handlers... void
      checking for short... yes
      checking size of short... 2
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for long long... yes
      checking size of long long... 8
      checking for int16_t... yes
      checking for int32_t... yes
      checking for u_int16_t... yes
      checking for u_int32_t... yes
      checking for sched_getparam... yes
      checking for sched_get_priority_max... yes
      checking for sched_setscheduler... yes
      checking for socket in -lsocket... no
      checking for connect in -lsocket... no
      checking for gethostbyname in -lnsl... yes
      checking for inet_addr in -lnsl... yes
      checking for inet_ntoa in -lnsl... yes
      checking for strerror... yes
      checking for mlockall... yes
      checking for munlockall... yes
      checking for seteuid... yes
      checking for setegid... yes
      checking for getpagesize... yes
      checking for usleep... yes
      checking for inet_aton... yes
      checking for pthread_create... no
      checking for pthread_create in -lpthread... yes
      checking for pthread_sigmask in -lpthread... yes
      checking for pthread_attr_setschedpolicy in -lpthread... yes
      checking for pthread_attr_setschedparam in -lpthread... yes
      checking for pthread_getschedparam in -lpthread... yes
      checking for pthread_setschedparam in -lpthread... yes
      checking for Lame library version >= 3.92... yes
      checking for pkg-config... /usr/bin/pkg-config
      checking for gtkmm-2.0 >= 2.2... yes
      checking GTKMM2_CFLAGS... -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 
      checking GTKMM2_LIBS... -Wl,--export-dynamic -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
      checking for libgnomeuimm-2.0 >= 2.0... yes
      checking LIBGUIMM2_CFLAGS... -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.0 -I/usr/lib/libgnomeuimm-2.0/include -I/usr/include/libgnomemm-2.0 -I/usr/lib/libgnomemm-2.0/include -I/usr/include/libgnomecanvasmm-2.0 -I/usr/lib/libgnomecanvasmm-2.0/include -I/usr/include/gconfmm-2.0 -I/usr/lib/gconfmm-2.0/include -I/usr/include/libglademm-2.0 -I/usr/lib/libglademm-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libbonoboui-2.0 
      checking LIBGUIMM2_LIBS... -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lgnomeuimm-2.0 -lgnomemm-2.0 -lgnomecanvasmm-2.0 -lgconfmm-2.0 -lglademm-2.0 -lgnomeui-2 -lSM -lICE -lgtkmm-2.0 -lglade-2.0 -lgdkmm-2.0 -latkmm-1.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lbonoboui-2 -lxml2 -lpthread -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lgobject-2.0 -lgthread-2.0 -lm -lgmodule-2.0 -ldl -lglib-2.0 
      configure: creating ./config.status
      config.status: creating trackdb/Makefile
      config.status: creating dao/Makefile
      config.status: creating utils/Makefile
      config.status: creating xdao/Makefile
      config.status: creating xdao/stock/Makefile
      config.status: creating paranoia/Makefile
      config.status: creating Makefile
      config.status: creating specs/cdrdao.rh9.spec
      config.status: creating specs/cdrdao.fedora1.spec
      config.status: creating config.h
      config.status: config.h is unchanged
      config.status: executing depfiles commands

      ------------------------------------------------------
        Building scsilib   : no (bypassed by configuration)
        Building cdrdao    : yes
        Building toc2cue   : yes
        Building cue2toc   : yes
        Building toc2mp3   : yes
        Building gcdmaster : yes
      ------------------------------------------------------

      produces:

      g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia -I/usr/include/schily   -DDRIVER_TABLE_FILE=\"/usr/local/share/cdrdao/drivers\" -g -O2 -c -o ScsiIf-lib.o `test -f 'ScsiIf-lib.cc' || echo './'`ScsiIf-lib.cc
      ScsiIf-lib.cc: In member function `int ScsiIf::init()':
      ScsiIf-lib.cc:127: error: `scg_help' undeclared (first use this function)
      ScsiIf-lib.cc:127: error: (Each undeclared identifier is reported only once for
         each function it appears in.)
      make[2]: *** [ScsiIf-lib.o] Error 1
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/dao'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8'
      make: *** [all] Error 2

       
    • msch

      msch - 2004-04-10

      ./configure --without-scglib
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for gawk... no
      checking for mawk... mawk
      checking whether make sets $(MAKE)... yes
      checking build system type... i686-pc-linux-gnu
      checking host system type... i686-pc-linux-gnu
      checking for gcc... gcc
      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... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking for style of include used by make... GNU
      checking dependency style of gcc... gcc3
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking dependency style of g++... gcc3
      checking how to run the C preprocessor... gcc -E
      checking for a BSD-compatible install... /usr/bin/install -c
      checking for ranlib... ranlib
      checking for ar... ar
      checking whether make sets $(MAKE)... (cached) yes
      checking for egrep... grep -E
      checking for ANSI C header files... yes
      checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
      checking fcntl.h presence... yes
      checking for fcntl.h... yes
      checking getopt.h usability... yes
      checking getopt.h presence... yes
      checking for getopt.h... yeschecking malloc.h usability... yes
      checking malloc.h presence... yes
      checking for malloc.h... yes
      checking for unistd.h... (cached) yes
      checking sys/mman.h usability... yes
      checking sys/mman.h presence... yes
      checking for sys/mman.h... yes
      checking sched.h usability... yes
      checking sched.h presence... yes
      checking for sched.h... yes
      checking for an ANSI C-conforming const... yes
      checking return type of signal handlers... void
      checking for short... yes
      checking size of short... 2
      checking for int... yes
      checking size of int... 4
      checking for long... yes
      checking size of long... 4
      checking for long long... yes
      checking size of long long... 8
      checking for int16_t... yes
      checking for int32_t... yes
      checking for u_int16_t... yes
      checking for u_int32_t... yes
      checking for sched_getparam... yes
      checking for sched_get_priority_max... yes
      checking for sched_setscheduler... yes
      checking for socket in -lsocket... no
      checking for connect in -lsocket... no
      checking for gethostbyname in -lnsl... yes
      checking for inet_addr in -lnsl... yes
      checking for inet_ntoa in -lnsl... yes
      checking for strerror... yes
      checking for mlockall... yes
      checking for munlockall... yes
      checking for seteuid... yes
      checking for setegid... yes
      checking for getpagesize... yes
      checking for usleep... yes
      checking for inet_aton... yes
      checking for pthread_create... no
      checking for pthread_create in -lpthread... yes
      checking for pthread_sigmask in -lpthread... yes
      checking for pthread_attr_setschedpolicy in -lpthread... yes
      checking for pthread_attr_setschedparam in -lpthread... yes
      checking for pthread_getschedparam in -lpthread... yes
      checking for pthread_setschedparam in -lpthread... yes
      checking for Lame library version >= 3.92... yes
      checking for pkg-config... /usr/bin/pkg-config
      checking for gtkmm-2.0 >= 2.2... yes
      checking GTKMM2_CFLAGS... -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 
      checking GTKMM2_LIBS... -Wl,--export-dynamic -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
      checking for libgnomeuimm-2.0 >= 2.0... yes
      checking LIBGUIMM2_CFLAGS... -DORBIT2=1 -pthread -I/usr/include/libgnomeuimm-2.0 -I/usr/lib/libgnomeuimm-2.0/include -I/usr/include/libgnomemm-2.0 -I/usr/lib/libgnomemm-2.0/include -I/usr/include/libgnomecanvasmm-2.0 -I/usr/lib/libgnomecanvasmm-2.0/include -I/usr/include/gconfmm-2.0 -I/usr/lib/gconfmm-2.0/include -I/usr/include/libglademm-2.0 -I/usr/lib/libglademm-2.0/include -I/usr/include/libgnomeui-2.0 -I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libbonoboui-2.0 
      checking LIBGUIMM2_LIBS... -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lgnomeuimm-2.0 -lgnomemm-2.0 -lgnomecanvasmm-2.0 -lgconfmm-2.0 -lglademm-2.0 -lgnomeui-2 -lSM -lICE -lgtkmm-2.0 -lglade-2.0 -lgdkmm-2.0 -latkmm-1.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lbonoboui-2 -lxml2 -lpthread -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lgobject-2.0 -lgthread-2.0 -lm -lgmodule-2.0 -ldl -lglib-2.0 
      configure: creating ./config.status
      config.status: creating trackdb/Makefile
      config.status: creating dao/Makefile
      config.status: creating utils/Makefile
      config.status: creating xdao/Makefile
      config.status: creating xdao/stock/Makefile
      config.status: creating paranoia/Makefile
      config.status: creating Makefile
      config.status: creating specs/cdrdao.rh9.spec
      config.status: creating specs/cdrdao.fedora1.spec
      config.status: creating config.h
      config.status: executing depfiles commands

      ------------------------------------------------------
        Building scsilib   : yes
        Building cdrdao    : yes
        Building toc2cue   : yes
        Building cue2toc   : yes
        Building toc2mp3   : yes
        Building gcdmaster : yes
      ------------------------------------------------------

      produces:
      g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../trackdb -I./../paranoia    -DDRIVER_TABLE_FILE=\"/usr/local/share/cdrdao/drivers\" -g -O2 -c -o ScsiIf-lib.o `test -f 'ScsiIf-lib.cc' || echo './'`ScsiIf-lib.cc
      ScsiIf-lib.cc:30:21: xconfig.h: No such file or directory
      ScsiIf-lib.cc:32:22: standard.h: No such file or directory
      ScsiIf-lib.cc:33:24: scg/scgcmd.h: No such file or directory
      ScsiIf-lib.cc:34:28: scg/scsitransp.h: No such file or directory
      ScsiIf-lib.cc:35:25: scg/scsireg.h: No such file or directory
      ScsiIf-lib.cc:43: error: `SCSI' was not declared in this scope
      ScsiIf-lib.cc:43: error: `scgp' was not declared in this scope
      ScsiIf-lib.cc:43: error: variable or field `printVersionInfo' declared void
      ScsiIf-lib.cc:55: error: syntax error before `*' token
      ScsiIf-lib.cc: In constructor `ScsiIf::ScsiIf(const char*)':
      ScsiIf-lib.cc:73: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc: In destructor `ScsiIf::~ScsiIf()':
      ScsiIf-lib.cc:102: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:103: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:103: error: `scg_close' undeclared (first use this function)
      ScsiIf-lib.cc:103: error: (Each undeclared identifier is reported only once for
         each function it appears in.)
      ScsiIf-lib.cc:104: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc: In member function `int ScsiIf::init()':
      ScsiIf-lib.cc:124: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:124: error: `scg_open' undeclared (first use this function)
      ScsiIf-lib.cc:127: error: `scg_help' undeclared (first use this function)
      ScsiIf-lib.cc:131: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:133: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:133: error: `scg_bufsize' undeclared (first use this function)
      ScsiIf-lib.cc:140: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:140: error: `scg_getbuf' undeclared (first use this function)
      ScsiIf-lib.cc:147: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:147: error: `printVersionInfo' cannot be used as a function
      ScsiIf-lib.cc: In member function `int ScsiIf::sendCmd(const unsigned char*,
         int, const unsigned char*, int, unsigned char*, int, int)':
      ScsiIf-lib.cc:184: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:187: error: invalid application of `sizeof' to an incomplete type
      ScsiIf-lib.cc:189: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:190: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:196: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:200: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:203: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:208: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:213: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:216: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:217: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:217: error: `SCG_RECV_DATA' undeclared (first use this function)
      ScsiIf-lib.cc:220: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:220: error: `SCG_DISRE_ENA' undeclared (first use this function)
      ScsiIf-lib.cc:221: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:223: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:223: error: `CCS_SENSE_LEN' undeclared (first use this function)
      ScsiIf-lib.cc:226: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:227: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:228: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:230: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:230: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:231: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:184: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc: In member function `const unsigned char* ScsiIf::getSense(int&)
         const':ScsiIf-lib.cc:242: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:244: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc: In member function `void ScsiIf::printError()':
      ScsiIf-lib.cc:249: error: 'class ScsiIfImpl' has no member named 'scgp_'
      ScsiIf-lib.cc:249: error: `scg_printerr' undeclared (first use this function)
      ScsiIf-lib.cc: At global scope:
      ScsiIf-lib.cc:293: error: `SCSI' was not declared in this scope
      ScsiIf-lib.cc:293: error: `scgp' was not declared in this scope
      ScsiIf-lib.cc:293: error: parse error before `char'
      ScsiIf-lib.cc: In function `int scanInquiry(...)':
      ScsiIf-lib.cc:295: error: `scgp' undeclared (first use this function)
      ScsiIf-lib.cc:298: error: `scg_sense_key' undeclared (first use this function)
      ScsiIf-lib.cc:300: error: `buf' undeclared (first use this function)
      ScsiIf-lib.cc:301: error: invalid application of `sizeof' to an incomplete type
      ScsiIf-lib.cc:303: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:304: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:306: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:307: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:308: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:309: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:309: error: `SC_G0_CDBLEN' undeclared (first use this function)
      ScsiIf-lib.cc:310: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:319: error: invalid use of undefined type `struct scg_cmd'
      ScsiIf-lib.cc:295: error: forward declaration of `struct scg_cmd'
      ScsiIf-lib.cc:323: error: invalid use of undefined type `struct scsi_inquiry'
      ScsiIf-lib.cc:322: error: forward declaration of `struct scsi_inquiry'
      ScsiIf-lib.cc:323: error: `INQ_OPTD' undeclared (first use this function)
      ScsiIf-lib.cc:323: error: invalid use of undefined type `struct scsi_inquiry'
      ScsiIf-lib.cc:322: error: forward declaration of `struct scsi_inquiry'
      ScsiIf-lib.cc:323: error: `INQ_ROMD' undeclared (first use this function)
      ScsiIf-lib.cc:325: error: `scg_scsibus' undeclared (first use this function)
      ScsiIf-lib.cc:325: error: `scg_target' undeclared (first use this function)
      ScsiIf-lib.cc:326: error: `scg_lun' undeclared (first use this function)
      ScsiIf-lib.cc:327: error: `sdata' undeclared (first use this function)
      ScsiIf-lib.cc:329: error: invalid use of undefined type `struct scsi_inquiry'
      ScsiIf-lib.cc:322: error: forward declaration of `struct scsi_inquiry'
      ScsiIf-lib.cc:331: error: invalid use of undefined type `struct scsi_inquiry'
      ScsiIf-lib.cc:322: error: forward declaration of `struct scsi_inquiry'
      ScsiIf-lib.cc:333: error: invalid use of undefined type `struct scsi_inquiry'
      ScsiIf-lib.cc:322: error: forward declaration of `struct scsi_inquiry'
      ScsiIf-lib.cc: In static member function `static ScsiIf::ScanData*
         ScsiIf::scan(int*, char*)':
      ScsiIf-lib.cc:346: error: `SCSI' undeclared (first use this function)
      ScsiIf-lib.cc:352: error: `scg_open' undeclared (first use this function)
      ScsiIf-lib.cc:355: error: `printVersionInfo' cannot be used as a function
      ScsiIf-lib.cc:358: error: `scg_getbuf' undeclared (first use this function)
      ScsiIf-lib.cc:359: error: `scg_close' undeclared (first use this function)
      ScsiIf-lib.cc:367: error: `scg_havebus' undeclared (first use this function)
      ScsiIf-lib.cc:371: error: `scg_settarget' undeclared (first use this function)
      ScsiIf-lib.cc: At global scope:
      ScsiIf-lib.cc:389: error: variable or field `printVersionInfo' declared void
      ScsiIf-lib.cc:389: error: redefinition of `int printVersionInfo'
      ScsiIf-lib.cc:43: error: `int printVersionInfo' previously defined here
      ScsiIf-lib.cc:389: error: syntax error before `{' token
      ScsiIf-lib.cc:393: error: `SCG_VERSION' was not declared in this scope
      ScsiIf-lib.cc:393: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:394: error: `SCG_AUTHOR' was not declared in this scope
      ScsiIf-lib.cc:394: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:395: error: ISO C++ forbids declaration of `message' with no type
      ScsiIf-lib.cc:395: error: `int message' redeclared as different kind of symbol
      ../trackdb/util.h:43: error: previous declaration of `void message(int, const
         char*, ...)'
      ScsiIf-lib.cc:395: error: initializer list being treated as compound expression
      ScsiIf-lib.cc:395: error: invalid conversion from `const char*' to `int'
      ScsiIf-lib.cc:397: error: ISO C++ forbids declaration of `vers' with no type
      ScsiIf-lib.cc:397: error: conflicting types for `int vers'
      ScsiIf-lib.cc:393: error: previous declaration as `const char*vers'
      ScsiIf-lib.cc:397: error: `SCG_VERSION' was not declared in this scope
      ScsiIf-lib.cc:397: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:398: error: ISO C++ forbids declaration of `auth' with no type
      ScsiIf-lib.cc:398: error: conflicting types for `int auth'
      ScsiIf-lib.cc:394: error: previous declaration as `const char*auth'
      ScsiIf-lib.cc:398: error: `SCG_AUTHOR' was not declared in this scope
      ScsiIf-lib.cc:398: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:400: error: ISO C++ forbids declaration of `message' with no type
      ScsiIf-lib.cc:400: error: redefinition of `int message'
      ScsiIf-lib.cc:395: error: `int message' previously declared here
      ScsiIf-lib.cc:400: error: initializer list being treated as compound expression
      ScsiIf-lib.cc:402: error: ISO C++ forbids declaration of `vers' with no type
      ScsiIf-lib.cc:402: error: redefinition of `int vers'
      ScsiIf-lib.cc:397: error: `int vers' previously defined here
      ScsiIf-lib.cc:402: error: `SCG_RVERSION' was not declared in this scope
      ScsiIf-lib.cc:402: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:403: error: ISO C++ forbids declaration of `auth' with no type
      ScsiIf-lib.cc:403: error: redefinition of `int auth'
      ScsiIf-lib.cc:398: error: `int auth' previously defined here
      ScsiIf-lib.cc:403: error: `SCG_RAUTHOR' was not declared in this scope
      ScsiIf-lib.cc:403: error: `scg_version' was not declared in this scope
      ScsiIf-lib.cc:405: error: paScsiIf-lib.cc:409: error: ISO C++ forbids declaration of `message' with no type
      ScsiIf-lib.cc:409: error: redefinition of `int message'
      ScsiIf-lib.cc:400: error: `int message' previously declared here
      ScsiIf-lib.cc:409: error: initializer list being treated as compound expression
      ScsiIf-lib.cc:409: error: invalid conversion from `const char*' to `int'
      ScsiIf-lib.cc:410: error: parse error before `}' token
      make[2]: *** [ScsiIf-lib.o] Error 1
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/dao'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8'
      make: *** [all] Error 2

      sorry for the long posts...please let me know if there is anything else i can get you. 

      nm /usr/lib/libscg.a | grep scg_help gives me nothing.  this is with libscg.a from cdrecord-dev version 4:1.10-7  from debian stable.  thanks for the help!

       
    • Denis Leroy

      Denis Leroy - 2004-04-13

      There are several problems here.

      Case 1 (default): the build of scsilib failed. You'd have to show me the full output of 'make -C scsilib', but it obviously failed and therefore it can't find the library scsilib/export/libscg.a. Instead it tries to link with /usr/lib/libscg.a (from cdrecord-devel) and fails (see case 2 below).

      Case 2 (with cdrecord-devel) : this is failing because your version of cdrtools is too old. It looks like we need at least cdrtools >= 2.0. I'll run some tests and add a configure check for this.

      Case 3 (--without-scglib): this is a bug, or rather, a missing feature, in the configure script of cdrdao 1.1.8. In short: the --without-scglib option is broken with 1.1.8. I just fixed it in CVS, so it'll be back for 1.1.9 :-)

      If you get a chance to try a build from CVS, please let me know (you'll need automake >= 1.6)

      -denis

       
    • msch

      msch - 2004-04-13

      here's the output of 'make -C scsilib'
      i'll try to build the CVS version later tonight and let you know how it goes.  thanks for the help!

      msch@cassandra:~/tmp/cdrdao-1.1.8$ make -C scsilib
      make: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib'
      Makefile:18: warning: overriding commands for target `install'
      RULES/rules1.dir:27: warning: ignoring old commands for target `install'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/conf"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/conf'
      make[1]: Nothing to be done for `all'.
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/conf'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/inc"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/inc/align_test.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
          ==> COMPILING "OBJ/i686-linux-cc/align_test.o"
          ==> LINKING "OBJ/i686-linux-cc/align_test"
          ==> GENERATING include file "../incs/i686-linux-cc/align.h"
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/inc/avoffset.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
          ==> COMPILING "OBJ/i686-linux-cc/avoffset.o"
          ==> LINKING "OBJ/i686-linux-cc/avoffset"
          ==> GENERATING include file "../incs/i686-linux-cc/avoffset.h"
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/inc'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/lib"
      NOTICE: Partial source (SRCROOT/lib) missing
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/libdeflt"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libdeflt'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/libdeflt/libdeflt.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libdeflt'
          ==> COMPILING "OBJ/i686-linux-cc/default.o"
          ==> ARCHIVING  "../libs/i686-linux-cc/libdeflt.a"
          ==> RANDOMIZING ARCHIVE "../libs/i686-linux-cc/libdeflt.a"
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libdeflt'
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libdeflt'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/librscg"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/librscg'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/librscg/librscg.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/librscg'
          ==> COMPILING "OBJ/i686-linux-cc/scsi-remote.o"
          ==> ARCHIVING  "../libs/i686-linux-cc/librscg.a"
          ==> RANDOMIZING ARCHIVE "../libs/i686-linux-cc/librscg.a"
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/librscg'
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/librscg'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/libscg"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libscg'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/libscg/libscg.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libscg'
          ==> COMPILING "OBJ/i686-linux-cc/scsitransp.o"
          ==> COMPILING "OBJ/i686-linux-cc/scsihack.o"
      In file included from scsi-linux-sg.c:69,
                       from scsihack.c:127:
      /usr/src/linux/include/scsi/scsi.h:210: error: parse error before "u8"
      /usr/src/linux/include/scsi/scsi.h:210: warning: no semicolon at end of struct or union
      /usr/src/linux/include/scsi/scsi.h:211: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:212: error: parse error before "_r2"
      /usr/src/linux/include/scsi/scsi.h:212: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:213: error: parse error before "block_desc_length"
      /usr/src/linux/include/scsi/scsi.h:213: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:214: error: parse error before "density"
      /usr/src/linux/include/scsi/scsi.h:214: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:215: error: parse error before "number_blocks_hi"
      /usr/src/linux/include/scsi/scsi.h:215: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:216: error: parse error before "number_blocks_med"
      /usr/src/linux/include/scsi/scsi.h:216: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:217: error: parse error before "number_blocks_lo"
      /usr/src/linux/include/scsi/scsi.h:217: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:218: error: parse error before "_r3"
      /usr/src/linux/include/scsi/scsi.h:218: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:219: error: parse error before "block_length_hi"
      /usr/src/linux/include/scsi/scsi.h:219: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:220: error: parse error before "block_length_med"
      /usr/src/linux/include/scsi/scsi.h:220: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:221: error: parse error before "block_length_lo"
      /usr/src/linux/include/scsi/scsi.h:221: warning: data definition has no type or storage class
      /usr/src/linux/include/scsi/scsi.h:228: error: parse error before "u8"
      /usr/src/linux/include/scsi/scsi.h:228: warning: no semicolon at end of struct or union
      In file included from /usr/src/linux/include/linux/cdrom.h:14,
                       from scsi-linux-sg.c:84,
                       from scsihack.c:127:
      /usr/src/linux/include/asm/byteorder.h:14: error: syntax error before "__u32"
      /usr/src/linux/include/asm/byteorder.h:28: error: syntax error before "__u64"
      In file included from /usr/src/linux/include/linux/byteorder/little_endian.h:11,
                       from /usr/src/linux/include/asm/byteorder.h:57,
                       from /usr/src/linux/includ                 from scsi-linux-sg.c:84,
                       from scsihack.c:127:
      /usr/src/linux/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
      /usr/src/linux/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
      /usr/src/linux/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
      make[2]: *** [OBJ/i686-linux-cc/scsihack.o] Error 1
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libscg'
      make[1]: *** [all] Error 2
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libscg'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/libschily"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libschily'
          ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/libschily/libschily.mk"
      make[2]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libschily'
          ==> COMPILING "OBJ/i686-linux-cc/cvmod.o"
          ==> COMPILING "OBJ/i686-linux-cc/dat.o"
          ==> COMPILING "OBJ/i686-linux-cc/fcons.o"
          ==> COMPILING "OBJ/i686-linux-cc/fdown.o"
          ==> COMPILING "OBJ/i686-linux-cc/fdup.o"
          ==> COMPILING "OBJ/i686-linux-cc/ffileread.o"
          ==> COMPILING "OBJ/i686-linux-cc/ffilewrite.o"
          ==> COMPILING "OBJ/i686-linux-cc/fgetline.o"
          ==> COMPILING "OBJ/i686-linux-cc/fgetstr.o"
          ==> COMPILING "OBJ/i686-linux-cc/file_raise.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileclose.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileluopen.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileopen.o"
          ==> COMPILING "OBJ/i686-linux-cc/filepos.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileread.o"
          ==> COMPILING "OBJ/i686-linux-cc/filereopen.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileseek.o"
          ==> COMPILING "OBJ/i686-linux-cc/filesize.o"
          ==> COMPILING "OBJ/i686-linux-cc/filestat.o"
          ==> COMPILING "OBJ/i686-linux-cc/filewrite.o"
          ==> COMPILING "OBJ/i686-linux-cc/flag.o"
          ==> COMPILING "OBJ/i686-linux-cc/flush.o"
          ==> COMPILING "OBJ/i686-linux-cc/fpipe.o"
          ==> COMPILING "OBJ/i686-linux-cc/niread.o"
          ==> COMPILING "OBJ/i686-linux-cc/niwrite.o"
          ==> COMPILING "OBJ/i686-linux-cc/nixread.o"
          ==> COMPILING "OBJ/i686-linux-cc/nixwrite.o"
          ==> COMPILING "OBJ/i686-linux-cc/openfd.o"
          ==> COMPILING "OBJ/i686-linux-cc/peekc.o"
          ==> COMPILING "OBJ/i686-linux-cc/fcons64.o"
          ==> COMPILING "OBJ/i686-linux-cc/fdup64.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileluopen64.o"
          ==> COMPILING "OBJ/i686-linux-cc/fileopen64.o"
          ==> COMPILING "OBJ/i686-linux-cc/filepos64.o"
          ==> COMPILING "OBJ/i686-linux-cc/filereopen64.o"
      e/linux/cdrom.h:14,    ==> COMPILING "OBJ/i686-linux-cc/fileseek64.o"
          ==> COMPILING "OBJ/i686-linux-cc/filesize64.o"
          ==> COMPILING "OBJ/i686-linux-cc/filestat64.o"
          ==> COMPILING "OBJ/i686-linux-cc/openfd64.o"
          ==> COMPILING "OBJ/i686-linux-cc/astoi.o"
          ==> COMPILING "OBJ/i686-linux-cc/astoll.o"
          ==> COMPILING "OBJ/i686-linux-cc/breakline.o"
          ==> COMPILING "OBJ/i686-linux-cc/comerr.o"
          ==> COMPILING "OBJ/i686-linux-cc/cmpbytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/cmpnullbytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/error.o"
          ==> COMPILING "OBJ/i686-linux-cc/fconv.o"
          ==> COMPILING "OBJ/i686-linux-cc/fexec.o"
          ==> COMPILING "OBJ/i686-linux-cc/fillbytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/findbytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/findline.o"
          ==> COMPILING "OBJ/i686-linux-cc/format.o"
          ==> COMPILING "OBJ/i686-linux-cc/getargs.o"
          ==> COMPILING "OBJ/i686-linux-cc/getav0.o"
          ==> COMPILING "OBJ/i686-linux-cc/geterrno.o"
          ==> COMPILING "OBJ/i686-linux-cc/getfp.o"
          ==> COMPILING "OBJ/i686-linux-cc/getdomainname.o"
          ==> COMPILING "OBJ/i686-linux-cc/gethostid.o"
          ==> COMPILING "OBJ/i686-linux-cc/gethostname.o"
          ==> COMPILING "OBJ/i686-linux-cc/getpagesize.o"
          ==> COMPILING "OBJ/i686-linux-cc/handlecond.o"
          ==> COMPILING "OBJ/i686-linux-cc/jsprintf.o"
          ==> COMPILING "OBJ/i686-linux-cc/jssnprintf.o"
          ==> COMPILING "OBJ/i686-linux-cc/jssprintf.o"
          ==> COMPILING "OBJ/i686-linux-cc/match.o"
          ==> COMPILING "OBJ/i686-linux-cc/matchl.o"
          ==> COMPILING "OBJ/i686-linux-cc/movebytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/printf.o"
          ==> COMPILING "OBJ/i686-linux-cc/raisecond.o"
          ==> COMPILING "OBJ/i686-linux-cc/rename.o"
          ==> COMPILING "OBJ/i686-linux-cc/saveargs.o"
          ==> COMPILING "OBJ/i686-linux-cc/serrmsg.o"
          ==> COMPILING "OBJ/i686-linux-cc/seterrno.o"
          ==> COMPILING "OBJ/i686-linux-cc/setfp.o"
          ==> COMPILING "OBJ/i686-linux-cc/snprintf.o"
          ==> COMPILING "OBJ/i686-linux-cc/spawn.o"
          ==> COMPILING "OBJ/i686-linux-cc/sprintf.o"
          ==> COMPILING "OBJ/i686-linux-cc/strcatl.o"
          ==> COMPILING "OBJ/i686-linux-cc/strdup.o"
          ==> COMPILING "OBJ/i686-linux-cc/streql.o"
          ==> COMPILING "OBJ/i686-linux-cc/swabbytes.o"
          ==> COMPILING "OBJ/i686-linux-cc/usleep.o"
          ==> ARCHIVING  "../libs/i686-linux-cc    ==> RANDOMIZING ARCHIVE "../libs/i686-linux-cc/libschily.a"
      make[2]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libschily'
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/libschily'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/rscsi"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/rscsi'
          ==> COMPILING "OBJ/i686-linux-cc/rscsi.o"
          ==> LINKING "OBJ/i686-linux-cc/rscsi"
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/rscsi'
          ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/export"
      make[1]: Entering directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/export'
      /bin/rm -f libschily scg xconfig.h libschily.a libscg.a librscg.a
      /bin/ln -s ../include libschily
      /bin/ln -s ../libscg/scg scg
      /bin/ln -s ../incs/i686-linux-cc/xconfig.h xconfig.h
      /bin/ln -s ../libs/i686-linux-cc/libschily.a libschily.a
      /bin/ln -s ../libs/i686-linux-cc/libscg.a libscg.a
      /bin/ln -s ../libs/i686-linux-cc/librscg.a librscg.a
      make[1]: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib/export'
      make: Leaving directory `/home/msch/tmp/cdrdao-1.1.8/scsilib'
      /libschily.a"

       
    • Denis Leroy

      Denis Leroy - 2004-04-14

      It looks as though there's something wrong with the setup of the kernel sources on your system. Anyways, our packaged version of cdrtools (scsilib directory) fails to compile, so it's somewhat out of our hands.

      You may want to try to compile cdrtools on your own (the version we package is 2.01a25 i think), or try to link against a packaged one (such as cdrecord-devel). 1.1.8 won't compile against cdrtools 1.10, but the CVS version will. You'll need cdrtools >= 2.0 for ATAPI support.

      -denis

       

Log in to post a comment.