Compile Error When Building ALSA Application

From: Moe (mehmoodn_at_gmail.com)
Date: 11/22/05


Date: 22 Nov 2005 13:09:25 -0800

Hello,

I am building an application using the ALSA library. Specifically, I
am using the PCM APIs. The problem I am observing is when I use GCC
(version 3.3.4) to compile my program I get the following error:

   "audAbstraction.c:893: error: storage size of `status' isn't known"

I have defined a variable called 'status' which is a structure of the
type "snd_pcm_status_t". This structure is defined in the file
'/usr/include/sound/pcm.h'. Further investigation showed that this
structure is an alias of the structure, "sndrv_pcm_status" defined in
the file, '/usr/include/sound/asound.h'. Consequently, I verified the
definition of the structure and found no issues -- all members were
properly defined and accounted for.

I am certain that my makefile contains the path to the above mentioned
header files (NOTE: I verified this by putting erroneous data in the
header files and observing the compiler error). I have searched the
Internet for discussions and possible solutions but have not been
successful in fixing the error myself.

Is there a reason why the "sndrv_pcm_status" structure cannot be
resolved? What other suggestions do you have?

I appreciate your time in investigating and answering my query.

Best regards,

Moe



Relevant Pages

  • Re: SCOs infringing files list
    ... > The last file seems to be a modified version of the 0.96bp2 header files ... > needed in order to work with the new gcc release (searching for that filename ... This does seem to be the case - from an FAQ that H J Lu posted about that time: ... FAQ about gcc (how to compile program under Linux) ...
    (Linux-Kernel)
  • Fw: include file errors
    ... "Installing GCC automatically creates and installs the fixed header files, ... Subject: include file errors ...
    (Fedora)
  • Re: Preprocessor gcc and override
    ... > header files. ... If the directory dir is a standard system ... Directories named with -I are searched first, as the snippit of the info ... GCC uses the first file that matches. ...
    (comp.lang.cpp)
  • Re: migration from Solaris 8 to 9 = g++ compile problems (threads)
    ... there is no problem in running Solaris 8 binaries under ... In case of GCC, however, you may run into following problem: ... - Header files are subject to be changed during releases. ...
    (comp.unix.solaris)
  • Re: Linux C header files on Windows?
    ... >> Well I have thought about copying the linux header files but I ... As for a 'Windows build of the Linux gcc' I'm not sure I ...
    (comp.lang.c)