Skip to contentSkip to conversation

Current CVS doesnt compile on latest RedHat

DISCUSSION Sylvain Petreolle 2 participants 3 messages Nov 7, 2003 – Nov 8, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
I tried to compile today's alsa CVS and got this fault

[syl@wine drivers]$ make
ccache gcc -D__KERNEL__ -DMODULE=1 -I/home/alsa/alsa-driver/include -I/lib/modules/2.4.22-1.2115.nptl/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD
-DKBUILD_BASENAME=serialmidi -c -o serialmidi.o serialmidi.c
serialmidi.c: In function `open_tty':
serialmidi.c:164: error: invalid operands to binary >
make: *** [serialmidi.o] Error 1

You can see that I use ccache gcc, but I tried without it and got the same result.
I even tried a downgrade to the previous gcc 3.2.2-5 (same output.) Has someone any clue ?

=====
Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net)
ICQ #170597259
Say NO to software patents
Dites NON aux brevets logiciels

"What if tomorrow the War could be over ?" Morpheus, in "Reloaded".

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/

#1 lore raw
Quoted 1 line · Sylvain Petreolle

serialmidi.c:164: error: invalid operands to binary >

This is an incompatibility between the official Linux kernel and the -ac patch. Apparently, RedHat now includes this patch.

Change the offending line in serialmidi.c to

	if (atomic_read(&tty->count) > 1) {

HTH
Clemens

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/

#2 lore raw

Many thanks, this works.

Quoted 6 lines

This is an incompatibility between the official Linux kernel and the -ac patch. Apparently, RedHat now includes this patch.

Change the offending line in serialmidi.c to

	if (atomic_read(&tty->count) > 1) {

=====
Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net)
ICQ #170597259
Say NO to software patents
Dites NON aux brevets logiciels

"What if tomorrow the War could be over ?" Morpheus, in "Reloaded".

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/