From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5301 invoked by alias); 19 Jan 2009 12:40:30 -0000 Received: (qmail 5244 invoked by uid 22791); 19 Jan 2009 12:40:29 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Jan 2009 12:40:20 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n0JCdwt2032080 ; Mon, 19 Jan 2009 13:39:58 +0100 (CET) Received: from mailserver.u-strasbg.fr (ms4.u-strasbg.fr [IPv6:2001:660:2402:d::13]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n0JCdwvx080848 ; Mon, 19 Jan 2009 13:39:58 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (www-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n0JCdvN6054744 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Mon, 19 Jan 2009 13:39:58 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: , Cc: Subject: [Build failure] tm struct tm_gmtoff field build error Date: Mon, 19 Jan 2009 12:40:00 -0000 Message-ID: <004301c97a33$0fa174d0$2ee45e70$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00103.txt.bz2 Trying to compile a "--enable-targets=all" GDB on current cvs HEAD on cygwin, I found a new error in src/bfd: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I. -I../../p urecvs/bfd -I../../purecvs/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing -prototypes -Werror -g -O2 -c ../../purecvs/bfd/vmsutil.c -o vmsutil.o ../../purecvs/bfd/vmsutil.c: In function `vms_file_stats_name': ../../purecvs/bfd/vmsutil.c:249: error: structure has no member named `tm_gmtoff ' make[3]: *** [vmsutil.lo] Error 1 245- 246- if (cdt) 247- { 248- ts = localtime (&buff.st_mtime); 249: gmtoff = ts->tm_gmtoff; 250- *cdt = (long long) (((buff.st_mtim.tv_sec + gmtoff) * VMS_GRANULARITY_FACTOR) 251- + (buff.st_mtim.tv_nsec / 100)) 252- + VMS_EPOCH_OFFSET; 253- } The failure is related to a commit by Nick Clifton dated January 15. 2009 adding vmsutils.c file. tm_gmtoff seems to be an optional field according to: http://www.delorie.com/gnu/docs/glibc/libc_435.html and some configure script do check for its presence before using it, for instance src/config/tcl.m4 AC_CACHE_CHECK([tm_gmtoff in struct tm], tcl_cv_member_tm_gmtoff, [ AC_TRY_COMPILE([#include ], [struct tm tm; tm.tm_gmtoff;], tcl_cv_member_tm_gmtoff=yes, tcl_cv_member_tm_gmtoff=no)]) if test $tcl_cv_member_tm_gmtoff = yes ; then AC_DEFINE(HAVE_TM_GMTOFF) fi Could this test be added and vmsutils.c be updated accordingly? Thanks in advance, Pierre Muller Pascal language support maintainer for GDB