"undefined symbol" after running oceanS

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
xianlong
Posts: 2
Joined: Wed Feb 19, 2014 1:27 pm
Location: The University of Texas at Austin

"undefined symbol" after running oceanS

#1 Unread post by xianlong »

Hi,
I am new to ROMS and try to use ROMS as an external model to provide boundary conditions for our oil spill modeling system. I just compiled ROMS with ifort which is the same compiler used to compile the netcdf library. At the end of the compilation, I got the warning message as:

ld: warning: libnetcdf.so.6, needed by /usr/local/lib/libnetcdff.so, may conflict with libnetcdf.so.7
rm -f -r /home/team/make_macros.mk

But I still got the executable file oceanS. So I tried to run it but it just stuck with the error message as:

./oceanS: symbol lookup error: ./oceanS: undefined symbol: netcdf_mp_nf90_create_

Does anyone know how can I fix this error?

The nc-config on my computer shows:

This netCDF 4.3.0 has been built with the following features:

--cc -> gcc
--cflags -> -I/usr/local/include
--libs -> -L/usr/local/lib -lnetcdf

--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->

--fc -> ifort
--fflags -> -g -I/usr/local/include
--flibs -> -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
--has-f90 -> yes

--has-dap -> no
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no

--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.3.0

I will be appreciated for any kind of help :D .

Thanks,
Xianlong

xianlong
Posts: 2
Joined: Wed Feb 19, 2014 1:27 pm
Location: The University of Texas at Austin

Re: "undefined symbol" after running oceanS

#2 Unread post by xianlong »

Sorry guys. I've figured out this problem by installing the gmt package :D .

Post Reply