LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't Compile ALSA Drivers (https://www.linuxquestions.org/questions/linux-general-1/cant-compile-alsa-drivers-200012/)

AFI_Flame 07-01-2004 02:07 PM

Can't Compile ALSA Drivers
 
When I do a ./configure on them I get this error.

Code:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


foo_bar_foo 07-01-2004 02:34 PM

it looks like posibly your gcc is built without c++ (g++) compiler.
did you build gcc yourself ???

320mb 07-01-2004 02:37 PM

Code:

See `config.log' for more details.
did you read the log??

AFI_Flame 07-01-2004 02:59 PM

No im using the gcc that came with my Slackware 10.0. I am using a custom 2.6.7 kernel though. Here's my config.log... didn't really make any sence to me.

Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57a.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = bob
uname -m = i686
uname -r = 2.6.7
uname -s = Linux
uname -v = #1 Thu Jul 1 13:26:10 CDT 2004

/usr/bin/uname -p = unknown
/bin/uname -X    = unknown

/bin/arch              = i686
/usr/bin/arch -k      = unknown
/usr/convex/getsysinfo = unknown
hostinfo              = unknown
/bin/machine          = unknown
/usr/bin/oslevel      = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
PATH: /usr/share/texmf/bin
PATH: .


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1309: checking for gcc
configure:1325: found /usr/bin/gcc
configure:1335: result: gcc
configure:1579: checking for C compiler version
configure:1582: gcc --version </dev/null >&5
gcc (GCC) 3.3.4
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1585: $? = 0
configure:1587: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
configure:1590: $? = 0
configure:1592: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1595: $? = 1
configure:1618: checking for C compiler default output file name
configure:1621: gcc    conftest.c  >&5
configure:1624: $? = 0
configure:1670: result: a.out
configure:1675: checking whether the C compiler works
configure:1681: ./a.out
configure:1684: $? = 0
configure:1701: result: yes
configure:1708: checking whether we are cross compiling
configure:1710: result: no
configure:1713: checking for suffix of executables
configure:1715: gcc -o conftest    conftest.c  >&5
configure:1718: $? = 0
configure:1743: result:
configure:1749: checking for suffix of object files
configure:1770: gcc -c  conftest.c >&5
configure:1773: $? = 0
configure:1795: result: o
configure:1799: checking whether we are using the GNU C compiler
configure:1823: gcc -c  conftest.c >&5
configure:1826: $? = 0
configure:1829: test -s conftest.o
configure:1832: $? = 0
configure:1845: result: yes
configure:1851: checking whether gcc accepts -g
configure:1872: gcc -c -g  conftest.c >&5
configure:1875: $? = 0
configure:1878: test -s conftest.o
configure:1881: $? = 0
configure:1892: result: yes
configure:1909: checking for gcc option to accept ANSI C
configure:1969: gcc  -c -g -O2  conftest.c >&5
configure:1972: $? = 0
configure:1975: test -s conftest.o
configure:1978: $? = 0
configure:1996: result: none needed
configure:2014: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2017: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|  choke me
| #endif
configure:2164: checking for ranlib
configure:2180: found /usr/bin/ranlib
configure:2191: result: ranlib
configure:2241: checking for a BSD-compatible install
configure:2296: result: /usr/bin/ginstall -c
configure:2319: checking how to run the C preprocessor
configure:2354: gcc -E  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2354: gcc -E  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2354: gcc -E -traditional-cpp  conftest.c
In file included from /usr/include/features.h:291,
                from /usr/include/assert.h:36,
                from conftest.c:12:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2354: gcc -E -traditional-cpp  conftest.c
In file included from /usr/include/features.h:291,
                from /usr/include/assert.h:36,
                from conftest.c:12:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2354: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2354: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2435: result: /lib/cpp
configure:2459: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2465: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2459: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
                from /usr/include/limits.h:144,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                from conftest.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:2465: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                      Syntax error
configure:2532: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_objext=o
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AS='as'
CC='gcc'
CFLAGS='-g -O2'
CONFIG_ALPHA=''
CONFIG_ARCH_SA1100=''
CONFIG_ARM=''
CONFIG_EXPERIMENTAL=''
CONFIG_IA32_EMULATION=''
CONFIG_ISA=''
CONFIG_ISAPNP=''
CONFIG_ISAPNP_KERNEL=''
CONFIG_L3=''
CONFIG_MIPS64=''
CONFIG_PARISC=''
CONFIG_PCI=''
CONFIG_PCMCIA=''
CONFIG_PNP=''
CONFIG_PNP_KERNEL=''
CONFIG_PPC64=''
CONFIG_PPC=''
CONFIG_RTC=''
CONFIG_SBUS=''
CONFIG_SGI=''
CONFIG_SND=''
CONFIG_SND_AC97_CODEC=''
CONFIG_SND_AD1816A=''
CONFIG_SND_AD1848=''
CONFIG_SND_ALI5451=''
CONFIG_SND_ALS100=''
CONFIG_SND_ALS4000=''
CONFIG_SND_ATIIXP=''
CONFIG_SND_ATIIXP_MODEM=''
CONFIG_SND_AU8810=''
CONFIG_SND_AU8820=''
CONFIG_SND_AU8830=''
CONFIG_SND_AZT2320=''
CONFIG_SND_AZT3328=''
CONFIG_SND_BIT32_EMUL=''
CONFIG_SND_BT87X=''
CONFIG_SND_CMI8330=''
CONFIG_SND_CMIPCI=''
CONFIG_SND_CS4231=''
CONFIG_SND_CS4232=''
CONFIG_SND_CS4236=''
CONFIG_SND_CS4281=''
CONFIG_SND_CS46XX=''
CONFIG_SND_CS46XX_NEW_DSP=''
CONFIG_SND_DATE=''
CONFIG_SND_DEBUG=''
CONFIG_SND_DEBUG_DETECT=''
CONFIG_SND_DEBUG_MEMORY=''
CONFIG_SND_DT019X=''
CONFIG_SND_DUMMY=''
CONFIG_SND_EMU10K1=''
CONFIG_SND_EMU10K1X=''
CONFIG_SND_ENS1370=''
CONFIG_SND_ENS1371=''
CONFIG_SND_ES1688=''
CONFIG_SND_ES18XX=''
CONFIG_SND_ES1938=''
CONFIG_SND_ES1968=''
CONFIG_SND_ES968=''
CONFIG_SND_FM801=''
CONFIG_SND_FM801_TEA575X=''
CONFIG_SND_GUSCLASSIC=''
CONFIG_SND_GUSEXTREME=''
CONFIG_SND_GUSMAX=''
CONFIG_SND_HARMONY=''
CONFIG_SND_HDSP=''
CONFIG_SND_HDSPM=''
CONFIG_SND_HWDEP=''
CONFIG_SND_ICE1712=''
CONFIG_SND_ICE1724=''
CONFIG_SND_INTEL8X0=''
CONFIG_SND_INTEL8X0M=''
CONFIG_SND_INTERWAVE=''
CONFIG_SND_INTERWAVE_STB=''
CONFIG_SND_KERNELDIR=''
CONFIG_SND_KORG1212=''
CONFIG_SND_MAESTRO3=''
CONFIG_SND_MIXART=''
CONFIG_SND_MIXER_OSS=''
CONFIG_SND_MPU401=''
CONFIG_SND_MPU401_UART=''
CONFIG_SND_MSND_PINNACLE=''
CONFIG_SND_MTPAV=''
CONFIG_SND_MVERSION=''
CONFIG_SND_NM256=''
CONFIG_SND_OPL3SA2=''
CONFIG_SND_OPL3_LIB=''
CONFIG_SND_OPL4_LIB=''
CONFIG_SND_OPTI92X_AD1848=''
CONFIG_SND_OPTI92X_CS4231=''
CONFIG_SND_OPTI93X=''
CONFIG_SND_OSSEMUL=''
CONFIG_SND_PC98_CS4232=''
CONFIG_SND_PCM=''
CONFIG_SND_PCM_OSS=''
CONFIG_SND_PDAUDIOCF=''
CONFIG_SND_PDPLUS=''
CONFIG_SND_POWERMAC=''
CONFIG_SND_RAWMIDI=''
CONFIG_SND_RME32=''
CONFIG_SND_RME9652=''
CONFIG_SND_RME96=''
CONFIG_SND_RTCTIMER=''
CONFIG_SND_SA11XX_UDA1341=''
CONFIG_SND_SB16=''
CONFIG_SND_SB16_CSP=''
CONFIG_SND_SB8=''
CONFIG_SND_SBAWE=''
CONFIG_SND_SEQUENCER=''
CONFIG_SND_SEQUENCER_OSS=''
CONFIG_SND_SEQ_DUMMY=''
CONFIG_SND_SERIALMIDI=''
CONFIG_SND_SERIAL_U16550=''
CONFIG_SND_SGALAXY=''
CONFIG_SND_SONICVIBES=''
CONFIG_SND_SSCAPE=''
CONFIG_SND_SUN_AMD7930=''
CONFIG_SND_SUN_CS4231=''
CONFIG_SND_TIMER=''
CONFIG_SND_TRIDENT=''
CONFIG_SND_USB_AUDIO=''
CONFIG_SND_USB_USX2Y=''
CONFIG_SND_VERBOSE_PRINTK=''
CONFIG_SND_VERSION='1.0.5a'
CONFIG_SND_VIA82XX=''
CONFIG_SND_VIRMIDI=''
CONFIG_SND_VX222=''
CONFIG_SND_VXP440=''
CONFIG_SND_VXPOCKET=''
CONFIG_SND_VX_LIB=''
CONFIG_SND_WAVEFRONT=''
CONFIG_SND_YMFPCI=''
CONFIG_SOUND=''
CONFIG_SOUND_PRIME=''
CONFIG_SPARC32=''
CONFIG_SPARC64=''
CONFIG_USB=''
CONFIG_VIDEO_DEV=''
CONFIG_X86=''
CONFIG_X86_64=''
CONFIG_X86_PC9800=''
CPP='/lib/cpp'
CPPFLAGS=''
CROSS_COMPILE=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_INCLUDES=''
GENKSYMS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KERNEL_INC=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
NEW_KBUILD=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHELL='/bin/sh'
SRCDIR=''
ac_ct_CC='gcc'
ac_ct_RANLIB='ranlib'
bindir='${exec_prefix}/bin'
build_alias=''
c_opts=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
kaversion=''
kextraversion=''
kpatchlevel=''
ksublevel=''
kversion=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
m_opts=''
mandir='${prefix}/man'
moddir=''
moddir_tree=''
modsubdir=''
msmp=''
oldincludedir='/usr/include'
prefix='NONE'
processor=''
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1



All times are GMT -5. The time now is 04:44 AM.