Skip to contentSkip to conversation

freerdp: Add support for uClibc

PATCH New Vicente Olivert Riera 2 participants 2 messages Oct 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 freerdp: Add support for uClibc

The stable-1.1 branch of freerdp fails to build when using a uClibc toolchain because it's using functions which are not implemented in uClibc, like eventfd_read, eventfd_write and futimes. That is causing build failures like these ones:

../../libwinpr/synch/libwinpr-synch.so.0.1.0: undefined reference to eventfd_read' ../../libwinpr/synch/libwinpr-synch.so.0.1.0: undefined reference to eventfd_write'

../../common/libfreerdp-client.so.1.1.0: undefined reference to `futimes'

Backport upstream patch, with non-applicable parts (new files from master, but not in the stable-1.1 branch) trimmed down.

Upstream patch:
https://github.com/FreeRDP/FreeRDP/commit/5f9c36da5d5cd3c5dce49f7b32fe011cb293f9ec/

Fixes:
http://autobuild.buildroot.net/results/a66/a66e1ab18cd12904a64afcbf54116ceef889e966/build-end.log

---
 package/freerdp/Config.in                          |    5 -
 .../freerdp-0001-add-support-for-uclibc.patch      |   93 ++++++++++++++++++++
 2 files changed, 93 insertions(+), 5 deletions(-)
 create mode 100644 package/freerdp/freerdp-0001-add-support-for-uclibc.patch
package/freerdp/Config.in +0 -5
index 2a876b2..c5ff769 100644
@@ -7,13 +7,8 @@ config BR2_PACKAGE_FREERDP
 	select BR2_PACKAGE_XLIB_LIBXCURSOR
 	select BR2_PACKAGE_ZLIB
 	depends on BR2_PACKAGE_XORG7
-	depends on !BR2_TOOLCHAIN_USES_UCLIBC # evenft_{read,write}
 	help
 	  FreeRDP is a free implementation of the Remote Desktop
 	  Protocol (RDP), released under the Apache license
 
 	  http://www.freerdp.com/
-
-comment "freerdp needs an (e)glibc or musl toolchain"
-	depends on BR2_PACKAGE_XORG7
-	depends on BR2_TOOLCHAIN_USES_UCLIBC
package/freerdp/freerdp-0001-add-support-for-uclibc.patch new file +93 -0

93 lines not on this page · raw message

Signature · 1 line
1.7.1
#1 lore raw

PATCH v2 1/1 freerdp: Add support for uClibc

Dear Vicente Olivert Riera,

Quoted 22 lines · Vicente Olivert Riera

The stable-1.1 branch of freerdp fails to build when using a uClibc toolchain because it's using functions which are not implemented in uClibc, like eventfd_read, eventfd_write and futimes. That is causing build failures like these ones:

../../libwinpr/synch/libwinpr-synch.so.0.1.0: undefined reference to eventfd_read' ../../libwinpr/synch/libwinpr-synch.so.0.1.0: undefined reference to eventfd_write'

../../common/libfreerdp-client.so.1.1.0: undefined reference to `futimes'

Backport upstream patch, with non-applicable parts (new files from master, but not in the stable-1.1 branch) trimmed down.

Upstream patch:
https://github.com/FreeRDP/FreeRDP/commit/5f9c36da5d5cd3c5dce49f7b32fe011cb293f9ec/

Fixes:
http://autobuild.buildroot.net/results/a66/a66e1ab18cd12904a64afcbf54116ceef889e966/build-end.log

Quoted 6 lines
---
 package/freerdp/Config.in                          |    5 -
 .../freerdp-0001-add-support-for-uclibc.patch      |   93 ++++++++++++++++++++
 2 files changed, 93 insertions(+), 5 deletions(-)
 create mode 100644 package/freerdp/freerdp-0001-add-support-for-uclibc.patch

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com