Giter VIP home page Giter VIP logo

Comments (7)

barracuda156 avatar barracuda156 commented on May 31, 2024

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.

barracuda156 avatar barracuda156 commented on May 31, 2024

UPD. Trashing these flags from CMakeLists fixes the build.

from libcotp.

barracuda156 avatar barracuda156 commented on May 31, 2024

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.

paolostivanin avatar paolostivanin commented on May 31, 2024

it's not in the cmakefile, so it must be something on your side

from libcotp.

barracuda156 avatar barracuda156 commented on May 31, 2024

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:

add_link_options(-Wl,--no-add-needed -Wl,--as-needed -Wl,-z,relro,-z,now)

from libcotp.

paolostivanin avatar paolostivanin commented on May 31, 2024

I removed the add_link_options with v2.0.2 (1751bb1) because each distro should defining those flags.

from libcotp.

barracuda156 avatar barracuda156 commented on May 31, 2024

Well, since 3.0.0 does not have it, we are all good.

from libcotp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.