Giter Club home page Giter Club logo

Comments (6)

gdsjaar avatar gdsjaar commented on August 19, 2024

It only depends on curl if your netcdf library depends on curl. We recommend configuring netcdf such that dap and cdmremote are disabled. This is where the curl dependency is coming from. If you have a shared netcdf library, then those dependencies should be added automatically by the shareable library system.

I can look at modifying my FindNetcdf.cmake file to automatically pick up the additional dependencies…
..Greg

"A supercomputer is a device for turning compute-bound problems into I/O-bound problems”

From: Andrey Prokopenko [email protected]
Reply-To: gsjaardema/seacas [email protected]
Date: Monday, November 21, 2016 at 12:19 PM
To: gsjaardema/seacas [email protected]
Subject: [EXTERNAL] [gsjaardema/seacas] Errors due to missing "-lcurl" linker flag (#63)

I think SEACAS depends on curl, but does not automatically add -lcurl during compilation. For instance, I was getting the following errors

Linking Fortran executable gen3d

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_perform'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_getinfo'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_init'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_strerror'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_version_info'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_cleanup'

../../libraries/exodus/libexodus.so.12.9: undefined reference to `curl_easy_setopt'

collect2: error: ld returned 1 exit status

I have a proper /usr/lib64/libcurl.so but it was not picked up because of the missing -lcurl for executable linking.

The current workaround for me is to add the following to my CMake configuration:

-D CMAKE_EXE_LINKER_FLAGS="-lcurl"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/63, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL2vRSS1D4GipzrqYonbG90-iMWC6STJks5rAe7VgaJpZM4K4lmd.

from seacas.

aprokop avatar aprokop commented on August 19, 2024

@gdsjaar Thanks, I'm playing around with spack and I think I hit this corner case: I'm compiling netcdf without disabling cmdremote, but using static netcdf library in overall shared build. I'll try disabling dap and cmdremote first, as this seems much easier.

from seacas.

aprokop avatar aprokop commented on August 19, 2024

I can confirm that with disabled dap and cmdremote the -lcurl flag is not necessary.

I am closing the issue with a remark that ideally we would detect this situation during the configure stage but this may be complicated.

from seacas.

gsjaardema avatar gsjaardema commented on August 19, 2024

Thanks.

from seacas.

tedtoal avatar tedtoal commented on August 19, 2024

Can you please explain HOW one goes about disabling dap and cmdremote?

from seacas.

gsjaardema avatar gsjaardema commented on August 19, 2024

Take a look at TPL/netcdf/runcmake.sh or TPL/netcdf/runconfigure.sh.

For CMake, it is -DENABLE_DAP:BOOL=OFF. For configure it is --disable-dap

from seacas.

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.