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

ld: error: undefined symbol: ZSTD_XXXXXXXX with FreeBSD 13.0 #127

Closed
aburie opened this issue Apr 15, 2021 · 1 comment
Closed

ld: error: undefined symbol: ZSTD_XXXXXXXX with FreeBSD 13.0 #127

aburie opened this issue Apr 15, 2021 · 1 comment

Comments

@aburie
Copy link

aburie commented Apr 15, 2021

Hello

It looks like make BASE=/cdrom/usr/freebsd-dist doesn't work with FreeBSD 13.0

cc -O2 -pipe -g -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/11.0.1/include -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 -lmd
ld: error: undefined symbol: ZSTD_DStreamOutSize

referenced by archive_read_support_filter_zstd.c:170 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:170)
archive_read_support_filter_zstd.o:(zstd_bidder_init) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_createDStream

referenced by archive_read_support_filter_zstd.c:179 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:179)
archive_read_support_filter_zstd.o:(zstd_bidder_init) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_freeDStream

referenced by archive_read_support_filter_zstd.c:184 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:184)
archive_read_support_filter_zstd.o:(zstd_bidder_init) in archive /usr/lib/libarchive.a
referenced by archive_read_support_filter_zstd.c:289 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:289)
archive_read_support_filter_zstd.o:(zstd_filter_close) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_initDStream

referenced by archive_read_support_filter_zstd.c:221 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:221)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_isError

referenced by archive_read_support_filter_zstd.c:222 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:222)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a
referenced by archive_read_support_filter_zstd.c:254 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:254)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_decompressStream

referenced by archive_read_support_filter_zstd.c:252 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:252)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a

ld: error: undefined symbol: ZSTD_getErrorName

referenced by archive_read_support_filter_zstd.c:258 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:258)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a
referenced by archive_read_support_filter_zstd.c:226 (/usr/src/contrib/libarchive/libarchive/archive_read_support_filter_zstd.c:226)
archive_read_support_filter_zstd.o:(zstd_filter_read) in archive /usr/lib/libarchive.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1`

Maybe something to change in tools/roothack/Makefile ?

Regards

@Catwoolfii
Copy link

Already fixed in master branch

@mmatuska mmatuska closed this as completed May 2, 2021
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

3 participants