Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Mac build fails with link problem #309

Closed
moruoxian opened this issue Dec 15, 2020 · 3 comments
Closed

Mac build fails with link problem #309

moruoxian opened this issue Dec 15, 2020 · 3 comments

Comments

@moruoxian
Copy link
Contributor

No description provided.

@moruoxian moruoxian changed the title mac Mac build fails with link problem Dec 15, 2020
@moruoxian
Copy link
Contributor Author

i build with the readme file in Mac, but I get this problem

Undefined symbols for architecture x86_64:
"_cache_add", referenced from:
_download_write in baidupcs-shell.o
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_flush", referenced from:
_do_download in baidupcs-shell.o
_download_write in baidupcs-shell.o
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_init", referenced from:
_init_download_state in baidupcs-shell.o
"_cache_reset", referenced from:
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_uninit", referenced from:
_uninit_download_state in baidupcs-shell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [baidupcs] Error 1

@moruoxian
Copy link
Contributor Author

i build with the readme file in Mac, but I get this problem

Undefined symbols for architecture x86_64:
"_cache_add", referenced from:
_download_write in baidupcs-shell.o
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_flush", referenced from:
_do_download in baidupcs-shell.o
_download_write in baidupcs-shell.o
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_init", referenced from:
_init_download_state in baidupcs-shell.o
"_cache_reset", referenced from:
_download_write_for_multy_thread in baidupcs-shell.o
"_cache_uninit", referenced from:
_uninit_download_state in baidupcs-shell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [baidupcs] Error 1

I solve this with autoreconf
brew install install autoconf automake libtool

and autoconf && make clean && make -j && make install solve .

@moruoxian
Copy link
Contributor Author

by the way utf8.c lost the <wchar.h> in macOS .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant