Skip to contentSkip to conversation

RC5 driver make fail (usbaudio.c)

DISCUSSION Phil Kerr 4 participants 4 messages Oct 24, 2002

lore
Share & tools
lore

Phil Kerr

author
#0 lore raw

Takashi,

Attached is the configure and make dump of alsa-drivers-rc5 (webserver timestamp 10/24/2002 02:47:00 PM).

100% stock RH 8.0 installed an hour before with a es1371 card.

It's failed at:

In file included from usbaudio.c:2:
../alsa-kernel/usb/usbaudio.c: In function `snd_usb_roland_ua100_hack':
../alsa-kernel/usb/usbaudio.c:1938: initializer element is not constant ../alsa-kernel/usb/usbaudio.c:1938: (near initialization for `midi_quirk.data')
make[1]: *** [usbaudio.o] Error 1
make[1]: Leaving directory `/home/phil/installs/alsa-driver-0.9.0rc5/usb'
make: *** [compile] Error 1

Regards,
Phil

#1 lore raw
Quoted 4 lines · Phil

100% stock RH 8.0 installed an hour before with a es1371 card.

It's failed at:

Quoted 8 lines

In file included from usbaudio.c:2:
../alsa-kernel/usb/usbaudio.c: In function `snd_usb_roland_ua100_hack':
../alsa-kernel/usb/usbaudio.c:1938: initializer element is not constant ../alsa-kernel/usb/usbaudio.c:1938: (near initialization for `midi_quirk.data')
make[1]: *** [usbaudio.o] Error 1
make[1]: Leaving directory `/home/phil/installs/alsa-driver-0.9.0rc5/usb'
make: *** [compile] Error 1

Strange, I've had no problems whatsoever on a fully updated vanilla Red Hat Linux 8.0 system (kernel 2.4.18-17.8.0), compiling all drivers just like you did.

Matthias

Signature · 10 lines
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Red Hat Linux release 7.3 (Valhalla) running Linux kernel 2.4.18-10acpi
Load : 0.09 0.14 0.21


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
#2 lore raw
In reply to Phil Kerr
Quoted 8 lines · Phil Kerr

Attached is the configure and make dump of alsa-drivers-rc5 (webserver timestamp 10/24/2002 02:47:00 PM).

100% stock RH 8.0 installed an hour before with a es1371 card.

../alsa-kernel/usb/usbaudio.c: In function `snd_usb_roland_ua100_hack':
../alsa-kernel/usb/usbaudio.c:1938: initializer element is not constant ../alsa-kernel/usb/usbaudio.c:1938: (near initialization for `midi_quirk.data')

What is your compiler version?
That code is valid C99 (I think :) and compiles with my gcc 2.95.3.

Clemens

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote

#3 lore raw

At Thu, 24 Oct 2002 17:44:17 +0200 (METDST),

Quoted 5 lines · Clemens Ladisch
Quoted 3 lines · Phil Kerr

Attached is the configure and make dump of alsa-drivers-rc5 (webserver timestamp 10/24/2002 02:47:00 PM).

Quoted 8 lines
Quoted 5 lines

100% stock RH 8.0 installed an hour before with a es1371 card.

../alsa-kernel/usb/usbaudio.c: In function `snd_usb_roland_ua100_hack':
../alsa-kernel/usb/usbaudio.c:1938: initializer element is not constant ../alsa-kernel/usb/usbaudio.c:1938: (near initialization for `midi_quirk.data')

What is your compiler version?
That code is valid C99 (I think :) and compiles with my gcc 2.95.3.

i couldn't compile it, too (using gcc-3.2). apparently the initialization of data field failed.

this was already fixed on cvs, but surely there is a cleaner solution.

Takashi

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote