ports/132949: xlife segments on amd64 - patch supplied

billy markslashbill at yahoo.co.uk
Sun Mar 22 23:20:02 UTC 2009


>Number:         132949
>Category:       ports
>Synopsis:       xlife segments on amd64 - patch supplied
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 22 23:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     billy
>Release:        amd 7.1
>Organization:
>Environment:
FreeBSD foghorn 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
segmentation fault running xlife on amd64.

/usr/ports/games/xlife


cause:
===================================
in main.c use of 'getenv()' with no 
#include <stdlib.h>

there is a warning anyway...

main.c:66: warning: passing argument 1 of 'XOpenDisplay' makes pointer from integer without a cast

>How-To-Repeat:
try on amd64
it works ok on my P4

>Fix:
patch enclosed

Patch attached with submission follows:

*** main.c.orig	Mon Mar 23 00:13:37 2009
--- main.c	Mon Mar 23 00:14:16 2009
***************
*** 31,36 ****
--- 31,37 ----
  #include <X11/Xatom.h>
  
  #include <stdio.h>
+ #include <stdlib.h>
  
  #include "defs.h"
  #include "icon.h"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list