Xilinx-CNS / solarcapture

SolarCapture network packet capture suite
Other
15 stars 8 forks source link

undefined reference to `subunit_test_start' #2

Closed MichaelFromSH closed 8 months ago

MichaelFromSH commented 1 year ago

/usr/bin/ld: /lib/x86_64-linux-gnu/libcheck.a(check_log.o): in function subunit_lfun': (.text+0x61f): undefined reference tosubunit_test_start' /usr/bin/ld: (.text+0x637): undefined reference to subunit_test_pass' /usr/bin/ld: (.text+0x64f): undefined reference tosubunit_test_error' /usr/bin/ld: (.text+0x667): undefined reference to `subunit_test_fail'

My OS is ubuntu 22.04,How to fix it?

abrunnin-xilinx commented 1 year ago

Are you building unit tests?

One suspicion - from Ubuntu bug reports, it looks like they changed linker options (again) and you may need to add -lsubunit (Probably to the line "LIBCHECK := -lcheck" in the Makefile.

abrunnin-xilinx commented 1 year ago

Oh, it might be simpler than that - do you have the 'check' package installed? "sudo apt-get install check" on my test system got me past that error. Although I'm now hitting a completely different error. Support for other distributions than RHEL8 is a work in progress at this point.

abrunnin-xilinx commented 9 months ago

Following on from this - there is definitely a problem with building on Ubuntu. The issue is twofold: First, it tries to use auto configure for libpcap-sfsfc prior to having an libsolarcapture1.so which is a dependency. Not sure why the makefile is doing that, but it should be fixable. But even if you do provide that, the configure command still fails, saying it's unable to link to the symbols it is checking for. Currently, I don't know why that is.

abrunnin-xilinx commented 8 months ago

Work in progress to fix this up, and to add a couple more tests to the number run by "make run"

abrunnin-xilinx commented 8 months ago

Should now be able to fully compile on Ubuntu.