All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Krzysztof Helt" <krzysztof.h1@wp.pl>
To: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: ALSA 1.0.13 + 2.6.19rc5 configuration/compilation error
Date: Sun, 19 Nov 2006 11:58:31 +0100	[thread overview]
Message-ID: <456038d70cf0a@wp.pl> (raw)

Hello,

I tried to build an alsa 1.0.13 with kernel 2.6.19rc5 for ARM.

Configuration worked ok, but then compilation failed. I used
these commands:

./configure ARCH=arm --with-cross=arm-linux- \
--with-kernel=/usr/src/linux-2.6.18

make ARCH=arm

The error returned:

make -C /usr/src/linux-2.6.18 SUBDIRS=/usr/src/alsa-driver-1.0.13
 CPP="arm-linux-gcc -E" CC="arm-linux-gcc " modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
  CC [M]  /usr/src/alsa-driver-1.0.13/acore/hwdep.o
In file included from
/usr/src/alsa-driver-1.0.13/include/sound/driver.h:46,
                 from /usr/src/alsa-driver-1.0.13/acore/hwdep.c:22:
/usr/src/alsa-driver-1.0.13/include/adriver.h:742: error:
redefinition of 'jiffies_to_msecs'
include/linux/jiffies.h:268: error: previous definition of
'jiffies_to_msecs' was here
/usr/src/alsa-driver-1.0.13/include/adriver.h:761: error:
redefinition of 'msecs_to_jiffies'
include/linux/jiffies.h:290: error: previous definition of
'msecs_to_jiffies' was here
make[3]: *** [/usr/src/alsa-driver-1.0.13/acore/hwdep.o] Error 1
make[2]: *** [/usr/src/alsa-driver-1.0.13/acore] Error 2
make[1]: *** [_module_/usr/src/alsa-driver-1.0.13] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [compile] Error 2

I traced the problem back to configuration script. It uses the
linux/config.h in few tests programs and this file does not exist
in the $KERNEL/include/linux directory.
Here is a snippet from configuration log:

configure:7720: checking for msecs_to_jiffies
configure:7751: arm-linux-gcc  -c -Wall -fno-strict-aliasing -g
-O2 -I/usr/src/linux-2.6.18/include  -nostdinc -iwithprefix
include -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(dummy)
-Iinclude  conftest.c >&5
conftest.c:20:26: linux/config.h: No such file or directory
In file included from /usr/src/linux-2.6.18/include/linux/bitops.h:9,
                 from
/usr/src/linux-2.6.18/include/linux/kernel.h:15,
                 from
/usr/src/linux-2.6.18/include/linux/jiffies.h:5,
                 from conftest.c:21:
/usr/src/linux-2.6.18/include/asm/bitops.h: In function
`____atomic_set_bit':
/usr/src/linux-2.6.18/include/asm/bitops.h:40: warning: implicit
declaration of function `local_irq_save'
/usr/src/linux-2.6.18/include/asm/bitops.h:42: warning: implicit
declaration of function `local_irq_restore'
In file included from conftest.c:21:
/usr/src/linux-2.6.18/include/linux/jiffies.h:33:3: #error You lose.


I hope someone can point how to fix it (or fix it).
Krzysztof

----------------------------------------------------
WROCŁAWSKIE TARGI PRACY! Największe Targi Pracy w Polsce, ponad 150
firm, tysiące ofert pracy - Wrocław 22.11.2006 Hala Ludowa - Zobacz:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd36.html&sid=935



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

             reply	other threads:[~2006-11-19 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-19 10:58 Krzysztof Helt [this message]
2006-11-19 11:15 ` ALSA 1.0.13 + 2.6.19rc5 configuration/compilation error James Courtier-Dutton
2006-11-20 10:01 ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=456038d70cf0a@wp.pl \
    --to=krzysztof.h1@wp.pl \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.