Skip to contentSkip to conversation

package/mdio-tools: needs fork

PATCH Applied Fabrice Fontaine 3 participants 3 messages Nov 12, 2022 – Nov 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mdio-tools: needs fork

Fix the following build failure raised since the addition of the package in commit 8fdf8731e727dc5c2d4080d7a56e1d71dc25e533:

mdio.c: In function 'mdio_modprobe':
mdio.c:738:15: error: implicit declaration of function 'fork' [-Werror=implicit-function-declaration]
738 | pid = fork();
| ^~~~

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

---
 package/mdio-tools/Config.in | 3 +++
 1 file changed, 3 insertions(+)
package/mdio-tools/Config.in +3 -0
index f24c1a6974..237f4454cc 100644
@@ -1,12 +1,15 @@
 comment "mdio-tools needs a Linux kernel to be built"
+	depends on BR2_USE_MMU
 	depends on !BR2_LINUX_KERNEL
 
 comment "mdio-tools needs a toolchain w/ headers >= 5.1"
+	depends on BR2_USE_MMU
 	depends on BR2_LINUX_KERNEL
 	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
 
 config BR2_PACKAGE_MDIO_TOOLS
 	bool "mdio-tools"
+	depends on BR2_USE_MMU # fork()
 	depends on BR2_LINUX_KERNEL
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
 	select BR2_PACKAGE_LIBMNL
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Fabrice Fontaine

Fabrice, All,

On 2022-11-12 22:20 +0100, Fabrice Fontaine spake thusly:

Quoted 8 lines

Fix the following build failure raised since the addition of the package in commit 8fdf8731e727dc5c2d4080d7a56e1d71dc25e533:

mdio.c: In function 'mdio_modprobe':
mdio.c:738:15: error: implicit declaration of function 'fork' [-Werror=implicit-function-declaration]
738 | pid = fork();
| ^~~~

Quoted 4 lines

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

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 31 lines
---
 package/mdio-tools/Config.in | 3 +++
 1 file changed, 3 insertions(+)
package/mdio-tools/Config.in +3 -0
index f24c1a6974..237f4454cc 100644
@@ -1,12 +1,15 @@
 comment "mdio-tools needs a Linux kernel to be built"
+	depends on BR2_USE_MMU
 	depends on !BR2_LINUX_KERNEL
 
 comment "mdio-tools needs a toolchain w/ headers >= 5.1"
+	depends on BR2_USE_MMU
 	depends on BR2_LINUX_KERNEL
 	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
 
 config BR2_PACKAGE_MDIO_TOOLS
 	bool "mdio-tools"
+	depends on BR2_USE_MMU # fork()
 	depends on BR2_LINUX_KERNEL
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
 	select BR2_PACKAGE_LIBMNL
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot