Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined Symbol #111

Open
I-Wonder-Why opened this issue Jul 13, 2020 · 1 comment
Open

Undefined Symbol #111

I-Wonder-Why opened this issue Jul 13, 2020 · 1 comment

Comments

@I-Wonder-Why
Copy link

I-Wonder-Why commented Jul 13, 2020

I have compiled the OS and Kernel from source successfully, but I keep getting this error below when running " make CUSTOM=1".

`
cc -O2 -pipe -DHARDENEDBSD -g -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -static -o roothack.full roothack.o -larchive -lbz2 -lz -llzma -lcrypto -lbsdxml

**ld: error: undefined symbol: _libmd_SHA256_Init

referenced by check.h:143 (/src/12-stable/contrib/xz/src/liblzma/check/check.h:143)
check.o:(lzma_check_init) in archive /usr/lib/liblzma.a

ld: error: undefined symbol: _libmd_SHA256_Update

referenced by check.h:160 (/src/12-stable/contrib/xz/src/liblzma/check/check.h:160)
check.o:(lzma_check_update) in archive /usr/lib/liblzma.a

ld: error: undefined symbol: _libmd_SHA256_Final

referenced by check.h:167 (/src/12-stable/contrib/xz/src/liblzma/check/check.h:167)
check.o:(lzma_check_finish) in archive /usr/lib/liblzma.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[1]: stopped in /usr/mfsbsd/tools/roothack
*** Error code 1**

Stop.
make: stopped in /usr/mfsbsd
`
Any advice would be appreciated.

@tomhukins
Copy link
Contributor

I've encountered this problem too. It happens on -CURRENT as of r362452 and -STABLE as of r362915 and so will happen in the upcoming 12.2 and 13.0 releases.

The way to work around it seems to be to add -lmd to the list of libraries in LDADD= in mfsBSD's tools/roothack/Makefile.

tomhukins added a commit to tomhukins/mfsbsd that referenced this issue Sep 14, 2020
CURRENT as of r362452 and STABLE as of r36291 need to link against
libmd, as will the upcoming 12.2 and 13.0 releases.

This fixes the issue raised in mmatuska#111.
arin-mirror pushed a commit to arineng/mfsbsd that referenced this issue Feb 22, 2021
CURRENT as of r362452 and STABLE as of r36291 need to link against
libmd, as will the upcoming 12.2 and 13.0 releases.

This fixes the issue raised in mmatuska#111.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants