Skip to contentSkip to conversation

tnftp: Disable incompatible-pointer-types warning as error

PATCH In review [email protected] 2 participants 3 messages Jun 13, 2024 – Jun 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tnftp: Disable incompatible-pointer-types warning as error

From: Changqing Li <[email protected]>

Fix lib32-tnftp do_compile failure with gcc-14:
../../tnftp-20230507/libedit/terminal.c:597:56: error: passing argument 2 of 'terminal_overwrite' from incompatible pointer type [-Wincompatible-pointer-types]

  597 |                                 terminal_overwrite(el, &el->el_display[
      |                                                        ^~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        wint_t * {aka unsigned int *}
  598 |                                     el->el_cursor.v][el->el_cursor.h],
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../tnftp-20230507/libedit/refresh.c:114:38: error: initialization of 'wchar_t *' {aka 'long int *'} from incompatible pointer type 'wint_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
114 | wchar_t *firstline = el->el_vdisplay[0];

---
 meta-networking/recipes-support/tnftp/tnftp_20230507.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/tnftp/tnftp_20230507.bb +3 -0
index bdd9759f2..da4466794 100644
@@ -36,3 +36,6 @@ PACKAGECONFIG ?= "openssl \
 "
 PACKAGECONFIG[openssl] = "--enable-ssl, --disable-ssl --with-ssl=no, openssl"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
+#fix lib32-tnftp do_compile error with gcc-14
+CFLAGS += "-Wno-error=incompatible-pointer-types"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Changqing Li via lists.openembedded.org

From: Changqing Li <[email protected]>

Fix lib32-tnftp do_compile failure with gcc-14:
../../tnftp-20230507/libedit/terminal.c:597:56: error: passing argument 2 of 'terminal_overwrite' from incompatible pointer type [-Wincompatible-pointer-types]

Quoted 9 lines
  597 |                                 terminal_overwrite(el, &el->el_display[
      |                                                        ^~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        wint_t * {aka unsigned int *}
  598 |                                     el->el_cursor.v][el->el_cursor.h],
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../tnftp-20230507/libedit/refresh.c:114:38: error: initialization of 'wchar_t *' {aka 'long int *'} from incompatible pointer type 'wint_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
114 | wchar_t *firstline = el->el_vdisplay[0];

there is a new release available
https://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftpd-20231001.tar.gz
it might be good to upgrade it while here, and check if the issue is fixed upstream or not.
secondly, it would be good to see if we can fix the problem or explain it what's going on.

Quoted 28 lines
---
 meta-networking/recipes-support/tnftp/tnftp_20230507.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/tnftp/tnftp_20230507.bb +3 -1
index bdd9759f2..da4466794 100644
@@ -36,3 +36,6 @@ PACKAGECONFIG ?= "openssl \
 "
 PACKAGECONFIG[openssl] = "--enable-ssl, --disable-ssl --with-ssl=no, openssl"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
+#fix lib32-tnftp do_compile error with gcc-14
+CFLAGS += "-Wno-error=incompatible-pointer-types"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110889): https://lists.openembedded.org/g/openembedded-devel/message/110889
Mute This Topic: https://lists.openembedded.org/mt/106648104/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 19 lines · Khem Raj via lists.openembedded.org

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 4 lines · Changqing Li via lists.openembedded.org

From: Changqing Li<[email protected]>

Fix lib32-tnftp do_compile failure with gcc-14:
../../tnftp-20230507/libedit/terminal.c:597:56: error: passing argument 2 of 'terminal_overwrite' from incompatible pointer type [-Wincompatible-pointer-types]

Quoted 9 lines
   597 |                                 terminal_overwrite(el, &el->el_display[
       |                                                        ^~~~~~~~~~~~~~~~
       |                                                        |
       |                                                        wint_t * {aka unsigned int *}
   598 |                                     el->el_cursor.v][el->el_cursor.h],
       |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

../../tnftp-20230507/libedit/refresh.c:114:38: error: initialization of 'wchar_t *' {aka 'long int *'} from incompatible pointer type 'wint_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
114 | wchar_t *firstline = el->el_vdisplay[0];

Quoted 2 lines

there is a new release available
https://ftp.netbsd.org/pub/NetBSD/misc/tnftp/tnftpd-20231001.tar.gz

This new release is for ftp daemon,  and this recipe is for ftp client,  so no new release

avaiable,  but I will check if we can fix the the problem or check if there is fix upstream.

Thanks.

//Changqing

Quoted 35 lines

it might be good to upgrade it while here, and check if the issue is fixed upstream or not.
secondly, it would be good to see if we can fix the problem or explain it what's going on.

Quoted 31 lines
---
  meta-networking/recipes-support/tnftp/tnftp_20230507.bb | 3 +++
  1 file changed, 3 insertions(+)
meta-networking/recipes-support/tnftp/tnftp_20230507.bb +3 -1
index bdd9759f2..da4466794 100644
@@ -36,3 +36,6 @@ PACKAGECONFIG ?= "openssl \
  "
  PACKAGECONFIG[openssl] = "--enable-ssl, --disable-ssl --with-ssl=no, openssl"
  PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
+#fix lib32-tnftp do_compile error with gcc-14
+CFLAGS += "-Wno-error=incompatible-pointer-types"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110895):https://lists.openembedded.org/g/openembedded-devel/message/110895 Mute This Topic:https://lists.openembedded.org/mt/106648104/3616873
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-