Date: Mon, 6 Dec 2004 19:36:32 GMT From: Carlos Paniago <pan@cnpm.embrapa.br> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/74785: rdate in ports doesn't work with amd64 Message-ID: <200412061936.iB6JaWxK086686@www.freebsd.org> Resent-Message-ID: <200412061940.iB6JeRjH095725@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412061936.iB6JaWxK086686>