ports/116313: Cannot compile sysutils/desktopbsd-tools on AMD64 CURRENT

Alex lissyara Keda admin at lissyara.su
Wed Sep 12 17:20:02 UTC 2007


>Number:         116313
>Category:       ports
>Synopsis:       Cannot compile sysutils/desktopbsd-tools on AMD64 CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 12 17:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alex "lissyara" Keda
>Release:        7.0-CURRENT
>Organization:
USSR
>Environment:
FreeBSD acer.lissyara.int.otradno.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Sep  9 23:51:55 MSD 2007     root at acer.lissyara.int.otradno.ru:/usr/obj/usr/src/sys/main-color-console  amd64

>Description:
Compilation failed with

c++ -c -pipe -Wall -W -O2 -fno-strict-aliasing -pipe -fPIC  -DQT_NO_CHECK -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/local/share/qt/mkspecs/freebsd-g++ -I. -I../libdesktopbsd -I../../../../../../local/include -I/usr/local/include -o moddevinfo.o moddevinfo.cpp
In file included from moddevinfo.cpp:26:
moddevinfo.ui.h: In member function 'int modDevInfo::insertDevice(devinfo_dev*, void*)':
moddevinfo.ui.h:35: error: cast from 'void*' to 'uint' loses precision
*** Error code 1

Stop in /usr/ports/sysutils/desktopbsd-tools/work/desktopbsd-tools/libdesktopbsd-ui.
*** Error code 1

>How-To-Repeat:
always on amd64, on i386 - successful
>Fix:
patch

Patch attached with submission follows:

diff -Nru desktopbsd-tools.orig/Makefile desktopbsd-tools/Makefile
--- desktopbsd-tools.orig/Makefile	2007-09-12 21:13:25.000000000 +0400
+++ desktopbsd-tools/Makefile	2007-09-12 21:14:14.000000000 +0400
@@ -6,7 +6,7 @@
 
 PORTNAME=	desktopbsd-tools
 PORTVERSION=	1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 MASTER_SITES=	ftp://ftp.desktopbsd.net/
 
diff -Nru desktopbsd-tools.orig/files/patch-libdesktopbsd-ui-moddevinfo.ui.h desktopbsd-tools/files/patch-libdesktopbsd-ui-moddevinfo.ui.h
--- desktopbsd-tools.orig/files/patch-libdesktopbsd-ui-moddevinfo.ui.h	1970-01-01 03:00:00.000000000 +0300
+++ desktopbsd-tools/files/patch-libdesktopbsd-ui-moddevinfo.ui.h	2007-09-12 19:38:11.000000000 +0400
@@ -0,0 +1,11 @@
+--- libdesktopbsd-ui/moddevinfo.ui.h.orig	2007-09-12 19:36:40.000000000 +0400
++++ libdesktopbsd-ui/moddevinfo.ui.h	2007-09-12 19:37:14.000000000 +0400
+@@ -32,7 +32,7 @@
+ 
+ 	if(dev->dd_name[0] != '\0' && dev->dd_state >= DIS_ATTACHED) {
+ 		Device  device(dev->dd_name);
+-		uint level = (uint) arg;
++		uint level = 0x000ffffff & (ulong) arg;
+ 
+ 		/* Check the index in parents[], even if it is
+ 		 * highly unlikely that it is > 32.


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



More information about the freebsd-ports-bugs mailing list