From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 6 19:40:27 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60BB716A4CE for ; Mon, 6 Dec 2004 19:40:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C02243D67 for ; Mon, 6 Dec 2004 19:40:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB6JeRNO095726 for ; Mon, 6 Dec 2004 19:40:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB6JeRjH095725; Mon, 6 Dec 2004 19:40:27 GMT (envelope-from gnats) Resent-Date: Mon, 6 Dec 2004 19:40:27 GMT Resent-Message-Id: <200412061940.iB6JeRjH095725@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Carlos Paniago Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E32A16A4CE for ; Mon, 6 Dec 2004 19:36:35 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0C3643D70 for ; Mon, 6 Dec 2004 19:36:34 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB6JaWv8086691 for ; Mon, 6 Dec 2004 19:36:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id iB6JaWxK086686; Mon, 6 Dec 2004 19:36:32 GMT (envelope-from nobody) Message-Id: <200412061936.iB6JaWxK086686@www.freebsd.org> Date: Mon, 6 Dec 2004 19:36:32 GMT From: Carlos Paniago To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/74785: rdate in ports doesn't work with amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 19:40:27 -0000 >Number: 74785 >Category: ports >Synopsis: rdate in ports doesn't work with amd64 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 06 19:40:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Carlos Paniago >Release: FreeBSD 5.3-STABLE >Organization: Embrapa - CNPM >Environment: FreeBSD mogno.cnpm.embrapa.br 5.3-STABLE FreeBSD 5.3-STABLE #1: Mon Dec 6 11:57:18 BRST 2004 root@mogno.cnpm.embrapa.br:/usr/src/sys/amd64/compile/MOGNO amd64 >Description: go to the ports: cd /usr/ports/sysutils/rdate; make; make install; rehash rdate ipe (it works in i386 machines) in this machine (amd64) mogno# rdate ipe rdate: Could not read data: Unknown error: 0 mogno# >How-To-Repeat: to execute "rdate" (in ports) in an amd64 machine using a i386 machine as a server. >Fix: err(1, "Could not connect socket"); if (read(s, &tim, sizeof(time_t)) != sizeof(time_t)) err(1, "Could not read data"); (void) close(s); the problem is the sizeof of time_t it is 4 in a i386 machine and 8 in a amd64 machine. One solution is to change in the rtime.c file the line with the sizeof to: if (read(s, &tim, sizeof(time_t)) != 4) but I'm not sure if this is an elegant solution. >Release-Note: >Audit-Trail: >Unformatted: