please need help---cannot compile alpha9.8

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

please need help---cannot compile alpha9.8

by Serge Matovic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to all. I really apologize for this basic question,
but I am new to Linux, and have to learn so much.  But
I just love it. Any way, here is my problem:

1) Download into /usr/local/ and unpack
cdparanoia-III-alpha9.8.src.tgz
2)cd to new directory and issue #./configure, which
seems to go OK
3)#make all, and I get the following printout. What am
I doing wrong?

[root@celeron cdparanoia-III-alpha9.8]# make all
cd interface && make all
make[1]: Entering directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make libcdda_interface.a CFLAGS="-O20 -ffast-math
-fsigned-char -finline-functions "
make[2]: Entering directory
`/usr/local/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
scan_devices.c: In function 'cdda_identify_scsi':
scan_devices.c:616: warning: pointer targets in
assignment differ in signedness
make[2]: *** [scan_devices.o] Error 1
make[2]: Leaving directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make[1]: *** [lib] Error 2
make[1]: Leaving directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make: *** [all] Error 2
[root@celeron cdparanoia-III-alpha9.8]#

Many thanks,
serge.
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

please need help---cannot compile alpha9.8

by R. Bernstein :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you look at the gcc documentation there's probably a "no-warn"
option that may help.  (And -O3 is the highest level of optimization
on gcc.)

But another approach, one that I of course favor, is just compiling
via libcdio http://libcdio.sourceforge.net. At least from CVS sources
things compile without any warnings. (And you'll also get lots of
other stuff in addition to cdparanoia.)

Serge Matovic writes:
 > Hi to all. I really apologize for this basic question,
 > but I am new to Linux, and have to learn so much.  But
 > I just love it. Any way, here is my problem:
 >
 > 1) Download into /usr/local/ and unpack
 > cdparanoia-III-alpha9.8.src.tgz
 > 2)cd to new directory and issue #./configure, which
 > seems to go OK
 > 3)#make all, and I get the following printout. What am
 > I doing wrong?
 >
 > [root@celeron cdparanoia-III-alpha9.8]# make all
 > cd interface && make all
 > make[1]: Entering directory
 > `/usr/local/cdparanoia-III-alpha9.8/interface'
 > make libcdda_interface.a CFLAGS="-O20 -ffast-math
 > -fsigned-char -finline-functions "
 > make[2]: Entering directory
 > `/usr/local/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
 > scan_devices.c: In function 'cdda_identify_scsi':
 > scan_devices.c:616: warning: pointer targets in
 > assignment differ in signedness
 > make[2]: *** [scan_devices.o] Error 1
 > make[2]: Leaving directory
 > `/usr/local/cdparanoia-III-alpha9.8/interface'
 > make[1]: *** [lib] Error 2
 > make[1]: Leaving directory
 > `/usr/local/cdparanoia-III-alpha9.8/interface'
 > make: *** [all] Error 2
 > [root@celeron cdparanoia-III-alpha9.8]#
 >
 > Many thanks,
 > serge.
 >  
 >
 >
 > __________________________________________________
 > Do You Yahoo!?
 > Tired of spam?  Yahoo! Mail has the best spam protection around
 > http://mail.yahoo.com 
 > _______________________________________________
 > Paranoia mailing list
 > Paranoia@...
 > http://lists.xiph.org/mailman/listinfo/paranoia
 >
_______________________________________________
Paranoia mailing list
Paranoia@...
http://lists.xiph.org/mailman/listinfo/paranoia

Re: please need help---cannot compile alpha9.8

by David Johnston :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What you have is an actual error in the source code.

A label at the end of a compound statement is required to have a null statement following it. More modern compilers are less compromising about this.

So go end edit cdparanoia-III-alpha9.8/interface/utils.h

On lines 115, 130, 172 and 208 add a semi colon after 'default:' and before '}'.

This fixes it.

Serge Matovic wrote:
Hi to all. I really apologize for this basic question,
but I am new to Linux, and have to learn so much.  But
I just love it. Any way, here is my problem:

1) Download into /usr/local/ and unpack
cdparanoia-III-alpha9.8.src.tgz
2)cd to new directory and issue #./configure, which
seems to go OK
3)#make all, and I get the following printout. What am
I doing wrong?

[root@celeron cdparanoia-III-alpha9.8]# make all
cd interface && make all
make[1]: Entering directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make libcdda_interface.a CFLAGS="-O20 -ffast-math
-fsigned-char -finline-functions "
make[2]: Entering directory
`/usr/local/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
scan_devices.c: In function 'cdda_identify_scsi':
scan_devices.c:616: warning: pointer targets in
assignment differ in signedness
make[2]: *** [scan_devices.o] Error 1
make[2]: Leaving directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make[1]: *** [lib] Error 2
make[1]: Leaving directory
`/usr/local/cdparanoia-III-alpha9.8/interface'
make: *** [all] Error 2
[root@celeron cdparanoia-III-alpha9.8]#

Many thanks,
serge.
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
_______________________________________________
Paranoia mailing list
Paranoia@xiph.org
http://lists.xiph.org/mailman/listinfo/paranoia