i am trying to cross compile alsa library for my customized distribution of linux.
host is x86_64-linux
target is arc-linux
i am using arc-elf32 tool set to cross compile.

export CC= some path
export CXX= some path
./configure --prefix=${HOME}/stuff --host=x86_32-unknown-linux-gnu --target=arc-elf32 --with-directfb --without-x --enable-static=yes --enable-shared=no

later my configuration is done well i think..
but i am getting problem while making....
it showing::::

tilak@ubuntutestpc:~/ntr/alsa-lib-1.0.17a$ make
Making all in doc
make[1]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc'
Making all in pictures
make[2]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc/pictures'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc/pictures'
make[2]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc'
make[1]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/doc'
Making all in include
make[1]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
make all-recursive
make[2]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
Making all in sound
make[3]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/include/sound'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/include/sound'
make[3]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
make[3]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
make[2]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
make[1]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/include'
Making all in src
make[1]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/src'
Making all in control
make[2]: Entering directory `/home/tilak/ntr/alsa-lib-1.0.17a/src/control'
if /bin/sh ../../libtool --tag=CC --mode=compile /home/tilak/srihari/toolchain/user/local/arc-elf32-4.2-20071106/bin/arc-elf32-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT cards.lo -MD -MP -MF ".deps/cards.Tpo" -c -o cards.lo cards.c; \
then mv -f ".deps/cards.Tpo" ".deps/cards.Plo"; else rm -f ".deps/cards.Tpo"; exit 1; fi
/home/tilak/srihari/toolchain/user/local/arc-elf32-4.2-20071106/bin/arc-elf32-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT cards.lo -MD -MP -MF .deps/cards.Tpo -c cards.c -o cards.o
cards.c:34:23: error: sys/ioctl.h: No such file or directory
In file included from control_local.h:22,
from cards.c:35:
../../include/local.h:31:20: error: endian.h: No such file or directory
../../include/local.h:33:22: error: sys/poll.h: No such file or directory
In file included from ../../include/local.h:105,
from control_local.h:22,
from cards.c:35:
../../include/sound/asound.h:149: error: expected expression before 'int'
../../include/sound/asound.h:149: error: enumerator value for 'SNDRV_HWDEP_IOCTL_PVERSION' is not an integer constant
../../include/sound/asound.h:150: error: expected expression before 'struct'
../../include/sound/asound.h:150: error: enumerator value for 'SNDRV_HWDEP_IOCTL_INFO' is not an integer constant
../../include/sound/asound.h:151: error: expected expression before 'struct'
../../include/sound/asound.h:151: error: enumerator value for 'SNDRV_HWDEP_IOCTL_DSP_STATUS' is not an integer constant
../../include/sound/asound.h:152: error: expected expression before 'struct'
../../include/sound/asound.h:153: error: enumerator value for 'SNDRV_HWDEP_IOCTL_DSP_LOAD' is not an integer constant
../../include/sound/asound.h:361: error: expected specifier-qualifier-list before 'u_int32_t'
../../include/sound/asound.h:473: error: expected expression before 'int'
../../include/sound/asound.h:473: error: enumerator value for 'SNDRV_PCM_IOCTL_PVERSION' is not an integer constant
../../include/sound/asound.h:474: error: expected expression before 'struct'
../../include/sound/asound.h:474: error: enumerator value for 'SNDRV_PCM_IOCTL_INFO' is not an integer constant
../../include/sound/asound.h:475: error: expected expression before 'int'
../../include/sound/asound.h:475: error: enumerator value for 'SNDRV_PCM_IOCTL_TSTAMP' is not an integer constant
../../include/sound/asound.h:476: error: expected expression before 'int'
../../include/sound/asound.h:476: error: enumerator value for 'SNDRV_PCM_IOCTL_TTSTAMP' is not an integer constant
../../include/sound/asound.h:477: error: expected expression before 'struct'
../../include/sound/asound.h:477: error: enumerator value for 'SNDRV_PCM_IOCTL_HW_REFINE' is not an integer constant
../../include/sound/asound.h:478: error: expected expression before 'struct'
../../include/sound/asound.h:478: error: enumerator value for 'SNDRV_PCM_IOCTL_HW_PARAMS' is not an integer constant
../../include/sound/asound.h:479: error: enumerator value for 'SNDRV_PCM_IOCTL_HW_FREE' is not an integer constant
../../include/sound/asound.h:480: error: expected expression before 'struct'
../../include/sound/asound.h:480: error: enumerator value for 'SNDRV_PCM_IOCTL_SW_PARAMS' is not an integer constant
../../include/sound/asound.h:481: error: expected expression before 'struct'
../../include/sound/asound.h:481: error: enumerator value for 'SNDRV_PCM_IOCTL_STATUS' is not an integer constant
../../include/sound/asound.h:482: error: expected expression before 'sndrv_pcm_sframes_t'
../../include/sound/asound.h:482: error: enumerator value for 'SNDRV_PCM_IOCTL_DELAY' is not an integer constant
../../include/sound/asound.h:483: error: enumerator value for 'SNDRV_PCM_IOCTL_HWSYNC' is not an integer constant
../../include/sound/asound.h:484: error: expected expression before 'struct'
../../include/sound/asound.h:484: error: enumerator value for 'SNDRV_PCM_IOCTL_SYNC_PTR' is not an integer constant
../../include/sound/asound.h:485: error: expected expression before 'struct'
../../include/sound/asound.h:485: error: enumerator value for 'SNDRV_PCM_IOCTL_CHANNEL_INFO' is not an integer constant
../../include/sound/asound.h:486: error: enumerator value for 'SNDRV_PCM_IOCTL_PREPARE' is not an integer constant
../../include/sound/asound.h:487: error: enumerator value for 'SNDRV_PCM_IOCTL_RESET' is not an integer constant
../../include/sound/asound.h:488: error: enumerator value for 'SNDRV_PCM_IOCTL_START' is not an integer constant
../../include/sound/asound.h:489: error: enumerator value for 'SNDRV_PCM_IOCTL_DROP' is not an integer constant
../../include/sound/asound.h:490: error: enumerator value for 'SNDRV_PCM_IOCTL_DRAIN' is not an integer constant
../../include/sound/asound.h:491: error: expected expression before 'int'
../../include/sound/asound.h:491: error: enumerator value for 'SNDRV_PCM_IOCTL_PAUSE' is not an integer constant
../../include/sound/asound.h:492: error: expected expression before 'sndrv_pcm_uframes_t'
../../include/sound/asound.h:492: error: enumerator value for 'SNDRV_PCM_IOCTL_REWIND' is not an integer constant
../../include/sound/asound.h:493: error: enumerator value for 'SNDRV_PCM_IOCTL_RESUME' is not an integer constant
../../include/sound/asound.h:494: error: enumerator value for 'SNDRV_PCM_IOCTL_XRUN' is not an integer constant
../../include/sound/asound.h:495: error: expected expression before 'sndrv_pcm_uframes_t'
../../include/sound/asound.h:495: error: enumerator value for 'SNDRV_PCM_IOCTL_FORWARD' is not an integer constant
../../include/sound/asound.h:496: error: expected expression before 'struct'
../../include/sound/asound.h:496: error: enumerator value for 'SNDRV_PCM_IOCTL_WRITEI_FRAMES' is not an integer constant
../../include/sound/asound.h:497: error: expected expression before 'struct'
../../include/sound/asound.h:497: error: enumerator value for 'SNDRV_PCM_IOCTL_READI_FRAMES' is not an integer constant
../../include/sound/asound.h:498: error: expected expression before 'struct'
../../include/sound/asound.h:498: error: enumerator value for 'SNDRV_PCM_IOCTL_WRITEN_FRAMES' is not an integer constant
../../include/sound/asound.h:499: error: expected expression before 'struct'
../../include/sound/asound.h:499: error: enumerator value for 'SNDRV_PCM_IOCTL_READN_FRAMES' is not an integer constant
../../include/sound/asound.h:500: error: expected expression before 'int'
../../include/sound/asound.h:500: error: enumerator value for 'SNDRV_PCM_IOCTL_LINK' is not an integer constant
../../include/sound/asound.h:501: error: enumerator value for 'SNDRV_PCM_IOCTL_UNLINK' is not an integer constant
../../include/sound/asound.h:560: error: expected expression before 'int'
../../include/sound/asound.h:560: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_PVERSION' is not an integer constant
../../include/sound/asound.h:561: error: expected expression before 'struct'
../../include/sound/asound.h:561: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_INFO' is not an integer constant
../../include/sound/asound.h:562: error: expected expression before 'struct'
../../include/sound/asound.h:562: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_PARAMS' is not an integer constant
../../include/sound/asound.h:563: error: expected expression before 'struct'
../../include/sound/asound.h:563: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_STATUS' is not an integer constant
../../include/sound/asound.h:564: error: expected expression before 'int'
../../include/sound/asound.h:564: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_DROP' is not an integer constant
../../include/sound/asound.h:565: error: expected expression before 'int'
../../include/sound/asound.h:565: error: enumerator value for 'SNDRV_RAWMIDI_IOCTL_DRAIN' is not an integer constant
../../include/sound/asound.h:675: error: expected expression before 'int'
../../include/sound/asound.h:675: error: enumerator value for 'SNDRV_TIMER_IOCTL_PVERSION' is not an integer constant
../../include/sound/asound.h:676: error: expected expression before 'struct'
../../include/sound/asound.h:676: error: enumerator value for 'SNDRV_TIMER_IOCTL_NEXT_DEVICE' is not an integer constant
../../include/sound/asound.h:677: error: expected expression before 'int'
../../include/sound/asound.h:677: error: enumerator value for 'SNDRV_TIMER_IOCTL_TREAD' is not an integer constant
../../include/sound/asound.h:678: error: expected expression before 'struct'
../../include/sound/asound.h:678: error: enumerator value for 'SNDRV_TIMER_IOCTL_GINFO' is not an integer constant
../../include/sound/asound.h:679: error: expected expression before 'struct'
../../include/sound/asound.h:679: error: enumerator value for 'SNDRV_TIMER_IOCTL_GPARAMS' is not an integer constant
../../include/sound/asound.h:680: error: expected expression before 'struct'
../../include/sound/asound.h:680: error: enumerator value for 'SNDRV_TIMER_IOCTL_GSTATUS' is not an integer constant
../../include/sound/asound.h:681: error: expected expression before 'struct'
../../include/sound/asound.h:681: error: enumerator value for 'SNDRV_TIMER_IOCTL_SELECT' is not an integer constant
../../include/sound/asound.h:682: error: expected expression before 'struct'
../../include/sound/asound.h:682: error: enumerator value for 'SNDRV_TIMER_IOCTL_INFO' is not an integer constant
../../include/sound/asound.h:683: error: expected expression before 'struct'
../../include/sound/asound.h:683: error: enumerator value for 'SNDRV_TIMER_IOCTL_PARAMS' is not an integer constant
../../include/sound/asound.h:684: error: expected expression before 'struct'
../../include/sound/asound.h:684: error: enumerator value for 'SNDRV_TIMER_IOCTL_STATUS' is not an integer constant
../../include/sound/asound.h:686: error: enumerator value for 'SNDRV_TIMER_IOCTL_START' is not an integer constant
../../include/sound/asound.h:687: error: enumerator value for 'SNDRV_TIMER_IOCTL_STOP' is not an integer constant
../../include/sound/asound.h:688: error: enumerator value for 'SNDRV_TIMER_IOCTL_CONTINUE' is not an integer constant
../../include/sound/asound.h:689: error: enumerator value for 'SNDRV_TIMER_IOCTL_PAUSE' is not an integer constant
../../include/sound/asound.h:871: error: expected expression before 'int'
../../include/sound/asound.h:871: error: enumerator value for 'SNDRV_CTL_IOCTL_PVERSION' is not an integer constant
../../include/sound/asound.h:872: error: expected expression before 'struct'
../../include/sound/asound.h:872: error: enumerator value for 'SNDRV_CTL_IOCTL_CARD_INFO' is not an integer constant
../../include/sound/asound.h:873: error: expected expression before 'struct'
../../include/sound/asound.h:873: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_LIST' is not an integer constant
../../include/sound/asound.h:874: error: expected expression before 'struct'
../../include/sound/asound.h:874: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_INFO' is not an integer constant
../../include/sound/asound.h:875: error: expected expression before 'struct'
../../include/sound/asound.h:875: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_READ' is not an integer constant
../../include/sound/asound.h:876: error: expected expression before 'struct'
../../include/sound/asound.h:876: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_WRITE' is not an integer constant
../../include/sound/asound.h:877: error: expected expression before 'struct'
../../include/sound/asound.h:877: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_LOCK' is not an integer constant
../../include/sound/asound.h:878: error: expected expression before 'struct'
../../include/sound/asound.h:878: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_UNLOCK' is not an integer constant
../../include/sound/asound.h:879: error: expected expression before 'int'
../../include/sound/asound.h:879: error: enumerator value for 'SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS' is not an integer constant
../../include/sound/asound.h:880: error: expected expression before 'struct'
../../include/sound/asound.h:880: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_ADD' is not an integer constant
../../include/sound/asound.h:881: error: expected expression before 'struct'
../../include/sound/asound.h:881: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_REPLACE' is not an integer constant
../../include/sound/asound.h:882: error: expected expression before 'struct'
../../include/sound/asound.h:882: error: enumerator value for 'SNDRV_CTL_IOCTL_ELEM_REMOVE' is not an integer constant
../../include/sound/asound.h:883: error: expected expression before 'struct'
../../include/sound/asound.h:883: error: enumerator value for 'SNDRV_CTL_IOCTL_TLV_READ' is not an integer constant
../../include/sound/asound.h:884: error: expected expression before 'struct'
../../include/sound/asound.h:884: error: enumerator value for 'SNDRV_CTL_IOCTL_TLV_WRITE' is not an integer constant
../../include/sound/asound.h:885: error: expected expression before 'struct'
../../include/sound/asound.h:885: error: enumerator value for 'SNDRV_CTL_IOCTL_TLV_COMMAND' is not an integer constant
../../include/sound/asound.h:886: error: expected expression before 'int'
../../include/sound/asound.h:886: error: enumerator value for 'SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE' is not an integer constant
../../include/sound/asound.h:887: error: expected expression before 'struct'
../../include/sound/asound.h:887: error: enumerator value for 'SNDRV_CTL_IOCTL_HWDEP_INFO' is not an integer constant
../../include/sound/asound.h:888: error: expected expression before 'int'
../../include/sound/asound.h:888: error: enumerator value for 'SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE' is not an integer constant
../../include/sound/asound.h:889: error: expected expression before 'struct'
../../include/sound/asound.h:889: error: enumerator value for 'SNDRV_CTL_IOCTL_PCM_INFO' is not an integer constant
../../include/sound/asound.h:890: error: expected expression before 'int'
../../include/sound/asound.h:890: error: enumerator value for 'SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE' is not an integer constant
../../include/sound/asound.h:891: error: expected expression before 'int'
../../include/sound/asound.h:891: error: enumerator value for 'SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE' is not an integer constant
../../include/sound/asound.h:892: error: expected expression before 'struct'
../../include/sound/asound.h:892: error: enumerator value for 'SNDRV_CTL_IOCTL_RAWMIDI_INFO' is not an integer constant
../../include/sound/asound.h:893: error: expected expression before 'int'
../../include/sound/asound.h:893: error: enumerator value for 'SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE' is not an integer constant
../../include/sound/asound.h:894: error: expected expression before 'int'
../../include/sound/asound.h:894: error: enumerator value for 'SNDRV_CTL_IOCTL_POWER' is not an integer constant
../../include/sound/asound.h:895: error: expected expression before 'int'
../../include/sound/asound.h:895: error: enumerator value for 'SNDRV_CTL_IOCTL_POWER_STATE' is not an integer constant
../../include/sound/asound.h:951: error: expected expression before 'struct'
../../include/sound/asound.h:951: error: enumerator value for 'SNDRV_IOCTL_READV' is not an integer constant
../../include/sound/asound.h:952: error: expected expression before 'struct'
../../include/sound/asound.h:952: error: enumerator value for 'SNDRV_IOCTL_WRITEV' is not an integer constant
In file included from ../../include/local.h:109,
from control_local.h:22,
from cards.c:35:
../../include/global.h:137: error: redefinition of 'struct timeval'
../../include/global.h:142: error: redefinition of 'struct timespec'
In file included from ../../include/local.h:114,
from control_local.h:22,
from cards.c:35:
../../include/pcm.h:419: warning: 'struct pollfd' declared inside parameter list
../../include/pcm.h:419: warning: its scope is only this definition or declaration, which is probably not what you want
../../include/pcm.h:420: warning: 'struct pollfd' declared inside parameter list
../../include/pcm.h:921: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snd_pcm_format_silence'
../../include/pcm.h:922: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snd_pcm_format_silence_16'
../../include/pcm.h:923: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snd_pcm_format_silence_32'
../../include/pcm.h:924: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snd_pcm_format_silence_64'
../../include/pcm.h:1028: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from ../../include/local.h:116,
from control_local.h:22,
from cards.c:35:
../../include/rawmidi.h:88: warning: 'struct pollfd' declared inside parameter list
../../include/rawmidi.h:89: warning: 'struct pollfd' declared inside parameter list
In file included from ../../include/local.h:117,
from control_local.h:22,
from cards.c:35:
../../include/timer.h:155: warning: 'struct pollfd' declared inside parameter list
../../include/timer.h:156: warning: 'struct pollfd' declared inside parameter list
In file included from ../../include/local.h:118,
from control_local.h:22,
from cards.c:35:
../../include/hwdep.h:99: warning: 'struct pollfd' declared inside parameter list
../../include/hwdep.h:100: warning: 'struct pollfd' declared inside parameter list
In file included from ../../include/local.h:119,
from control_local.h:22,
from cards.c:35:
../../include/control.h:229: warning: 'struct pollfd' declared inside parameter list
../../include/control.h:230: warning: 'struct pollfd' declared inside parameter list
../../include/control.h:514: warning: 'struct pollfd' declared inside parameter list
../../include/control.h:515: warning: 'struct pollfd' declared inside parameter list
In file included from ../../include/local.h:120,
from control_local.h:22,
from cards.c:35:
../../include/mixer.h:107: warning: 'struct pollfd' declared inside parameter list
../../include/mixer.h:108: warning: 'struct pollfd' declared inside parameter list
In file included from ../../include/local.h:122,
from control_local.h:22,
from cards.c:35:
../../include/seq.h:84: warning: 'struct pollfd' declared inside parameter list
../../include/seq.h:85: warning: 'struct pollfd' declared inside parameter list
In file included from cards.c:35:
control_local.h:53: warning: 'struct pollfd' declared inside parameter list
control_local.h:54: warning: 'struct pollfd' declared inside parameter list
make[2]: *** [cards.lo] Error 1
make[2]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/src/control'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tilak/ntr/alsa-lib-1.0.17a/src'
make: *** [all-recursive] Error 1
================================================== ========



any one can help and thanks in advance


Regards,
Srihari