Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2011 12:52:10 +0100 (CET)
From:      Konrad Heuer <kheuer@gwdg.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/155748: bug fix important for 64 bit architectures
Message-ID:  <201103211152.p2LBqATH070472@gwdu60.gwdg.de>
Resent-Message-ID: <201103211210.p2LCA1jr045395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155748
>Category:       ports
>Synopsis:       bug fix important for 64 bit architectures
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 21 12:10:00 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Konrad Heuer
>Release:        FreeBSD 8.1-RELEASE-p2 amd64
>Organization:
GWDG
>Environment:
System: FreeBSD gwdu131.gwdg.de 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Thu Jan  6 21:40:05 CET 2011     root@gwdu131.gwdg.de:/usr/obj/usr/src/sys/GWDU131  amd64


	
>Description:
	Because of bad type declaration communication between master/slave
	server and client does not work on 64 bit architectures
>How-To-Repeat:
	Try without fix below
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/useracc/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	6 Oct 2003 01:07:31 -0000	1.1
+++ Makefile	21 Mar 2011 11:42:54 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	useracc
 PORTVERSION=	3.1
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	ftp://gwdu111.gwdg.de/pub/FreeBSD/misc/ \
 		ftp://gwdu112.gwdg.de/pub/FreeBSD/misc/
@@ -17,4 +18,6 @@
 MAN1=		useracc.1
 MANCOMPRESSED=	yes
 
+CFLAGS+=	-DFreeBSD
+
 .include <bsd.port.mk>
Index: files/patch-src::useracc.c
===================================================================
RCS file: /home/ncvs/ports/databases/useracc/files/patch-src::useracc.c,v
retrieving revision 1.1
diff -u -r1.1 patch-src::useracc.c
--- files/patch-src::useracc.c	6 Oct 2003 01:07:31 -0000	1.1
+++ files/patch-src::useracc.c	21 Mar 2011 11:42:54 -0000
@@ -9,3 +9,12 @@
  
  
  #define ACCFILE   "useracc.dat"	/* default user accounts file */
+@@ -299,7 +299,7 @@
+ {
+   int                sockfd;
+ #ifndef OSF1
+-  unsigned long      inadd;
++  in_addr_t          inadd;
+ #else
+   in_addr_t          inadd;
+ #endif  
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103211152.p2LBqATH070472>