($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: Martin Jansa <martin.jansa@gmail.com>
Subject: [meta-security][PATCH 1/2] {tcp,udp}-smack-test: fix implicit-function-declaration issues fatal with gcc-14
Date: Thu, 23 May 2024 07:52:39 +0200	[thread overview]
Message-ID: <20240523055240.593564-1-martin.jansa@gmail.com> (raw)

tcp-smack-test:
http://errors.yoctoproject.org/Errors/Details/766925/
  tcp_client.c:55:16: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]

udp-client-tests:
http://errors.yoctoproject.org/Errors/Details/766927/
  udp_client.c:41:16: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  udp_client.c:51:12: error: implicit declaration of function 'fsetxattr' [-Wimplicit-function-declaration]
  udp_client.c:66:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 recipes-mac/smack/tcp-smack-test/tcp_client.c | 1 +
 recipes-mac/smack/udp-smack-test/udp_client.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/recipes-mac/smack/tcp-smack-test/tcp_client.c b/recipes-mac/smack/tcp-smack-test/tcp_client.c
index 6c0a474..b82b575 100644
--- a/recipes-mac/smack/tcp-smack-test/tcp_client.c
+++ b/recipes-mac/smack/tcp-smack-test/tcp_client.c
@@ -18,6 +18,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <errno.h>
diff --git a/recipes-mac/smack/udp-smack-test/udp_client.c b/recipes-mac/smack/udp-smack-test/udp_client.c
index 23f3e00..976cbdc 100644
--- a/recipes-mac/smack/udp-smack-test/udp_client.c
+++ b/recipes-mac/smack/udp-smack-test/udp_client.c
@@ -18,6 +18,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 #include <sys/socket.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <netinet/in.h>
 #include <netdb.h>
-- 
2.45.1



             reply	other threads:[~2024-05-23  5:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-23  5:52 Martin Jansa [this message]
2024-05-23  5:52 ` [meta-security][PATCH 2/2] mmap-smack-test, smack-test, tcp-smack-test, udp-smack-test: don't use S = ${WORKDIR} Martin Jansa
     [not found] ` <17D20853941E7BA8.4692@lists.yoctoproject.org>
2024-06-10 11:01   ` [yocto] " Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240523055240.593564-1-martin.jansa@gmail.com \
    --to=martin.jansa@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).