Comments (6)
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.
@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.
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.
Thanks.
from seacas.
Can you please explain HOW one goes about disabling dap and cmdremote?
from seacas.
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)
- -Wreserved-identifier warnings in public API names HOT 7
- Build error in "Linking CXX executable struc_to_unstruc" HOT 1
- exodus 2023.10.24 and msys2/mingw HOT 3
- Need Curl under Windows 10's WSL HOT 2
- Nem_spread should have option to set single-file-read from command line
- Grepos subsetting corrupts sideset variable data
- How to instantiate a transform? HOT 7
- Publish packaged exodus python bindings to PyPI HOT 2
- testwt-assembly.c: Error c2057 when building with MSVC and NetCDF binaries are found HOT 3
- Improve epu variable inclusion/exclusion handling.
- Verify that properties passed to IOSS are used.
- Add option to EPU to delete the file-per-rank files after joining successfully
- io_modify geometry modification does not work with CGNS structured HOT 1
- installation issue: not creating lib and include folder with ./install-tpl.sh HOT 11
- Aprepro Robustness
- Python bindings include absolute path to build directory. HOT 1
- ex_close fails if file is mode is EX_READ or EX_CLOBBER in parallel HOT 7
- EPU: Add capability to select "last 3 steps" HOT 1
- [MSVC][c++20][c++latest] Ioss_DatabaseIO.C failed with error 7525: call to immediate function is not a constant expression HOT 4
- [URGENT] Exonull does not compile with SEACAS_HAVE_MPI ON on Windows HOT 9
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 seacas.