From 63ba65e7467f0431fe5bdc99af20f80b11a53eba Mon Sep 17 00:00:00 2001 From: "Jonas K." Date: Thu, 19 Dec 2024 15:45:06 +0100 Subject: [PATCH 1/2] Add missing external declaration of __add_dmpv_chglst_el_sel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following error, I got while compilation: cvmacros.h:400:5: error: implicit declaration of function ‘__add_dmpv_chglst_el_sel’; did you mean ‘__add_dp_chglst_el’? [-Wimplicit-function-declaration] __add_dmpv_chglst_el_sel(np, i1); Signed-off-by: Jonas K. --- src/cvmacros.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cvmacros.h b/src/cvmacros.h index fc8b708..15eef91 100644 --- a/src/cvmacros.h +++ b/src/cvmacros.h @@ -387,6 +387,7 @@ extern void __record_sel_nchg(struct net_t *, int32, int32); /* but one record called, it must be off for dctrl processing - not needed */ /* DBG ??? release add --- */ /* AIV 11/29/10 - need to check for toggle coverage */ +extern void __add_dmpv_chglst_el_sel(struct net_t *, int32); #define record_sel_nchg_(np, i1, i2) \ do { \ __lhs_changed = FALSE; \ From 3152982ad2736493f1a926904f34649981f0e1ca Mon Sep 17 00:00:00 2001 From: "Jonas K." Date: Thu, 19 Dec 2024 15:50:36 +0100 Subject: [PATCH 2/2] Move _GNU_SOURCE hint for clone() before header includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _GNU_SOURCE needs to be defined before unistd.h and sched.h are inclued. Otherwise gcc can't find clone() and will throw the following error: v_asmlnk.c:10590:8: error: implicit declaration of function ‘clone’; did you mean ‘close’? [-Wimplicit-function-declaration] pid = clone(popen_child_process_func, stack_aligned, ... Signed-off-by: Jonas K. --- src/v_asmlnk.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/v_asmlnk.c b/src/v_asmlnk.c index 890b8db..84fcadc 100644 --- a/src/v_asmlnk.c +++ b/src/v_asmlnk.c @@ -168,6 +168,11 @@ OF SUCH DAMAGE. * compiler asm gen routines - routines for post lowering asm gen here */ +/* AIV 03/28/12 - this is needed for some systems for clone call */ +// #ifndef _GNU_SOURCE +// #define _GNU_SOURCE +// #endif + #include #include #include @@ -189,12 +194,6 @@ OF SUCH DAMAGE. #include #endif -/* AIV 03/28/12 - this is needed for some systems for clone call */ -// #ifndef _GNU_SOURCE -// ##define _GNU_SOURCE -// #endif - - #ifdef __DBMALLOC__ #include "../malloc.h" #endif