Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/gloox: fix build on musl
@ 2020-06-05 21:40 Fabrice Fontaine
  2020-06-05 22:04 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-06-05 21:40 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...src-connectiontcpserver-cpp-fix-musl.patch | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch

diff --git a/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch b/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
new file mode 100644
index 0000000000..56a2d4982c
--- /dev/null
+++ b/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
@@ -0,0 +1,25 @@
+src/connectiontcpserver.cpp: fix musl build
+
+Build on musl fails on:
+
+connectiontcpserver.cpp:131:13: error: 'strerror' was not declared in this scope
+           + strerror( err ) + " (errno: " + util::int2string( err ) + ")";
+             ^~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://bugs.camaya.net/ticket/?id=291]
+
+diff -Nuar gloox-1.0.23-orig/src/connectiontcpserver.cpp gloox-1.0.23/src/connectiontcpserver.cpp
+--- gloox-1.0.23-orig/src/connectiontcpserver.cpp	2020-06-05 23:22:59.624018949 +0200
++++ gloox-1.0.23/src/connectiontcpserver.cpp	2020-06-05 23:26:20.708027221 +0200
+@@ -36,6 +36,7 @@
+ # include <resolv.h>
+ # include <netdb.h>
+ # include <arpa/inet.h>
++# include <string.h>
+ # include <sys/socket.h>
+ # include <sys/un.h>
+ # include <sys/select.h>
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/gloox: fix build on musl
  2020-06-05 21:40 [Buildroot] [PATCH 1/1] package/gloox: fix build on musl Fabrice Fontaine
@ 2020-06-05 22:04 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2020-06-05 22:04 UTC (permalink / raw)
  To: buildroot

Fabrice, All,

On 2020-06-05 23:40 +0200, Fabrice Fontaine spake thusly:
> Fixes:
>  - http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...src-connectiontcpserver-cpp-fix-musl.patch | 25 +++++++++++++++++++
>  1 file changed, 25 insertions(+)
>  create mode 100644 package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
> 
> diff --git a/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch b/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
> new file mode 100644
> index 0000000000..56a2d4982c
> --- /dev/null
> +++ b/package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
> @@ -0,0 +1,25 @@
> +src/connectiontcpserver.cpp: fix musl build
> +
> +Build on musl fails on:
> +
> +connectiontcpserver.cpp:131:13: error: 'strerror' was not declared in this scope
> +           + strerror( err ) + " (errno: " + util::int2string( err ) + ")";
> +             ^~~~~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://bugs.camaya.net/ticket/?id=291]
> +
> +diff -Nuar gloox-1.0.23-orig/src/connectiontcpserver.cpp gloox-1.0.23/src/connectiontcpserver.cpp
> +--- gloox-1.0.23-orig/src/connectiontcpserver.cpp	2020-06-05 23:22:59.624018949 +0200
> ++++ gloox-1.0.23/src/connectiontcpserver.cpp	2020-06-05 23:26:20.708027221 +0200
> +@@ -36,6 +36,7 @@
> + # include <resolv.h>
> + # include <netdb.h>
> + # include <arpa/inet.h>
> ++# include <string.h>
> + # include <sys/socket.h>
> + # include <sys/un.h>
> + # include <sys/select.h>
> -- 
> 2.26.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-05 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 21:40 [Buildroot] [PATCH 1/1] package/gloox: fix build on musl Fabrice Fontaine
2020-06-05 22:04 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox