xrdp server fails to start on ppc64el

Bug #1416989 reported by Ivan Warren
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xrdp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

xrdp fails to start with the following error on 14.10 ppc64el with :

# dpkg -l xrdp
ii xrdp 0.6.1-1 ppc64el Remote Desktop Protocol (RDP) server

** error log below **

 * Starting Remote Desktop Protocol server
                endian wrong, edit arch.h

** error log end **

Following which "ps" and "netstat -anp" confirms xrdp is not running.

Upon examination, it seems to be connected to how common/arch.h is detecting endianness, assuming that PPC is *always* big endian (whereas the power architecture has dual endianness).

The following patch eleviates the issue :

*** PATCH STARTS HERE ***
--- xrdp-0.6.1.orig/common/arch.h
+++ xrdp-0.6.1/common/arch.h
@@ -24,6 +24,12 @@
 #if !defined(ARCH_H)
 #define ARCH_H

+#if defined(__LITTLE_ENDIAN__)
+#define L_ENDIAN
+#else
+#define B_ENDIAN
+#endif
+
 #if !(defined(L_ENDIAN) || defined(B_ENDIAN))
 /* check endianess */
 #if defined(__sparc__) || defined(__PPC__) || defined(__ppc__) || \
*** PATCH ENDS HERE ***

Tested by dpkg-buildpackage. Other problems ensue, but are already declared (and not directly related to xrdp).

--Ivan

Ivan Warren (ivmn)
tags: added: ibm power powerpc ppc
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xrdp (Ubuntu):
status: New → Confirmed
Lenin (gagarin)
Changed in xrdp (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.