Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21990 - media-sound/alsa-driver-0.9.3c-r1 doesn't configure with gcc 3.2.3
Summary: media-sound/alsa-driver-0.9.3c-r1 doesn't configure with gcc 3.2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 21372
  Show dependency tree
 
Reported: 2003-05-31 04:50 UTC by Stephane Chomat
Modified: 2003-12-07 17:17 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Chomat 2003-05-31 04:50:09 UTC
The configure script doesn't works with gcc 3.2.3 :

checking for GCC version... Kernel compiler: version gcc 3.2.3 20030422 (Gentoo
Linux 1.4 3.2.3-r1, propolice) Used compiler: gcc (GCC) 3.2.3 20030422 (Gentoo
Linux 1.4 3.2.3-r1, propolice)
Fatal error: Compiler type does not match

!!! ERROR: media-sound/alsa-driver-0.9.3c-r1 failed.
!!! Function src_compile, Line 57, Exitcode 1
!!! ./configure failed

it 's the same version of GCC.

My kernel compiler version is :
version gcc 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)

gcc --version | head -n 1
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)

uname -r
2.4.20-gentoo-r5
I propose this in the configure.in

diff configure.in.old configure.in.new
170c170,176
<    for (ptr = LINUX_COMPILER, dptr = compiler; *ptr != '\0' && *ptr != ' ' &&
*ptr != '\t'; ptr++, dptr++)
---
>    ptr = LINUX_COMPILER;
>    if (!strncmp(ptr, "version", 7))
>         ptr += 7;
>    if (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t'))
>         ptr++;
> 
>    for (dptr = compiler; *ptr != '\0' && *ptr != ' ' && *ptr != '\t'; ptr++,
dptr++)
Comment 1 Hanno Böck gentoo-dev 2003-07-14 03:50:07 UTC
I had a similar problem, but it is fixed in alsa-driver-0.9.5.
Reporter, can you please try if this fixes the issue for you?
Comment 2 psk 2003-07-14 06:21:37 UTC
   It's not better.
   Could you help me plz ?

>>> emerge (1 of 1) media-sound/alsa-driver-0.9.5 to /
...
checking for GCC version... Kernel compiler:   Used compiler: gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
Fatal error: Compiler type does not match
Decoded kernel compiler: type= version=
Decoded used compiler: type=gcc version=3.2.3
Please, send ./configure output to <alsa-devel@alsa-project.org>

!!! ERROR: media-sound/alsa-driver-0.9.5 failed.
!!! Function src_compile, Line 64, Exitcode 1
!!! ./configure failed


Comment 3 Hanno Böck gentoo-dev 2003-07-14 08:25:19 UTC
Do you have /usr/src/linux symlink pointing to your current kernel-sourcetree?
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-09-30 12:21:40 UTC
try alsa-drivers 0.9.6 and report here
Comment 5 Arcady Genkin (RETIRED) gentoo-dev 2003-10-02 18:27:22 UTC
I recall seeing something to this effect in one of the ALSA mailing lists.
 IIRC, it was fixed somewhere around 0.9.4.  Could you please try 0.9.6 as
it is going to be marked stable very soon now?
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2003-10-16 11:45:54 UTC
http://www.mail-archive.com/alsa-devel@lists.sourceforge.net/msg08085.html

The worse is when you are emerging the system just after the install! Trying
to fall back to an older version meanwhile...
Comment 7 Patrik Kullman 2003-10-20 03:56:37 UTC
Also having this problem with alsa-driver 0.9.7[ac].
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2003-10-20 11:59:57 UTC
Easy workaround:

edit /usr/src/linux/includes/linux/compile.h
and add/fill the following line:

#define LINUX_COMPILER "gcc (GCC) 3.3.1 20030927 (Gentoo Linux 3.3.1-r5,
propolice)"

(Try to add YOUR version, not mine ;))
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 17:17:15 UTC
closing with 0.9.8