package/gloox: fix build on musl
PATCH 1/1 package/gloox: fix build on musl
Fixes:
- http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277
Signed-off-by Fabrice Fontaine <[email protected]>
--- ...src-connectiontcpserver-cpp-fix-musl.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch
package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch new file +25 -0
@@ -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 <[email protected]> +[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>
Signature · 1 line
2.26.2
Yann E. MORIN
AppliedPATCH 1/1 package/gloox: fix build on musl
Fabrice, All,
On 2020-06-05 23:40 +0200, Fabrice Fontaine spake thusly:
Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/a61a91bb6e1156eff5fb756f9dccfc2bb6c0f277Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 43 lines
--- ...src-connectiontcpserver-cpp-fix-musl.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 package/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patchpackage/gloox/0001-src-connectiontcpserver-cpp-fix-musl.patch new file +25
-0@@ -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 <[email protected]> +[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>Signature · 6 lines
2.26.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | 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. | '------------------------------^-------^------------------^--------------------'