Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: builds fail w/undef ref in rump tests



On Sun, 20 Aug 2023, Taylor R Campbell wrote:

> > Date: Sun, 20 Aug 2023 09:45:20 -0500 (CDT)
> > From: "John D. Baker" <jdbaker%consolidated.net@localhost>
> > 
> > kernspace/workqueue.o:
> >      $NetBSD: workqueue.c,v 1.10 2023/08/10 22:20:20 riastradh Exp $
> > 
> > kernspace/libkernspace.a:
> >      $NetBSD: sendsig.c,v 1.2 2020/05/23 23:42:44 ad Exp $
> >      $NetBSD: workqueue.c,v 1.10 2023/08/10 22:20:20 riastradh Exp $
> 
> Very weird!  Can you share the output of these?
> 
> cd $OBJDIR/tests/rump
> nm -g --defined-only kernspace/workqueue.o

$ nm -g --defined-only kernspace/workqueue.o
00000170 T rumptest_workqueue1
000002b8 T rumptest_workqueue_wait
00000488 T rumptest_workqueue_wait_pause

> nm -g --undefined-only rumpkern/t_workqueue.o

$ nm -g --undefined-only rumpkern/t_workqueue.o
         U __errno
         U atf_is_error
         U atf_no_error
         U atf_no_memory_error
         U atf_tc_fail
         U atf_tc_fail_requirement
         U atf_tc_init_pack
         U atf_tc_set_md_var
         U atf_tp_add_tc
         U atf_tp_get_config
         U atf_tp_main
         U atf_utils_free_charpp
         U rump_init
         U rump_schedule
         U rump_unschedule
         U rumptest_workqueue1
         U rumptest_workqueue_wait
         U rumptest_workqueue_wait_pause
         U signal
         U strerror

> kernspace/workqueue.c is supposed to define
> rumptest_workqueue_wait_pause as of revision 1.9 (and it should stay
> defined in 1.10).
> 
> Unless maybe you have some other libkernspace somewhere else that is
> somehow getting pulled in instead?

within the example OBJDIR (mip64el), the only "*kernspace*" are:

./tests/rump/kernspace/libkernspace.a
(dated 19 Aug 2023)

./tests/rump/kernspace/libkernspace.so.0.0.debug
./tests/rump/kernspace/libkernspace.so.0.0.link
./tests/rump/kernspace/libkernspace.so.0.0
(dated 31 May 2020)

Maybe it's trying to link against one of the "*.so.0.0"?  But they should
be the same date as the "*.a" or not exist if I ran a non-update build.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index