Hallo, Ich habe hier ein seltsames Problem, wenn ich versuche ZoneMonder zu kompilieren: checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables Ich arbeite als root, habe gcc und cc installiert und keine Ahnung, woher der Fehler kommt. Ich hatte gestern bereits einmal kompiliert, mit Erfolg. Wollte das ganze jetzt nochmal wiederholen, und schwupps war die Fehlermeldung da. Das einzige, was ich geändert hatte, war daß ich apache-ant per YAST installiert und iweder deinstalliert habe. Kann mir da jemand weiterhelfen ? Danke Andreas
On Sat, 13 Mar 2004 20:59:46 +0100
"A. Gaul"
Ich habe hier ein seltsames Problem, wenn ich versuche ZoneMonder zu kompilieren:
checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables [...] Kann mir da jemand weiterhelfen ?
configure erzeugt i.d.R. eine Log-Datei (config.log?), aus der sich bestimmt mehr herauslesen lässt. Viele Grüße Ralf
-----Original Message-----
From: Ralf Schuchardt [mailto:rasc@gmx.de]
Sent: Saturday, March 13, 2004 9:22 PM
To: suse-linux@suse.com
Subject: Re: Kompilier-Problem
On Sat, 13 Mar 2004 20:59:46 +0100
"A. Gaul"
Ich habe hier ein seltsames Problem, wenn ich versuche ZoneMonder zu kompilieren:
checking for gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables [...] Kann mir da jemand weiterhelfen ?
configure erzeugt i.d.R. eine Log-Datei (config.log?), aus der sich bestimmt mehr herauslesen lässt. Viele Grüße Ralf .. Ja, aber ich wird' draus nicht schlau...:-( habe Sie mal angehängt...: 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.57. Invocation command line was $ ./configure --with-mysql --with-webdir=/www/agit.home/zm --with-cgidir=/www/agit.home/cgi-bin --with-webuser=nobody --with-webgroup=nogroup ## --------- ## ## Platform. ## ## --------- ## hostname = agitsrv uname -m = i686 uname -r = 2.4.21-192-smp4G uname -s = Linux uname -v = #1 SMP Wed Feb 18 19:27:48 UTC 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: /sbin PATH: /usr/sbin PATH: /usr/local/sbin PATH: /root/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /usr/X11R6/bin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:1285: checking for a BSD-compatible install configure:1339: result: /usr/bin/install -c configure:1350: checking whether build environment is sane configure:1393: result: yes configure:1426: checking for gawk configure:1442: found /usr/bin/gawk configure:1452: result: gawk configure:1462: checking whether make sets $(MAKE) configure:1482: result: yes configure:1781: checking for gcc configure:1797: found /usr/bin/gcc configure:1807: result: gcc configure:2051: checking for C compiler version configure:2054: gcc --version &5 gcc (GCC) 3.3.1 (SuSE Linux) 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:2057: $? = 0 configure:2059: gcc -v &5 Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux Thread model: posix gcc version 3.3.1 (SuSE Linux) configure:2062: $? = 0 configure:2064: gcc -V &5 gcc: `-V' option must have argument configure:2067: $? = 1 configure:2091: checking for C compiler default output configure:2094: gcc -Lyes/lib/mysql conftest.c >&5 /usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure:2097: $? = 1 configure: failed program was: | #line 2070 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "zm" | #define VERSION "1.18.1" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2136: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## 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_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_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_path_install='/usr/bin/install -c' ac_cv_prog_AWK=gawk ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /tarballs/zm-1.18.1/missing --run aclocal-1.7' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /tarballs/zm-1.18.1/missing --run tar' AUTOCONF='${SHELL} /tarballs/zm-1.18.1/missing --run autoconf' AUTOHEADER='${SHELL} /tarballs/zm-1.18.1/missing --run autoheader' AUTOMAKE='${SHELL} /tarballs/zm-1.18.1/missing --run automake-1.7' AWK='gawk' CC='gcc' CCDEPMODE='' CFLAGS='' CGI_PREFIX='/www/agit.home/cgi-bin' CPP='' CPPFLAGS='' CXX='' CXXDEPMODE='' CXXFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' LDFLAGS='-Lyes/lib/mysql ' LIBOBJS='' LIBS='' LTLIBOBJS='' MAKEINFO='${SHELL} /tarballs/zm-1.18.1/missing --run makeinfo' MYSQL_CFLAGS='-Iyes/include' MYSQL_LIBS='-Lyes/lib/mysql' MYSQL_PREFIX='yes' OBJEXT='' PACKAGE='zm' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' SET_MAKE='' SHELL='/bin/sh' STRIP='' VERSION='1.18.1' WEB_GROUP='nogroup' WEB_PREFIX='/www/agit.home/zm' WEB_USER='nobody' ac_ct_CC='gcc' ac_ct_CXX='' ac_ct_STRIP='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='' am__quote='' bindir='${exec_prefix}/bin' build_alias='' datadir='${prefix}/share' exec_prefix='NONE' host_alias='' includedir='${prefix}/include' infodir='${prefix}/info' install_sh='/tarballs/zm-1.18.1/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='NONE' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE "zm" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "" #define PACKAGE_STRING "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define VERSION "1.18.1" configure: exit 77
A. Gaul wrote:
-----Original Message----- From: Ralf Schuchardt [mailto:rasc@gmx.de] Sent: Saturday, March 13, 2004 9:22 PM To: suse-linux@suse.com Subject: Re: Kompilier-Problem
Bitte lerne dringend (und ganz schnell!), ordentlich zu quoten. Das hier ist einfach Muell (zudem fehlt das Quoting-Zeichen, etc.). Siehe Etikette dieser Liste und http://learn.to/quote Zu Deinem Problem (was man nun leider nicht mehr richtig zitieren kann): a) Kompiliere keine Software als Root. Zum Compilieren sind keine Root-Rechte erforderlich, lediglich zum Installieren. b) Erstelle Dir spaeter ein RPM (entweder direkt oder zumindest ueber checkinstall) und installiere das RPM, fuehre kein "make install" durch - ansonsten wird die Software nicht in der RPM Datenbank verzeichnet. c) Installiere das glibc-devel Paket. d) Du wirst evtl. noch weitere Pakete brauchen in Zukunft. Dein Freund heisst "pin", das Du auf den SuSE-CDs/der SuSE-DVD findest. Du wirst beim Compilieren von Software (und auch sonst unter Linux) nicht umhin kommen, Fehlermeldungen _genau_ zu lesen und daraus entsprechende Schlussfolgerungen zu ziehen: /usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/ld: cannot open crt1.o: No such file or directory Der Linker (ld) beschwert sich, dass er eine Datei Namens crt1.o nicht findet. Diese gehoert (da wuerde Dir nun pin helfen) zum Paket glibc-devel. CU, Th.
participants (3)
-
A. Gaul
-
Ralf Schuchardt
-
Thomas Hertweck