pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/49803: net/synergy does not compile on Solaris
>Number: 49803
>Category: pkg
>Synopsis: net/synergy does not compile on Solaris
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 31 07:25:00 +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.
Home |
Main Index |
Thread Index |
Old Index