From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PokzE-0000Qi-Qs for garchives@archives.gentoo.org; Sun, 13 Feb 2011 23:04:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE6B1E0A6C for ; Sun, 13 Feb 2011 23:04:11 +0000 (UTC) Received: from mailgate.caprica.metux.de (caprica.metux.de [82.165.128.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CAC8E0A91 for ; Sun, 13 Feb 2011 22:37:10 +0000 (UTC) Received: from mailgate.caprica.metux.de (localhost.localdomain [127.0.0.1]) by mailgate.caprica.metux.de (8.14.4/8.14.4) with ESMTP id p1DMY1T0001815 for ; Sun, 13 Feb 2011 23:34:01 +0100 Received: (from uucp@localhost) by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id p1DMXvUi001807 for gentoo-embedded@lists.gentoo.org; Sun, 13 Feb 2011 23:33:57 +0100 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id p1DMSJPX014809 for gentoo-embedded@lists.gentoo.org; Sun, 13 Feb 2011 23:28:19 +0100 Date: Sun, 13 Feb 2011 23:28:19 +0100 From: Enrico Weigelt To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] configure: error: C++ compiler cannot create executables Message-ID: <20110213222819.GA2120@nibiru.local> References: <20110103150039.8904.qmail@stuge.se> <20110205151615.GA16741@nibiru.local> <201102060222.00096.vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201102060222.00096.vapier@gentoo.org> User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: X-Archives-Hash: fe489f9b74ba346cea2cb5fb01fea3bf * Mike Frysinger schrieb: > On Saturday, February 05, 2011 10:16:16 Enrico Weigelt wrote: > > No, they aren't. They are just macros which are expanded to a big-fat > > unreable shellscript w/o any functions. > > once again you show that you dont follow the projects you spend time > criticizing. autoconf has for quite some time now required shells to support > functions since it generates code that uses functions. Well, actually, there are a few shell functions somewhere deep in the fat shellscript, but still it's lightyears away from the concept of structured programming w/ functions/procedures (introduced somewhere in the 60th). A about 130 lines configure.ac still produces a 13.800 lines unreadable configure script (factor 100 !). Why isn't, eg., something like AC_CHECK_LIB just a function call ? There could be easily one generic function that does the job on the given parameters and also tells the success as return value, so you could directly write: ac_check_library 'z' 'zlibVersion' || ac_error 'zlib not installed' instead of: AC_CHECK_LIB(z, zlibVersion, , AC_ERROR([zlib not installed])) (which translates to more than 60 lines of shell code in the fat script). BTW: the whole AC_CHECK_LIB approach (trying to compile a call to the given function name) uses broken C code - try it on GCC with -Werror and see what happens ;-o cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------