compile problem

View: New views
7 Messages — Rating Filter:   Alert me  

compile problem

by elightbo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This has been driving me nuts for quite some time. I'm trying to compile cdparanoia using make all, but get this error:

loading cache ./config.cache
checking host system type... i686-unknown-linux
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for install... (cached) install
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for u_int16_t... (cached) yes
checking for u_int32_t... (cached) yes
checking for linux/sbpcd.h... (cached) no
checking for linux/ucdrom.h... (cached) no
checking whether make sets ${MAKE}... (cached) yes
checking for working const... (cached) yes
creating ./config.status
creating Makefile
creating interface/Makefile
creating paranoia/Makefile
[root@localhost cdparanoia-III-alpha9.8]# make all
cd interface && make all
make[1]: Entering directory `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
make libcdda_interface.a CFLAGS="-O20 -ffast-math -fsigned-char -finline-functions "
make[2]: Entering directory `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
gcc -O20 -ffast-math -fsigned-char -finline-functions -c scan_devices.c
In file included from scan_devices.c:20:
utils.h: In function ‘cderror’:
utils.h:115: error: label at end of compound statement
utils.h: In function ‘cdmessage’:
utils.h:130: error: label at end of compound statement
utils.h: In function ‘idperror’:
utils.h:172: error: label at end of compound statement
utils.h: In function ‘idmessage’:
utils.h:208: error: label at end of compound statement
make[2]: *** [scan_devices.o] Error 1
make[2]: Leaving directory `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
make[1]: *** [lib] Error 2
make[1]: Leaving directory `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
make: *** [all] Error 2

Any help would be appreciated. The whole reason I want to do mythtv is for the audio end of it, and that's really all that's left for me.   Someone suggested to me that it was a problem with my version of GCC.  I'm running version 4.1.1 20060525 on Fedora Core 5.

Thank you

Re: compile problem

by Eric Sandeen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

elightbo wrote:

> Any help would be appreciated. The whole reason I want to do mythtv is for
> the audio end of it, and that's really all that's left for me.   Someone
> suggested to me that it was a problem with my version of GCC.  I'm running
> version 4.1.1 20060525 on Fedora Core 5.

on fc5 you could just "yum install cdparanoia"

But if you really want to compile it, I think you can just take out the
"default:" line and the case statement right before it for each error in
utils.h, for example, as they do in the fedora rpm:

      case CDDA_MESSAGE_LOGIT:
        d->errorbuf=catstring(d->errorbuf,s);
        break;
      case CDDA_MESSAGE_FORGETIT: /* <--- remove this */
      default: /* <--- and this */
      }
    }
  }


-Eric
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

compile problem

by R. Bernstein :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't believe the libcdio port (http://www.gnu.org/software/libcdio) has
this problem.

(See the other responses for other solutions.)

elightbo writes:
 >
 > This has been driving me nuts for quite some time. I'm trying to compile
 > cdparanoia using make all, but get this error:
 >
 > loading cache ./config.cache
 > checking host system type... i686-unknown-linux
 > checking for gcc... (cached) gcc
 > checking whether the C compiler (gcc ) works... yes
 > checking whether the C compiler (gcc ) is a cross-compiler... no
 > checking whether we are using GNU C... (cached) yes
 > checking whether gcc accepts -g... (cached) yes
 > checking for ranlib... (cached) ranlib
 > checking for ar... (cached) ar
 > checking for install... (cached) install
 > checking how to run the C preprocessor... (cached) gcc -E
 > checking for ANSI C header files... (cached) yes
 > checking size of short... (cached) 2
 > checking size of int... (cached) 4
 > checking size of long... (cached) 4
 > checking size of long long... (cached) 8
 > checking for int16_t... (cached) yes
 > checking for int32_t... (cached) yes
 > checking for u_int16_t... (cached) yes
 > checking for u_int32_t... (cached) yes
 > checking for linux/sbpcd.h... (cached) no
 > checking for linux/ucdrom.h... (cached) no
 > checking whether make sets ${MAKE}... (cached) yes
 > checking for working const... (cached) yes
 > creating ./config.status
 > creating Makefile
 > creating interface/Makefile
 > creating paranoia/Makefile
 > [root@localhost cdparanoia-III-alpha9.8]# make all
 > cd interface && make all
 > make[1]: Entering directory
 > `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
 > make libcdda_interface.a CFLAGS="-O20 -ffast-math -fsigned-char
 > -finline-functions "
 > make[2]: Entering directory
 > `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
 > gcc -O20 -ffast-math -fsigned-char -finline-functions -c scan_devices.c
 > In file included from scan_devices.c:20:
 > utils.h: In function ?cderror?:
 > utils.h:115: error: label at end of compound statement
 > utils.h: In function ?cdmessage?:
 > utils.h:130: error: label at end of compound statement
 > utils.h: In function ?idperror?:
 > utils.h:172: error: label at end of compound statement
 > utils.h: In function ?idmessage?:
 > utils.h:208: error: label at end of compound statement
 > make[2]: *** [scan_devices.o] Error 1
 > make[2]: Leaving directory
 > `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
 > make[1]: *** [lib] Error 2
 > make[1]: Leaving directory
 > `/root/Desktop/mythtv_download/prereqs/cdparanoia-III-alpha9.8/interface'
 > make: *** [all] Error 2
 >
 > Any help would be appreciated. The whole reason I want to do mythtv is for
 > the audio end of it, and that's really all that's left for me.   Someone
 > suggested to me that it was a problem with my version of GCC.  I'm running
 > version 4.1.1 20060525 on Fedora Core 5.
 >
 > Thank you
 > --
 > View this message in context: http://www.nabble.com/compile-problem-tf1978356.html#a5428178
 > Sent from the Cd-Paranoia - General forum at Nabble.com.
 >
 > _______________________________________________
 > Paranoia mailing list
 > Paranoia@...
 > http://lists.xiph.org/mailman/listinfo/paranoia
 >
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

Re: compile problem

by elightbo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As far as libcdio.  MythTV requires CDParanoia for installation, so that is not an option unfortunately.  

I tried to install it by yum, but MythTV doesn't recognize it.  I'm assuming that it uses the header files and whatnot.  

I will try to comment out the case statement when I get home from work tonight.

Re: compile problem

by R. Bernstein :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

elightbo writes:
 >
 > As far as libcdio.  MythTV requires CDParanoia for installation, so that is
 > not an option unfortunately.  

There is a configuration option to install the binary as
cdparanoia. Run configure --help. By and large the two are compatible
at the command-line level and at the API (for most uses).

 >
 > I tried to install it by yum, but MythTV doesn't recognize it.  I'm assuming
 > that it uses the header files and whatnot.  
 >
 > I will try to comment out the case statement when I get home from work
 > tonight.
 > --
 > View this message in context: http://www.nabble.com/compile-problem-tf1978356.html#a5433471
 > Sent from the Cd-Paranoia - General forum at Nabble.com.
 >
 > _______________________________________________
 > Paranoia mailing list
 > Paranoia@...
 > http://lists.xiph.org/mailman/listinfo/paranoia
 >
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

Re: compile problem

by Peter Jones-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2006-07-21 at 06:15 -0700, elightbo wrote:
> As far as libcdio.  MythTV requires CDParanoia for installation, so that is
> not an option unfortunately.  
>
> I tried to install it by yum, but MythTV doesn't recognize it.  I'm assuming
> that it uses the header files and whatnot.  
>
> I will try to comment out the case statement when I get home from work
> tonight.

It's probably easier to rebuild from the .src.rpm ; we've already got
this patched.  (And in fact it's fixed in subversion, we just haven't
done a cdparanoia release.)

--
  Peter
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

Re: compile problem

by elightbo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RESOLVED:
Commenting out thcase statement allowed me to comiple CDParanoia.