Comments (2)
Applying this change to CMakeLists.txt seems to fix the issue:
![Screenshot 2023-12-30 at 19 50 23](https://private-user-images.githubusercontent.com/3893573/293477938-bb6533cd-fa32-4364-8f59-17c70b357bf9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkyODE2OTgsIm5iZiI6MTcwOTI4MTM5OCwicGF0aCI6Ii8zODkzNTczLzI5MzQ3NzkzOC1iYjY1MzNjZC1mYTMyLTQzNjQtOGY1OS0xN2M3MGIzNTdiZjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMDFUMDgyMzE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmFhYTAxOTE1Njg5OWI0NzZmMTg4OTdmNjU0ZjdkMzZjZmZiZTNiMDljOGQ3YmE0M2ZmMGJjYzY2NDI2MGVkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.p10I2ir7dwvwp2XVDfQCbqvj6f1TFz5LsqyHtd4D1V4)
Let's figure out why this builds locally but not on our build machines - maybe different C++ distributions include different libs by default?
from build-your-own-redis.
The CMakeLists change fixed the issue! As for why the issue arose in the first place, when I try to compile the Server file using g++(without the use of ./spawn_redis_server.sh) I also get the error of undefined reference to pthread_create. I have to add the flag -pthread in order to actually compile the program. Maybe this has something to do with it? This seems to correspond with the fix in the CMakeLists file which also has to link the pthread library.
from build-your-own-redis.
Related Issues (13)
- RDB Persistence - handle "Stage 1 doesn't create file" confusion HOT 2
- Change all logs to use lowercase commands instead of uppercase
- Errors with Replication stage 3 HOT 1
- Replication stage 3 - listen tcp :6379: bind: address already in use HOT 4
- Improve anti-cheat message HOT 2
- Improve anti-cheat stage HOT 4
- panic in single-replica propagation stage HOT 2
- Misleading logs when reusing a connection HOT 3
- Improve error message for message length mismatch HOT 3
- Account for processing delay in replication / command processing stage HOT 5
- Improve error logs for INFO replication stage HOT 2
- Add more checks on elapsed time in `test_wait.go` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-your-own-redis.