Comments (7)
Also fails with gcc13
:
[100%] Linking C shared library libcotp.dylib
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cotp.dir/link.txt --verbose=ON
/opt/local/bin/gcc-mp-13 -pipe -Os -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -dynamiclib -Wl,-headerpad_max_install_names -Wl,--no-add-needed -Wl,--as-needed -Wl,-z,relro,-z,now -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -compatibility_version 2.0.0 -current_version 2.0.1 -o libcotp.2.0.1.dylib -install_name @rpath/libcotp.2.dylib CMakeFiles/cotp.dir/src/otp.c.o CMakeFiles/cotp.dir/src/utils/base32.c.o -Wl,-rpath,/opt/local/lib /opt/local/lib/libgcrypt.dylib
ld: unknown option: --no-add-needed
collect2: error: ld returned 1 exit status
make[2]: *** [libcotp.2.0.1.dylib] Error 1
from libcotp.
UPD. Trashing these flags from CMakeLists fixes the build.
from libcotp.
Hmm, I still got the same error with 2.1.0:
[100%] Linking C shared library libcotp.dylib
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/cotp.dir/link.txt --verbose=ON
/opt/local/bin/gcc-mp-13 -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -Wl,--no-add-needed -Wl,--as-needed -Wl,-z,relro,-z,now -L/opt/local/lib -Wl,-headerpad_max_install_names -compatibility_version 2.0.0 -current_version 2.1.0 -o libcotp.2.1.0.dylib -install_name @rpath/libcotp.2.dylib CMakeFiles/cotp.dir/src/otp.c.o CMakeFiles/cotp.dir/src/utils/whmac_gcrypt.c.o CMakeFiles/cotp.dir/src/utils/base32.c.o -Wl,-rpath,/opt/local/lib /opt/local/lib/libgcrypt.dylib
ld: unknown option: --no-add-needed
collect2: error: ld returned 1 exit status
make[2]: *** [libcotp.2.1.0.dylib] Error 1
from libcotp.
it's not in the cmakefile, so it must be something on your side
from libcotp.
it's not in the cmakefile, so it must be something on your side
Perhaps did not get into 2.1.0? It was still there then:
Line 60 in 7522ecd
from libcotp.
I removed the add_link_options
with v2.0.2 (1751bb1) because each distro should defining those flags.
from libcotp.
Well, since 3.0.0 does not have it, we are all good.
from libcotp.
Related Issues (20)
- Is it compatible with Google Authenticator? HOT 5
- Add battle.net support HOT 1
- Add pkg-config file
- Add steam support
- Add support for 60s tokens
- License collision with libbaseencode HOT 6
- SOVERSION should be set manually HOT 1
- Add support for custom digits
- investigate potential regression in 1.2.0 HOT 4
- Exception running... HOT 4
- Tests should not need install to build
- No package 'baseencode' found HOT 2
- pkg-config file is broken when CMAKE_INSTALL_{INCLUDE,LIB}DIR is absolute HOT 4
- Tests are failing HOT 1
- error while building HOT 4
- Openssl support? HOT 5
- base32_encode returns an error when the leading byte is 0 HOT 2
- openssl 1.1 support HOT 1
- Error during compilation! HOT 3
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 libcotp.