From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <00ed01c3ec4a$c73c78f0$0100a8c0@stone.kamchatka.ru> From: "Anton V. Denisov" To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MDRemoteIP: 192.168.0.1 X-Return-Path: fire@kgpu.kamchatka.ru X-MDaemon-Deliver-To: devel@altlinux.ru Subject: [devel] Q: strftime and new GCC again. X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 00:41:58 -0000 X-List-Received-Date: Fri, 06 Feb 2004 00:41:58 -0000 X-List-Received-Date: Fri, 06 Feb 2004 00:41:58 -0000 X-List-Received-Date: Fri, 06 Feb 2004 00:41:58 -0000 Date: Fri, 06 Feb 2004 00:41:58 -0000 X-Original-Date: Fri, 6 Feb 2004 12:47:20 +1200 X-List-Received-Date: Fri, 06 Feb 2004 00:41:58 -0000 Message-ID: <20040206004158.O1ztD7cHCnXnrSR5krweKXsaVO3qrPsAlyHoda5P81Y@z> Archived-At: List-Archive: List-Post: Приветствую всех. Кто-нибудь может объяснить, почему с приходом нового GCC в Сизиф стало происходит такое: configure:8324: checking for strftime configure:8367: i586-alt-linux-g++ -o conftest -pipe -Wall -O2 -march=i586 -mcpu=i686 conftest.cc >&5 configure:8339: error: nonnull argument with out-of-range operand number (arg 1, operand 3) configure:8370: $? = 1 configure: failed program was: #line 8329 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strftime (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strftime (); char (*f) (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strftime) || defined (__stub___strftime) choke me #else f = strftime; #endif ; return 0; } configure:8386: result: no и как это исправить? ./configure сгенерирован Autoconf 2.53a. Вот и возникает вопрос, почему gcc3.2-3.2.3-alt1 этот кусок компилирует, а новый - нет. Надеюсь, GCC Development Team ответит на мой вопрос. С уважением, Антон В. Денисов.