Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2000 19:58:47 +0200
From:      Benedikt Schmidt <BeSchmidt@cloaked.de>
To:        futatuki@debug.gr.jp
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   cdrdao port broken on current
Message-ID:  <20000620195846.A1640@cloaked.de>

next in thread | raw e-mail | index | archive | help
Hi,
there are some issues with the cdrdao port on FreeBSD 5.0 current I would like to inform you about. (I dont know if they exist in 4.0 because I could only test it on current)

Here is a step by step description how I compiled it. More Details can be 
found below.
1. "cd /usr/ports/audio/" 
2. change Makefile
3. "make extract"
4. change /usr/ports/audio/cdrdao/work/cdrdao-1.1.3/configure
          /usr/ports/audio/cdrdao/work/cdrdao-1.1.3/configure.in
5. "make" which fails
6. delete all occurences of xdao in 
   "/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/Makefile"
7. "make install"

Here is a more detailled description of the errors and what I did:

The first time i tried compiling cdrdao without changing anything to 
"/usr/ports/audio/cdrdao" it failed with the following error messages.
(see at bottom (1)) 

changing some lines in  
/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/configure

2900c2900
<     *-freebsd3* | *-freebsd4*)
---
>     *-freebsd3* | *-freebsd4* | *-freebsd5*)
2916c2916
<     *-freebsd3* | *-freebsd4*)
---
>     *-freebsd3* | *-freebsd4* | *-freebsd5*)
and
/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/configure
156c156
<     *-freebsd3* | *-freebsd4*)
---
>     *-freebsd3* | *-freebsd4* | *-freebsd5*)
172c172
<     *-freebsd3* | *-freebsd4*)
---
>     *-freebsd3* | *-freebsd4* | *-freebsd5*


fixes this error but "make" still gives me some different  error messages (2)
which seem to be gtk-- related. Perhaps xcdrdao is based on an older version
than gtk-- 1.2 in the ports. I read on the gtk-- page that the new version is
not compatible to older versions.
Since I dont need the X stuff anyway I tried compiling it without xcdrdao by
changing

/usr/ports/cdrdao/Makefile
27,29c27,29
< .if exists(${X11BASE}/include/gtk--.h)
< XCDRDAO=              yes
< .endif
---
> #.if exists(${X11BASE}/include/gtk--.h)
> #XCDRDAO=             yes
> #.endif
31,33c31,33
< .if defined(PACKAGE_BUILDING)
< XCDRDAO=              yes
< .endif
---
> #.if defined(PACKAGE_BUILDING)
> #XCDRDAO=             yes
> #.endif

"make extract" shows me the following lines

root@steele:/usr/ports/audio/cdrdao# make extract
If you don't want to use Joerg Schilling's SCSI library,
set WITHOUT_SCGLIB=yes.
If you don't want to use pthreads, set WITHOUT_PTHREADS=yes.
To build the graphical X toc file editor, xcdrdao, type:
make XCDRDAO=yes.
===>  Extracting for cdrdao-1.1.3
>> Checksum OK for cdrdao-1.1.3.src.tar.gz.
===>   cdrdao-1.1.3 depends on executable: antlr - found
===>   cdrdao-1.1.3 depends on executable: dlg - found
===>   cdrdao-1.1.3 depends on executable: gmake - found
root@steele:/usr/ports/audio/cdrdao#

but in the end it still tries to compile "xcdrdao" and gives me the same error 
messages than before (2)

Since "/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/configure --help" doesn't
include any options concerning xcdrdao I just deleted all occurences of xdao
in "/usr/ports/audio/cdrdao/work/cdrdao-1.1.3/Makefile"
After that it compiles and installs without any error messages. (and without
xcdrdao)

Benedikt Schmidt

(1) error messages after first "make"

[snip]

./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c TaiyoYuden.cc -o TaiyoYuden.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c YamahaCDR10x.cc -o YamahaCDR10x.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c TeacCdr55.cc -o TeacCdr55.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c SonyCDU920.cc -o SonyCDU920.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c SonyCDU948.cc -o SonyCDU948.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c CdTextEncoder.cc -o CdTextEncoder.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c dao.cc -o dao.o
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\"   ./.. -I. -I./../trackdb -I./../scsilib/export -I./../scsilib/export/libschily    -pipe  -c ScsiIf-lib.cc -o ScsiIf-lib.o
ar r libdao.a port.o CdrDriver.o CDD2600Base.o CDD2600.o PlextorReader.o Gene   MMC.o SubChannel.o PQSubChannel16.o PWSubChannel96.o PQChannelEncoder.o Gener   MCraw.o PlextorReaderScan.o RicohMP6200.o TaiyoYuden.o YamahaCDR10x.o TeacCdr   o SonyCDU920.o SonyCDU948.o CdTextEncoder.o dao.o ScsiIf-lib.o
ranlib libdao.a
c++ -pthread   -o cdrdao main.o -L. -ldao -L../paranoia -lcdda_paranoia -L../   ckdb -ltrackdb -L../edc_ecc -ledc_ecc -L../scsilib/export -lscg -lschily   
../scsilib/export/libscg.a(scsitransp.o): In function `scsi_open':
scsitransp.o(.text+0xbc): undefined reference to `cam_open_btl'
scsitransp.o(.text+0x398): undefined reference to `cam_open_pass'
scsitransp.o(.text+0x3c1): undefined reference to `cam_errbuf'
../scsilib/export/libscg.a(scsitransp.o): In function `scsi_close':
scsitransp.o(.text+0x453): undefined reference to `cam_close_device'
../scsilib/export/libscg.a(scsitransp.o): In function `scsi_send':
scsitransp.o(.text+0x6ec): undefined reference to `cam_send_ccb'
gmake[1]: *** [cdrdao] Error 1
gmake[1]: Leaving directory `/usr/src/ports/audio/cdrdao/work/cdrdao-1.1.3/da
gmake: *** [all] Error 1
*** Error code 2

Stop in /usr/src/ports/audio/cdrdao.
*** Error code 1

Stop in /usr/src/ports/audio/cdrdao.
*** Error code 1

Stop in /usr/src/ports/audio/cdrdao.
root@steele:/usr/ports/audio/cdrdao#

(2) errors doing "make" after changing configure and configure.in 

[snip]

gmake[1]: Leaving directory `/usr/src/ports/audio/cdrdao/work/cdrdao-1.1.3/xdao'
gmake[1]: Entering directory `/usr/src/ports/audio/cdrdao/work/cdrdao-1.1.3/xdao'
c++ -DHAVE_CONFIG_H -pthread -D_THREAD_SAFE -D_REENTRANT  -DVERSION=\"1.1.3\" -I.. -I. -I./../dao -I./../trackdb -O -pipe  -I/usr/X11R6/lib/gtkmm/include -I/usr/X11R6/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -c xcdrdao.cc -o xcdrdao.o
In file included from xcdrdao.cc:38:
MainWindow.h:57: syntax error before `{'
MainWindow.h:63: syntax error before `;'
MainWindow.h:68: `Gtk_MenuBar' was not declared in this scope
MainWindow.h:68: syntax error before `;'
MainWindow.h:82: syntax error before `*'
MainWindow.h:85: syntax error before `*'
MainWindow.h:100: `Mode' was not declared in this scope
MainWindow.h:100: variable or field `setMode' declared void
MainWindow.h:157: syntax error before `public'
gmake[1]: *** [xcdrdao.o] Error 1
gmake[1]: Leaving directory `/usr/src/ports/audio/cdrdao/work/cdrdao-1.1.3/xdao'
gmake: *** [all] Error 1
*** Error code 2

Stop in /usr/src/ports/audio/cdrdao.
*** Error code 1

Stop in /usr/src/ports/audio/cdrdao.
*** Error code 1

Stop in /usr/src/ports/audio/cdrdao.
root@steele:/usr/ports/audio/cdrdao#




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000620195846.A1640>