Comments (7)
indi@astro1:~/indi_dev/indi$ cmake --version
cmake version 3.6.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
from indi.
Switch "-Werror" causes CMake 3.6.3's source snippet checking for pthread.h to fail.
The problem occurs because of the redefinition of _FORTIFY_SOURCE, defined internally by gcc 4.9.4 on Gentoo.
Often cited solution is to undefine "_FORTIFY_SOURCE" before defining it again on the command line. No very elegant, but effective.
I'll provide a pull request, merge as you wish.
from indi.
Offering to fix with PR #261.
from indi.
I had a look. In my case cmake was not using optimization when checking for pthread, whatever the configuration. I'll double check but I think my pull request is still necessary for both libindi and 3rdparty. Of course, in my situation, _FORTIFY_SOURCE is predefined to 2 by gcc, so we loose nothing.
from indi.
@TallFurryMan: Can you send me your cmake error log (CMakeError.txt or CMakeError.log) to my email. I am curious: [email protected]
from indi.
Ah, just deleted the build tree to restart a dark library with bleeding edge.
The initial error was a #warning, stating _FORTIFY_SOURCE was redefined, as gcc 4.9.4 predefines it.
The second error was also a #warning, stating _FORTIFY_SOURCE had to be used with optimization, as cmake was not checking for pthread with that. I didn't test yet with the manual addition of -O1, but I think I remember it was not using the C flags. Probably pthread was a lone case.
I'll reproduce and let you know.
from indi.
Now I see. Your PR really fixes the problem properly.
from indi.
Related Issues (20)
- IUFillSwitchVector does not populate its name property if initialized with 0 dimension HOT 1
- Wrong guide pulse behaviour with TeenAstro mount driver
- Wrong filenaming when using %C placeholder HOT 1
- Star Adventurer GTI not driven HOT 3
- Silent failure if ampersand is not closed out with a semicolon for entity HOT 3
- indilib-driver-duino-2.0.5 libfirmata not being installed on linux HOT 3
- Cannot connect to flip-flat with virtual serial port unless 'Drop RTS' checks are bypassed as follows HOT 2
- ieaf-focus reversing direction doesn't work HOT 3
- Pegasus PPBA/M missing auto dew aggressiveness setting HOT 4
- "Fast Exposure" option undocumented and unclear HOT 5
- Sesto Senso 2 Bug on TimerHit breaking AF Overscan in Ekos Focus HOT 1
- Sesto Senso 2 Not reporting focuser position correctly
- indi-rpicam does not install HOT 1
- Change french translation for "Pier Side" HOT 1
- Build fails with LTO HOT 3
- SCT focuser interface compliance HOT 6
- Joystick support for SCT focuser HOT 2
- Bug in fli_pdf focuser driver not handling AF Overscan properly HOT 3
- JMI MotoFocus Plus connection error HOT 14
- Telescope properties are missing on version 2.0.6 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 indi.