Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2009 23:19:35 GMT
From:      billy <markslashbill@yahoo.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/132949: xlife segments on amd64 - patch supplied 
Message-ID:  <200903222319.n2MNJZNI018582@www.freebsd.org>
Resent-Message-ID: <200903222320.n2MNK1v0098468@freefall.freebsd.org>

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

>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@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:



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