Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Arch linux build failed #47

Closed
ne-vlezay80 opened this issue Jul 2, 2019 · 5 comments
Closed

Arch linux build failed #47

ne-vlezay80 opened this issue Jul 2, 2019 · 5 comments

Comments

@ne-vlezay80
Copy link

ne-vlezay80 commented Jul 2, 2019

' | ^~~~~~~~~~~~~~~~~~~~~~
CC src/uv_tcp.lo
CC src/uv_tcp_connect.lo
CC src/uv_tcp_listen.lo
CC src/uv_truncate.lo
CC src/fixture.lo
src/fixture.c: In function 'raft_fixture_step':
src/fixture.c:1390:39: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
1390 | (tick_time == completion_time && i <= j)) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
src/fixture.c:1390:39: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
CCLD libraft.la
CCLD example-server
/usr/bin/ld: example/server-server.o: in function sigintCloseCb': /home/user/go/deps/raft/example/server.c:124: undefined reference to uv_timer_stop'
/usr/bin/ld: example/server-server.o: in function sigintCb': /home/user/go/deps/raft/example/server.c:134: undefined reference to uv_signal_stop'
/usr/bin/ld: example/server-server.o: in function serverClose': /home/user/go/deps/raft/example/server.c:256: undefined reference to uv_loop_close'
/usr/bin/ld: example/server-server.o: in function sigintCloseCb': /home/user/go/deps/raft/example/server.c:125: undefined reference to uv_close'
/usr/bin/ld: example/server-server.o: in function sigintCb': /home/user/go/deps/raft/example/server.c:135: undefined reference to uv_close'
/usr/bin/ld: example/server-server.o: in function serverInit': /home/user/go/deps/raft/example/server.c:154: undefined reference to uv_loop_init'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:161: undefined reference to uv_signal_init' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:245: undefined reference to uv_loop_close'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:168: undefined reference to uv_timer_init' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:241: undefined reference to uv_close'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:243: undefined reference to uv_close' /usr/bin/ld: example/server-server.o: in function serverStart':
/home/user/go/deps/raft/example/server.c:346: undefined reference to uv_close' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:347: undefined reference to uv_close'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:348: undefined reference to uv_run' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:322: undefined reference to uv_signal_start'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:326: undefined reference to uv_timer_start' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:332: undefined reference to uv_run'
/usr/bin/ld: /home/user/go/deps/raft/example/server.c:340: undefined reference to uv_timer_stop' /usr/bin/ld: /home/user/go/deps/raft/example/server.c:342: undefined reference to uv_signal_stop'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_is_closing' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_read_start'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_write' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_ip4_addr'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_poll_init' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_tcp_connect'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_strerror' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_poll_start'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_now' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_queue_work'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_tcp_init' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_tcp_bind'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_listen' /usr/bin/ld: ./.libs/libraft.so: undefined reference to uv_read_stop'
/usr/bin/ld: ./.libs/libraft.so: undefined reference to `uv_accept''

@freeekanayaka
Copy link
Contributor

Is libuv installed on your system?

@ne-vlezay80
Copy link
Author

extra/libuv 1.30.0-1

@freeekanayaka
Copy link
Contributor

What does pkg-config --cflags --libs libuv say? What does ldd ./.libs/libraft.so say?

@grawlinson
Copy link

I don't run into the issue using the raft package from the AUR.
Unless @ne-vlezay80 can provide more information, I would consider closing this issue.

@freeekanayaka
Copy link
Contributor

Closing this for now, as we didn't hear back from @ne-vlezay80. Feel free to re-open.

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

3 participants