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

Comilation fails on MSys64 #839

Open
velteyn opened this issue Jun 3, 2022 · 1 comment
Open

Comilation fails on MSys64 #839

velteyn opened this issue Jun 3, 2022 · 1 comment

Comments

@velteyn
Copy link

velteyn commented Jun 3, 2022

Hello, my attempt to compile the project in MSYS64 was unsuccessful

I installed all the dependencies but I obtain this:

/c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:559: undefined reference to json_array'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:561: undefined reference to json_string' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:565: undefined reference to json_array_append_new'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: .libs/libblkmaker_jansson_0.1_la-blkmaker_jansson.o: in function json_decref': /usr/include/jansson.h:133: undefined reference to json_delete'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /usr/include/jansson.h:133: undefined reference to json_delete' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: .libs/libblkmaker_jansson_0.1_la-blkmaker_jansson.o: in function _blkmk_submit_jansson':
/c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:567: undefined reference to json_object' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:577: undefined reference to json_array_append_new'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:580: undefined reference to json_object' /usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/edobar/OneDrive/work-dawork/pooler-cpuminer-2.4.5-win32/bfgminer/libblkmaker/blkmaker_jansson.c:582: undefined reference to json_integer'
/u`

@velteyn
Copy link
Author

velteyn commented Jun 3, 2022

I forgot to write another interesting clue:

*** Warning: Trying to link with static lib archive /usr/lib/libjansson.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.

I can I have the shared library ?
When I do:
$ ls /usr/lib/libja*
I obtain :
/usr/lib/libjansson.a /usr/lib/libjansson.dll.a /usr/lib/libjansson.la

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

1 participant