NetBSD Problem Report #49803
From www@NetBSD.org Tue Mar 31 07:24:32 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 420F1A654C
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Mar 2015 07:24:32 +0000 (UTC)
Message-Id: <20150331072431.0CDEFA6562@mollari.NetBSD.org>
Date: Tue, 31 Mar 2015 07:24:31 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: net/synergy does not compile on Solaris
X-Send-Pr-Version: www-1.0
>Number: 49803
>Category: pkg
>Synopsis: net/synergy does not compile on Solaris
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 31 07:25:00 +0000 2015
>Closed-Date: Wed Jun 10 16:10:55 +0000 2015
>Last-Modified: Wed Jun 10 16:10:55 +0000 2015
>Originator: Joern Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
>Description:
Compilation of net/synergy fails to detect the endianness in src/micro/uSynergy.h on Solaris 10 and 11.
>How-To-Repeat:
>Fix:
GCC 4.5.2 distributed with Solaris 11.1 does not seem to define any useable macros (like __BYTE_ORDER__) and I was not able to find out what the correct way is to determine endianness on this platform. I settled with this patch to pkgsrc's Makefile:
--- Makefile 2015/03/31 07:08:08 1.1
+++ Makefile 2015/03/31 07:10:54
@@ -62,6 +62,14 @@
-Wno-deprecated-register -Wno-tautological-compare
.endif
+.if ${OPSYS} == "SunOS"
+.if ${MACHINE_ARCH} == "i386"
+ CFLAGS+=-DUSYNERGY_LITTLE_ENDIAN
+.else
+ CFLAGS+=-DUSYNERGY_BIG_ENDIAN
+.endif
+.endif
+
# XXX surely there exists a better way to do this
.if ${OPSYS} != "Linux"
BUILDLINK_TRANSFORM+= rm:-ldl
The package now compiles on Solaris 11.1/i86.
>Release-Note:
>Audit-Trail:
From: Tobias Nygren <tnn@NetBSD.org>
To: joern.clausen@uni-bielefeld.de
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/49803: net/synergy does not compile on Solaris
Date: Tue, 31 Mar 2015 09:52:12 +0200
Hello!
Please try this:
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DUSYNERGY_BIG_ENDIAN
.else
CFLAGS+= -DUSYNERGY_LITTLE_ENDIAN
.endif
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 31 Mar 2015 08:08:20 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Tobias Nygren <tnn@NetBSD.org>, pkg-manager@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/49803: net/synergy does not compile on Solaris
Date: Tue, 31 Mar 2015 10:33:27 +0200
> Please try this:
>
> .include "../../mk/endian.mk"
> .if ${MACHINE_ENDIAN} == "big"
> CFLAGS+= -DUSYNERGY_BIG_ENDIAN
> .else
> CFLAGS+= -DUSYNERGY_LITTLE_ENDIAN
> .endif
Seems to work as well. At least the package compiles.
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/49803 CVS commit: pkgsrc/net/synergy
Date: Tue, 31 Mar 2015 09:44:30 +0000
Module Name: pkgsrc
Committed By: tnn
Date: Tue Mar 31 09:44:30 UTC 2015
Modified Files:
pkgsrc/net/synergy: Makefile
Log Message:
PR pkg/49803 solaris build fix
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/net/synergy/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 10 Jun 2015 16:10:55 +0000
State-Changed-Why:
fix committed in march
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.