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

can't make for ubuntu 14.04 #3

Closed
fslove opened this issue Dec 29, 2017 · 14 comments
Closed

can't make for ubuntu 14.04 #3

fslove opened this issue Dec 29, 2017 · 14 comments

Comments

@fslove
Copy link

fslove commented Dec 29, 2017

mkdir -p ./release && gcc -std=gnu99 -Wall -lrt -lpthread -O3 -pedantic src/map.c src/util.c src/commands.c src/persistence.c src/networking.c src/serializer.c src/hashing.h src/cluster.c src/queue.c src/event.c src/list.c src/memento.c -o ./release/memento
/tmp/ccCxgVrQ.o: In function main': memento.c:(.text.startup+0x30d): undefined reference to pthread_create'
/tmp/ccN8pVI2.o: In function async_write': persistence.c:(.text+0x88): undefined reference to aio_write'
persistence.c:(.text+0x9c): undefined reference to aio_error' /tmp/ccjBougi.o: In function start_loop':
networking.c:(.text+0x6ec): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make: *** [memento] Error 1

@codepr
Copy link
Owner

codepr commented Dec 29, 2017

Does running the following command gcc -std=gnu99 -Wall -lrt -pthread -O3 -pedantic src/map.c src/util.c src/commands.c src/persistence.c src/networking.c src/serializer.c src/hashing.h src/cluster.c src/queue.c src/event.c src/list.c src/memento.c -o ./release/memento work? Note that it's -pthread instead of -lpthread

@fslove
Copy link
Author

fslove commented Dec 29, 2017

Thank your reply.
persistence.c:(.text+0x99): undefined reference to aio_write' persistence.c:(.text+0xac): undefined reference to aio_error'
collect2: error: ld returned 1 exit status

@fslove
Copy link
Author

fslove commented Dec 29, 2017

image

@fslove
Copy link
Author

fslove commented Dec 29, 2017

image

@codepr
Copy link
Owner

codepr commented Dec 29, 2017

Isn't it libaio-dev on Ubuntu?

@fslove
Copy link
Author

fslove commented Dec 29, 2017

need remove libaio-dev? i have install libaio-dev.

@fslove
Copy link
Author

fslove commented Dec 29, 2017

image

@fslove
Copy link
Author

fslove commented Dec 29, 2017

I would like to thank you for your time and patience

@fslove
Copy link
Author

fslove commented Dec 29, 2017

I try install a new Fedora 27 vm , make done ,copy to Ubuntu .. is work!
image
Thank your help

@fslove
Copy link
Author

fslove commented Dec 29, 2017

getp
Can set a key Expired?

@fslove
Copy link
Author

fslove commented Dec 29, 2017

Great work,
Waiting key expired function

@codepr
Copy link
Owner

codepr commented Dec 29, 2017

You're welcome! Thank you for signaling the issue. By the way, you can easily skip persistence.c in compilation by removing it from Makefile. Currently it is an unused module.

@codepr
Copy link
Owner

codepr commented Dec 29, 2017

Yeah, expire time was a feature I previously added but after a refactoring I decided to cut down some commands in order to achieve something more clear and working. I'll re-implement some of those features eventually, including key expiration

@fslove
Copy link
Author

fslove commented Dec 29, 2017

Wow ...
Perfect performance!
Only wait key expired function,
Remove redis waiting your!

@codepr codepr closed this as completed May 13, 2018
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