Skip to contentSkip to conversation

tk: Fix compile error

PATCH In review Alper Ak 3 participants 5 messages Jun 23, 2025 – Jun 24, 2025

lore
Share & tools
lore

Alper Ak

author
#0 lore raw

PATCH 1/1 tk: Fix compile error

tk9.0.1/unix/../generic/tk.h:19:10: fatal error: tcl.h: No such file or directory

|    19 | #include <tcl.h>
|       |          ^~~~~~~
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +2 -0
index 504b40927e..230a244a6b 100644
@@ -30,6 +30,8 @@ S = "${UNPACKDIR}/${BPN}${PV}"
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
+CFLAGS += "-I${STAGING_INCDIR}/tcl9.0.1/generic"
+
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
 
 inherit autotools features_check pkgconfig
Signature · 1 line
2.43.0
#1 lore raw

Could the variable PV not be used in the directory name to replace the hard code version number?

Br

Quoted 35 lines · Alper Ak via lists.openembedded.org

tk9.0.1/unix/../generic/tk.h:19:10: fatal error: tcl.h: No such file or directory

|    19 | #include <tcl.h>
|       |          ^~~~~~~
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +2 -1
index 504b40927e..230a244a6b 100644
@@ -30,6 +30,8 @@ S = "${UNPACKDIR}/${BPN}${PV}"
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
+CFLAGS += "-I${STAGING_INCDIR}/tcl9.0.1/generic"
+
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
 
 inherit autotools features_check pkgconfig
--

2.43.0

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

Signature · 2 lines
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel
author
#2 lore raw

I thought about using PV, but if tcl and tk can be upgraded independently (tcl recipe is in poky, tk is in meta-oe), this may cause failures if tcl is upgraded without upgrading tk. That's why I preferred to hard code the version.

If there is a better way to handle this, I’m open to suggestions.

jan vermaete <[email protected]>, 23 Haz 2025 Pzt, 22:45 tarihinde şunu yazdı:

Quoted 48 lines

Could the variable PV not be used in the directory name to replace the hard code version number?

Br

Quoted 27 lines · Alper Ak via lists.openembedded.org

tk9.0.1/unix/../generic/tk.h:19:10: fatal error: tcl.h: No such file or directory

|    19 | #include <tcl.h>
|       |          ^~~~~~~
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +2 -1
index 504b40927e..230a244a6b 100644
@@ -30,6 +30,8 @@ S = "${UNPACKDIR}/${BPN}${PV}"
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
+CFLAGS += "-I${STAGING_INCDIR}/tcl9.0.1/generic"
+
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
 
 inherit autotools features_check pkgconfig
--

2.43.0

Quoted 8 lines

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

--
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel

#3 lore raw

Good point. I didn’t touch about the split of TCL and TK.

Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel

Quoted 62 lines · Alper Ak

I thought about using PV, but if tcl and tk can be upgraded independently (tcl recipe is in poky, tk is in meta-oe), this may cause failures if tcl is upgraded without upgrading tk. That's why I preferred to hard code the version.

If there is a better way to handle this, I’m open to suggestions.

jan vermaete <[email protected]>, 23 Haz 2025 Pzt, 22:45 tarihinde şunu yazdı:

Quoted 10 lines

Could the variable PV not be used in the directory name to replace the hard code version number?

Br

Quoted 2 lines · Alper Ak via lists.openembedded.org

tk9.0.1/unix/../generic/tk.h:19:10: fatal error: tcl.h: No such file

or directory

Quoted 9 lines

Review

Quoted 9 lines
|    19 | #include <tcl.h>
|       |          ^~~~~~~
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb

Quoted 11 lines
Quoted 11 lines

index 504b40927e..230a244a6b 100644

meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +2 -0
@@ -30,6 +30,8 @@ S = "${UNPACKDIR}/${BPN}${PV}"
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
+CFLAGS += "-I${STAGING_INCDIR}/tcl9.0.1/generic"
+
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
 
Quoted 8 lines
Quoted 8 lines
meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +0 -1
 inherit autotools features_check pkgconfig
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#118088):

https://lists.openembedded.org/g/openembedded-devel/message/118088

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/113794949/2167232
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 7 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

--
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel

#4 lore raw
In reply to Alper Ak

Hello,

Quoted 7 lines · Alper Ak via lists.openembedded.org

I thought about using PV, but if tcl and tk can be upgraded independently (tcl recipe is in poky, tk is in meta-oe), this may cause failures if tcl is upgraded without upgrading tk. That's why I preferred to hard code the version.

If there is a better way to handle this, I’m open to suggestions.

I see that the tk recipe uses the pkgconfig class, theoretically, that's the way for tcl to tell tk where to find its headers.

Regards,

Quoted 58 lines

jan vermaete <[email protected]>, 23 Haz 2025 Pzt, 22:45 tarihinde şunu yazdı:

Quoted 10 lines

Could the variable PV not be used in the directory name to replace the hard code version number?

Br

Quoted 2 lines · Alper Ak via lists.openembedded.org

tk9.0.1/unix/../generic/tk.h:19:10: fatal error: tcl.h: No such file

or directory

Quoted 9 lines

Review

Quoted 9 lines
|    19 | #include <tcl.h>
|       |          ^~~~~~~
---
 meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb

Quoted 11 lines
Quoted 11 lines

index 504b40927e..230a244a6b 100644

meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +2 -0
@@ -30,6 +30,8 @@ S = "${UNPACKDIR}/${BPN}${PV}"
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
+CFLAGS += "-I${STAGING_INCDIR}/tcl9.0.1/generic"
+
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
 
Quoted 12 lines
Quoted 7 lines
meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb +0 -1
 inherit autotools features_check pkgconfig
--

2.43.0

--
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel

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

Signature · 2 lines
Yoann Congal
Smile ECS