usnistgov/REFPROP-cmake

ERROR: Could not load REFPROP (librefprop.so) due to: /opt/refprop/librefprop.so: undefined symbol: setvs2_.

joaocarlosmendes opened this issue · 14 comments

Hi,

I have a problem trying to load librefprop.so. I've tried it in various ways, but still with no success, could you try to help me identify the problem?

root@1aff1cda8641:/REFPROP-cmake/build# cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 8.3.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found PythonInterp: /usr/local/bin/python (found version "3.8.7") 
-- DEFSYM_FLAG: --using-defsym
-- linux
Missing from PASS_CMN_tokens:  ['ABFLSHdll', 'ALLPROPS0dll', 'ALLPROPS1dll', 'ALLPROPS20dll', 'ALLPROPSdll', 'BLCRVdll', 
'CRTPNTdll', 'DEFL1dll', 'DERVPVTdll', 'DHFL1dll', 'DQFL2dll', 'DSD1dll', 'DSFL1dll', 'ERRMSGdll', 'FLAGSdll', 'GERG08dll', 'GETENUMdll', 'GETMODdll', 'GETREFDIRdll', 'HEATFRMdll', 'HMXORDERdll', 'HSFL1dll', 'IDCRVdll', 'JICRVdll', 'JTCRVdll', 'LIQSPNDLdll', 'MASSFLUXdll', 'MAXPdll', 'MAXTdll', 'MELTKdll', 'PASSCMNdll', 'PEFL1dll', 'PHI0dll', 'PHIDERVdll', 'PHIHMXdll', 'PHIKdll', 'PHIMIXdll', 'PHIXdll', 'RDXHMXdll', 'REDXdll', 'REFPROP1dll', 'REFPROP2dll', 'REFPROPdll', 'RIEMdll', 'RMIX2dll', 'SATESTdll', 'SATGUESSdll', 'SATGVdll', 'SATSPLNdll', 'SETFLUIDSdll', 'SETMIXTUREdll', 'SETREFDIRdll', 'SPLNROOTdll', 'SPLNVALdll', 'STNdll', 'TEFL1dll', 'THFL1dll', 'TPFL2dll', 'TSATDdll', 'TSATPdll', 'TSFL1dll', 'VAPSPNDLdll', 'VIRBCDdll', 'WMOLIdll']
Missing from REFPROP_lib.h: ['DPDDKdll', 'DPDTKdll', 'ACTVYdll', 'SPNDLdll', 'DOTFILLdll']

-- Configuring done
-- Generating done
-- Build files have been written to: /REFPROP-cmake/build
root@1aff1cda8641:/REFPROP-cmake/build# 
root@1aff1cda8641:/REFPROP-cmake/build# cmake --build .
Scanning dependencies of target refprop
[  3%] Building Fortran object CMakeFiles/refprop.dir/fortran/CMNS.FOR.o
[  6%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o
[  9%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_BWR.FOR.o
[ 12%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_CPP.FOR.o
[ 16%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_DE.FOR.o
[ 19%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o
[ 22%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o
[ 25%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o
[ 29%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_PH0.FOR.o
[ 32%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_PR.FOR.o
[ 35%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_QUI.FOR.o
[ 38%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o
[ 41%] Building Fortran object CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o
[ 45%] Building Fortran object CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o
[ 48%] Building Fortran object CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o
[ 51%] Building Fortran object CMakeFiles/refprop.dir/fortran/MIX_AGA8.FOR.o
[ 54%] Building Fortran object CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o
[ 58%] Building Fortran object CMakeFiles/refprop.dir/fortran/PASS_FTN.FOR.o
[ 61%] Building Fortran object CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o
[ 64%] Building Fortran object CMakeFiles/refprop.dir/fortran/REALGAS.FOR.o
[ 67%] Building Fortran object CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o
/REFPROP-cmake/fortran/REFPROP.FOR:5589:72:

          if (ABS(iErrPrnt).eq.3) pause           !If your compiler complains about this line, just delete it.
                                                                        1
Warning: Deleted feature: PAUSE statement at (1)
[ 70%] Building Fortran object CMakeFiles/refprop.dir/fortran/SAT_SUB.FOR.o
[ 74%] Building Fortran object CMakeFiles/refprop.dir/fortran/SETUP.FOR.o
[ 77%] Building Fortran object CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o
[ 80%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o
[ 83%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o
[ 87%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_TCX.FOR.o
[ 90%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_VIS.FOR.o
[ 93%] Building Fortran object CMakeFiles/refprop.dir/fortran/UTILITY.FOR.o
[ 96%] Linking Fortran shared library librefprop.so
/usr/bin/ld: warning: alignment 16 of symbol `flags_' in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o is smaller than 32 
in CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o
/usr/bin/ld: warning: size of symbol `flags_' changed from 72 in CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o to 6053 in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o
/usr/bin/ld: warning: type of symbol `flags_' changed from 1 to 2 in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o        
/usr/bin/ld: warning: alignment 16 of symbol `flags_' in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o is smaller than 32 
in CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o
[ 96%] Built target refprop
Scanning dependencies of target REFPROP_H
[100%] About to build the REFPROP.h header file w/ /usr/local/bin/python;-u;/REFPROP-cmake/externals/REFPROP-headers/generate_header.py;--FORTRAN-path;/REFPROP-cmake/fortran;--python-exe;/usr/local/bin/python
Writing the .pyf file with numpy.f2py, please be patient...
About to run: /usr/local/bin/python -m numpy.f2py --quiet --no-lower -h REFPROP.pyf /REFPROP-cmake/fortran/PASS_FTN.FOR  
numpy version: 1.21.2
Deleting REFPROP.pyf
[100%] Built target REFPROP_H
root@1aff1cda8641:/REFPROP-cmake/build#
root@1aff1cda8641:/REFPROP-cmake/build# ls
CMakeCache.txt  CMakeFiles  Makefile  REFPROP.h  REFPROP.h.stamp  aliases_string.txt  cmake_install.cmake  librefprop.so 
root@1aff1cda8641:/REFPROP-cmake/build#
Python 3.8.7 (default, Feb  9 2021, 08:08:20) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp.CoolProp as CP
>>> CP.get_global_param_string("REFPROP_version")
Good news: It is possible to use REFPROP on your system! However, the library
could not be loaded. Please make sure that REFPROP is available on your system.

Neither found in current location nor found in system PATH.
If you already obtained a copy of REFPROP from http://www.nist.gov/srd/,
add location of REFPROP to the PATH environment variable or your library path.

In case you do not use Windows, have a look at https://github.com/jowr/librefprop.so
to find instructions on how to compile your own version of the REFPROP library.

ALTERNATIVE_REFPROP_PATH:
ERROR: Could not load REFPROP (librefprop.so) due to: /opt/refprop/librefprop.so: undefined symbol: setvs2_. Make sure the library is in your system search path. In case you run 64bit Windows and you have a REFPROP license, try installing the 64bit DLL from NIST.
'n/a'
>>>

REFPROP 10.0

You need to set the path first: http://www.coolprop.org/coolprop/REFPROP.html#path-issues

But what OS are you using?

I'm using a python:3.8.7 linux docker image based on the Debian "bullseye"

I had already set the environment variables, LIBRARY_PATH and LD_LIBRARY_PATH, but for some reason when trying to load via Coolprop it looks for the lib in the alternative path /opt/refprop/librefprop.so where there is a copy of the lib there along with fluids and mixtures.

Below is the result of setting using "set_config_string"

root@1aff1cda8641:/app# python
Python 3.8.7 (default, Feb  9 2021, 08:08:20)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp.CoolProp as CP
>>> CP.set_config_string(CP.ALTERNATIVE_REFPROP_LIBRARY_PATH, '/opt/refprop/librefprop.so')
>>> CP.get_global_param_string("REFPROP_version")
Good news: It is possible to use REFPROP on your system! However, the library
could not be loaded. Please make sure that REFPROP is available on your system.

Neither found in current location nor found in system PATH.
If you already obtained a copy of REFPROP from http://www.nist.gov/srd/,
add location of REFPROP to the PATH environment variable or your library path.

In case you do not use Windows, have a look at https://github.com/jowr/librefprop.so
to find instructions on how to compile your own version of the REFPROP library.

ALTERNATIVE_REFPROP_PATH:
ERROR: Could not load REFPROP (/opt/refprop/librefprop.so) due to: /opt/refprop/librefprop.so: undefined symbol: setvs2_. Make sure the library is in your system search path. In case you run 64bit Windows and you have a REFPROP license, try installing the 64bit DLL from NIST.
'n/a'
>>> CP.get_global_param_string("REFPROP_version")
'n/a'
>>> REFPROP = CP.AbstractState('REFPROP','R32&R125'); REFPROP.set_mole_fractions([0.5,0.5])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "CoolProp/AbstractState.pyx", line 32, in CoolProp.CoolProp.AbstractState.__cinit__
ValueError: You cannot use the REFPROPMixtureBackend.
>>>

Can you show your Dockerfile please?

How about on an ubuntu:20.04 base image? That's my goto at the moment.

I compile REFPROP all the time in docker containers..

Cool, I'll try this image and return the result here.

Follow the current Dockerfile

FROM python:3.8.7

RUN apt update && \
    apt install -y build-essential gfortran git python3-dev cmake nginx && \
    rm -rf /var/lib/apt/lists/* && \
    git clone --recursive https://github.com/usnistgov/REFPROP-cmake.git

RUN pip install CoolProp Flask numpy six requests scipy uwsgi

RUN useradd -U -l -m isis && mkdir /app && chown isis: /app

COPY ./Docker/dev/nucleo/nginx.conf /etc/nginx/
COPY ./Docker/dev/nucleo/nucleo.conf /etc/nginx/sites-available/
RUN ln -s /etc/nginx/sites-available/nucleo.conf /etc/nginx/sites-enabled/


# ========================================
# Compilar e instalar o REFPROP
# ========================================

COPY ./Nodered/Python/refprop/fortran /REFPROP-cmake/fortran
COPY ./Nodered/Python/refprop/fluids /REFPROP-cmake/fluids
COPY ./Nodered/Python/refprop/mixtures /REFPROP-cmake/mixtures

RUN mkdir -p /REFPROP-cmake/build && \
    cd /REFPROP-cmake/build && \
    cmake .. -DCMAKE_BUILD_TYPE=Release && \
    cmake --build .

RUN mkdir -p /opt/refprop
RUN cp -r /REFPROP-cmake/fluids /opt/refprop/
RUN cp -r /REFPROP-cmake/mixtures /opt/refprop/
RUN chmod 775 /opt/refprop /opt/refprop/fluids /opt/refprop/mixtures
RUN chmod 664 /opt/refprop/fluids/* /opt/refprop/mixtures/*

RUN cp /REFPROP-cmake/build/librefprop.so /usr/local/lib/librefprop.so.10.0
RUN cp /REFPROP-cmake/externals/REFPROP-headers/REFPROP_lib.h /usr/local/include/

RUN chmod 664 /usr/local/include/REFPROP_lib.h /usr/local/lib/librefprop.so.10.0

RUN ln -sf /usr/local/lib/librefprop.so.10.0 /usr/local/lib/librefprop.so.10
RUN ln -sf /usr/local/lib/librefprop.so.10 /usr/local/lib/librefprop.so
RUN ln -sf /usr/local/lib/librefprop.so /opt/refprop/librefprop.so

...

COPY ./Docker/dev/nucleo/entrypoint.sh /app

ENTRYPOINT /app/entrypoint.sh

Hello, unfortunately the same error occurred.

ERROR: Could not load REFPROP (librefprop.so) due to: /opt/refprop/librefprop.so: undefined symbol: setvs2_.

Below is the result:

root@59f7c808a32e:/REFPROP-cmake/build# python
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import CoolProp
>>> CoolProp.CoolProp.get_global_param_string("REFPROP_version")
Good news: It is possible to use REFPROP on your system! However, the library
could not be loaded. Please make sure that REFPROP is available on your system.

Neither found in current location nor found in system PATH.
If you already obtained a copy of REFPROP from http://www.nist.gov/srd/,
add location of REFPROP to the PATH environment variable or your library path.

In case you do not use Windows, have a look at https://github.com/jowr/librefprop.so
to find instructions on how to compile your own version of the REFPROP library.

ALTERNATIVE_REFPROP_PATH:
ERROR: Could not load REFPROP (librefprop.so) due to: /opt/refprop/librefprop.so: undefined symbol: setvs2_. Make sure the library is in your system search path. In case you run 64bit Windows and you have a REFPROP license, try 
installing the 64bit DLL from NIST.
'n/a'
>>> import CoolProp
>>> CoolProp.CoolProp.get_global_param_string("REFPROP_version")
'n/a'

Dockerfile:

FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y g++ gfortran git python3-dev python3-pip cmake nginx && \
    git clone --recursive https://github.com/usnistgov/REFPROP-cmake.git

RUN ln -s /usr/bin/python3 /usr/bin/python

RUN pip install CoolProp Flask numpy six requests scipy uwsgi

RUN useradd -U -l -m isis && mkdir /app && chown isis: /app

COPY ./Docker/dev/nucleo/nginx.conf /etc/nginx/
COPY ./Docker/dev/nucleo/nucleo.conf /etc/nginx/sites-available/
RUN ln -s /etc/nginx/sites-available/nucleo.conf /etc/nginx/sites-enabled/


# ========================================
# Compilar e instalar o REFPROP
# ========================================

COPY ./Nodered/Python/refprop/fortran /REFPROP-cmake/fortran
COPY ./Nodered/Python/refprop/fluids /REFPROP-cmake/fluids
COPY ./Nodered/Python/refprop/mixtures /REFPROP-cmake/mixtures

RUN mkdir -p /REFPROP-cmake/build && \
    cd /REFPROP-cmake/build && \
    cmake .. -DCMAKE_BUILD_TYPE=Release && \
    cmake --build .

RUN mkdir -p /opt/refprop
RUN cp -r /REFPROP-cmake/fluids /opt/refprop/
RUN cp -r /REFPROP-cmake/mixtures /opt/refprop/
RUN chmod 775 /opt/refprop /opt/refprop/fluids /opt/refprop/mixtures
RUN chmod 664 /opt/refprop/fluids/* /opt/refprop/mixtures/*

RUN cp /REFPROP-cmake/build/librefprop.so /usr/local/lib/librefprop.so.10.0
RUN cp /REFPROP-cmake/externals/REFPROP-headers/REFPROP_lib.h /usr/local/include/

RUN chmod 664 /usr/local/include/REFPROP_lib.h /usr/local/lib/librefprop.so.10.0

RUN ln -sf /usr/local/lib/librefprop.so.10.0 /usr/local/lib/librefprop.so.10
RUN ln -sf /usr/local/lib/librefprop.so.10 /usr/local/lib/librefprop.so
RUN ln -sf /usr/local/lib/librefprop.so /opt/refprop/librefprop.so

...

COPY ./Docker/dev/nucleo/entrypoint.sh /app

ENTRYPOINT /app/entrypoint.sh

I think one of the dependencies of the shared library didn't get symlinked into /opt/refprop. Can you run a ldd on the generated shared library to see if something needs to get copied? REFPROP-cmake tries to statically link the system libraries, but gfortran might have changed this somehow but I doubt it.

I usually just move the shared library into /opt/refprop, which seems to "just work". Here is an example: https://github.com/usnistgov/REFPROP-tests/blob/master/docker/test/Dockerfile

This is the result of ldd command

root@59f7c808a32e:/opt/refprop# ldd librefprop.so
        linux-vdso.so.1 (0x00007ffdb19d0000)
        libgfortran.so.5 => /lib/x86_64-linux-gnu/libgfortran.so.5 (0x00007fe10c217000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe10c0c8000)
        libmvec.so.1 => /lib/x86_64-linux-gnu/libmvec.so.1 (0x00007fe10c09c000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe10c081000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe10be8f000)
        libquadmath.so.0 => /lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007fe10be45000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe10ce7a000)
root@59f7c808a32e:/opt/refprop#

I'll try it with your Dokerfile

Here is another error that occurred previously, but I found it interesting to register here and also know from you, if the solution I gave was the best one and if this same action could be causing the current problem.

To fix this issue I needed to edit each .FOR file that has the duplicated subroutine and remove the oldest among each font pair, based on developer comments.

I don't know if this error is common to happen, but I haven't found anything indexed on Google about this issue.

Are these duplicate subroutines needed across multiple sources?

root@4f9d839eb375:/REFPROP-cmake/build# cmake .. -DREFPROP_FORTRAN_PATH=/REFPROP-cmake/fortran -DCMAKE_BUILD_TYPE=Release -DREFPROP_NO_NUMPY=ON
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The Fortran compiler identification is GNU 9.3.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.10") 
-- DEFSYM_FLAG: --using-defsym
-- linux
Missing from PASS_CMN_tokens:  []
Missing from REFPROP_lib.h: []

-- Configuring done
-- Generating done
-- Build files have been written to: /REFPROP-cmake/build
root@4f9d839eb375:/REFPROP-cmake/build# cmake --build .
Scanning dependencies of target refprop
[  3%] Building Fortran object CMakeFiles/refprop.dir/fortran/CMNS.FOR.o
[  6%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o
[ 10%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_BWR.FOR.o
[ 13%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_CPP.FOR.o
[ 16%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_DE.FOR.o
[ 20%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o
[ 23%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o
[ 26%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o
[ 30%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_PH0.FOR.o
[ 33%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_PR.FOR.o
[ 36%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_QUI.FOR.o
[ 40%] Building Fortran object CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o
[ 43%] Building Fortran object CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o
[ 46%] Building Fortran object CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o
[ 50%] Building Fortran object CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o
[ 53%] Building Fortran object CMakeFiles/refprop.dir/fortran/MIX_AGA8.FOR.o
[ 56%] Building Fortran object CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o
[ 60%] Building Fortran object CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o
[ 63%] Building Fortran object CMakeFiles/refprop.dir/fortran/REALGAS.FOR.o
[ 66%] Building Fortran object CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o
/REFPROP-cmake/fortran/REFPROP.FOR:5589:72:

 5589 |          if (ABS(iErrPrnt).eq.3) pause           !If your compiler complains about this line, just delete it.
      |                                                                        1
Warning: Deleted feature: PAUSE statement at (1)
/REFPROP-cmake/fortran/REFPROP.FOR:3108:0:

 3108 |       if (iUCode.eq.1000) hun=hUnt(4)(2:ispc(4)-1)         !Remove parenthesis if output units is only J/mol or kJ/kg.
      |
Warning: '__builtin_memcpy' reading 255 bytes from a region of size 39 [-Wstringop-overflow=]
/REFPROP-cmake/fortran/REFPROP.FOR:3109:0:

 3109 |       if (iUCode.eq.0100) hun=hUnt(3)(2:ispc(3)-1)         !Same for density (mol/dm^3 or kg/m^3).
      |
Warning: '__builtin_memcpy' reading 255 bytes from a region of size 59 [-Wstringop-overflow=]
/REFPROP-cmake/fortran/REFPROP.FOR:3110:0:

 3110 |       if (iUCode.eq.0900) hun=hUnt(0)(2:ispc(0)-1)         !Same for volume.
      |
Warning: '__builtin_memcpy' reading 255 bytes from a region of size 119 [-Wstringop-overflow=]
[ 70%] Building Fortran object CMakeFiles/refprop.dir/fortran/SAT_SUB.FOR.o
[ 73%] Building Fortran object CMakeFiles/refprop.dir/fortran/SETUP.FOR.o
[ 76%] Building Fortran object CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o
[ 80%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o
[ 83%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o
[ 86%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_TCX.FOR.o
[ 90%] Building Fortran object CMakeFiles/refprop.dir/fortran/TRNS_VIS.FOR.o
[ 93%] Building Fortran object CMakeFiles/refprop.dir/fortran/UTILITY.FOR.o
[ 96%] Building Fortran object CMakeFiles/refprop.dir/fortran/DLLFILES/PASS_FTN.FOR.o
[100%] Linking Fortran shared library librefprop.so
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_DE.FOR.o: in function `dek_':
CORE_DE.FOR:(.text+0x0): multiple definition of `dek_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_DE.FOR.o: in function `dielec_':
CORE_DE.FOR:(.text+0x3bc0): multiple definition of `dielec_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0xb740): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `ph0cpp_':
CORE_FEQ.FOR:(.text+0x2a80): multiple definition of `ph0cpp_'; CMakeFiles/refprop.dir/fortran/CORE_CPP.FOR.o:CORE_CPP.FOR:(.text+0x5160): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `hj_':
CORE_FEQ.FOR:(.text+0xfcb0): multiple definition of `hj_'; CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o:CORE_ECS.FOR:(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `fj_':
CORE_FEQ.FOR:(.text+0x12120): multiple definition of `fj_'; CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o:CORE_ECS.FOR:(.text+0x2330): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `setbwr_':
CORE_FEQ.FOR:(.text+0x155c0): multiple definition of `setbwr_'; CMakeFiles/refprop.dir/fortran/CORE_BWR.FOR.o:CORE_BWR.FOR:(.text+0x25b0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `phiecs_':
CORE_FEQ.FOR:(.text+0x16710): multiple definition of `phiecs_'; CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o:CORE_ECS.FOR:(.text+0x4660): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `setecs_':
CORE_FEQ.FOR:(.text+0x17080): multiple definition of `setecs_'; CMakeFiles/refprop.dir/fortran/CORE_ECS.FOR.o:CORE_ECS.FOR:(.text+0x58d0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o: in function `setcpp_':
CORE_FEQ.FOR:(.text+0x17e20): multiple definition of `setcpp_'; CMakeFiles/refprop.dir/fortran/CORE_CPP.FOR.o:CORE_CPP.FOR:(.text+0x3ef0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `sublk_':
CORE_MLT.FOR:(.text+0x0): multiple definition of `sublk_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x43f0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `sublt_':
CORE_MLT.FOR:(.text+0xbc0): multiple definition of `sublt_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x8ac0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `mlth2o_':
CORE_MLT.FOR:(.text+0x12c0): multiple definition of `mlth2o_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x55f0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `mltph2_':
CORE_MLT.FOR:(.text+0x1690): multiple definition of `mltph2_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x4fd0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `meltk_':
CORE_MLT.FOR:(.text+0x1750): multiple definition of `meltk_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x5bc0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `meltt_':
CORE_MLT.FOR:(.text+0x22c0): multiple definition of `meltt_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x8850): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `meltp_':
CORE_MLT.FOR:(.text+0x3740): multiple definition of `meltp_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x9070): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_MLT.FOR.o: in function `sublp_':
CORE_MLT.FOR:(.text+0x3f00): multiple definition of `sublp_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x91a0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_PH0.FOR.o: in function `ph0ph0_':
CORE_PH0.FOR:(.text+0x980): multiple definition of `ph0ph0_'; CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o:CORE_FEQ.FOR:(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o: in function `stnk_':
CORE_STN.FOR:(.text+0xbc0): multiple definition of `stnk_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x3510): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o: in function `stn_':
CORE_STN.FOR:(.text+0xde0): multiple definition of `stn_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0x3940): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o: in function `surft_':
CORE_STN.FOR:(.text+0x2560): multiple definition of `surft_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0xb400): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o: in function `surten_':
CORE_STN.FOR:(.text+0x2a70): multiple definition of `surten_'; CMakeFiles/refprop.dir/fortran/CORE_ANC.FOR.o:CORE_ANC.FOR:(.text+0xb580): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dbfl1_':
FLSH_SUB.FOR:(.text+0xcc0): multiple definition of `dbfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x3350): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `abfl1_':
FLSH_SUB.FOR:(.text+0x4c40): multiple definition of `abfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x4aa0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `hsfl1_':
FLSH_SUB.FOR:(.text+0x7240): multiple definition of `hsfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x5ee0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `abfl2_':
FLSH_SUB.FOR:(.text+0xad00): multiple definition of `abfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x420): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dbflsh_':
FLSH_SUB.FOR:(.text+0xe990): multiple definition of `dbflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x6950): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tbflsh_':
FLSH_SUB.FOR:(.text+0xf4b0): multiple definition of `tbflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x7660): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `hsflsh_':
FLSH_SUB.FOR:(.text+0x11ae0): multiple definition of `hsflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x5f80): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `thfl1_':
FLSH_SUB.FOR:(.text+0x163a0): multiple definition of `thfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9290): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tsfl1_':
FLSH_SUB.FOR:(.text+0x163f0): multiple definition of `tsfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x5ea0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tefl1_':
FLSH_SUB.FOR:(.text+0x16450): multiple definition of `tefl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9490): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dhfl1_':
FLSH_SUB.FOR:(.text+0x164b0): multiple definition of `dhfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x95f0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dsfl1_':
FLSH_SUB.FOR:(.text+0x16500): multiple definition of `dsfl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9700): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `defl1_':
FLSH_SUB.FOR:(.text+0x16550): multiple definition of `defl1_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9810): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `pqfl2_':
FLSH_SUB.FOR:(.text+0x16860): multiple definition of `pqfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x3210): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tqfl2_':
FLSH_SUB.FOR:(.text+0x16910): multiple definition of `tqfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x32b0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `thfl2_':
FLSH_SUB.FOR:(.text+0x169c0): multiple definition of `thfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x92d0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tsfl2_':
FLSH_SUB.FOR:(.text+0x16a70): multiple definition of `tsfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9370): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tefl2_':
FLSH_SUB.FOR:(.text+0x16b20): multiple definition of `tefl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x94d0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dhfl2_':
FLSH_SUB.FOR:(.text+0x16bd0): multiple definition of `dhfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9630): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dsfl2_':
FLSH_SUB.FOR:(.text+0x16c90): multiple definition of `dsfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9740): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `defl2_':
FLSH_SUB.FOR:(.text+0x16d50): multiple definition of `defl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9850): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dqfl2_':
FLSH_SUB.FOR:(.text+0x16e10): multiple definition of `dqfl2_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0xc560): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `thflsh_':
FLSH_SUB.FOR:(.text+0x17090): multiple definition of `thflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9210): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tsflsh_':
FLSH_SUB.FOR:(.text+0x17110): multiple definition of `tsflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9190): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `teflsh_':
FLSH_SUB.FOR:(.text+0x17190): multiple definition of `teflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9410): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dhflsh_':
FLSH_SUB.FOR:(.text+0x17210): multiple definition of `dhflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9570): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `dsflsh_':
FLSH_SUB.FOR:(.text+0x17290): multiple definition of `dsflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9680): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `deflsh_':
FLSH_SUB.FOR:(.text+0x17310): multiple definition of `deflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x9790): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `esflsh_':
FLSH_SUB.FOR:(.text+0x17390): multiple definition of `esflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x98a0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `pqflsh_':
FLSH_SUB.FOR:(.text+0x173f0): multiple definition of `pqflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0xb3f0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/FLSH_SUB.FOR.o: in function `tqflsh_':
FLSH_SUB.FOR:(.text+0x17480): multiple definition of `tqflsh_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x98f0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o: in function `cp0_':
IDEALGAS.FOR:(.text+0x0): multiple definition of `cp0_'; CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o:CORE_FEQ.FOR:(.text+0x3050): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o: in function `phi0_':
IDEALGAS.FOR:(.text+0x420): multiple definition of `phi0_'; CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o:CORE_FEQ.FOR:(.text+0x2d70): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o: in function `cp0k_':
IDEALGAS.FOR:(.text+0x660): multiple definition of `cp0k_'; CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o:CORE_FEQ.FOR:(.text+0x17d40): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/IDEALGAS.FOR.o: in function `phi0k_':
IDEALGAS.FOR:(.text+0x6f0): multiple definition of `phi0k_'; CMakeFiles/refprop.dir/fortran/CORE_FEQ.FOR.o:CORE_FEQ.FOR:(.text+0x17da0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o: in function `unsetaga_':
MIX_HMX.FOR:(.text+0x18d0): multiple definition of `unsetaga_'; CMakeFiles/refprop.dir/fortran/MIX_AGA8.FOR.o:MIX_AGA8.FOR:(.text+0x5b70): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o: in function `setaga_':
MIX_HMX.FOR:(.text+0x4540): multiple definition of `setaga_'; CMakeFiles/refprop.dir/fortran/MIX_AGA8.FOR.o:MIX_AGA8.FOR:(.text+0x3960): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o: in function `phiaga_':
MIX_HMX.FOR:(.text+0x1c210): multiple definition of `phiaga_'; CMakeFiles/refprop.dir/fortran/MIX_AGA8.FOR.o:MIX_AGA8.FOR:(.text+0x15c0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o: in function `cstar_':
PROP_SUB.FOR:(.text+0xafd0): multiple definition of `cstar_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0xc5a0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/REALGAS.FOR.o: in function `phik_':
REALGAS.FOR:(.text+0x140): multiple definition of `phik_'; CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o:PROP_SUB.FOR:(.text+0x1d30): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/REALGAS.FOR.o: in function `phix_':
REALGAS.FOR:(.text+0x2c0): multiple definition of `phix_'; CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o:PROP_SUB.FOR:(.text+0x2240): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/REALGAS.FOR.o: in function `redx_':
REALGAS.FOR:(.text+0x410): multiple definition of `redx_'; CMakeFiles/refprop.dir/fortran/PROP_SUB.FOR.o:PROP_SUB.FOR:(.text+0x220): first defined here
/usr/bin/ld: warning: alignment 16 of symbol `flags_' in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o is smaller than 32 in CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o
/usr/bin/ld: warning: size of symbol `flags_' changed from 72 in CMakeFiles/refprop.dir/fortran/CORE_STN.FOR.o to 6077 in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o
/usr/bin/ld: warning: type of symbol `flags_' changed from 1 to 2 in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o: in function `getmod_':
SETUP2.FOR:(.text+0x2da0): multiple definition of `getmod_'; CMakeFiles/refprop.dir/fortran/SETUP.FOR.o:SETUP.FOR:(.text+0x169c0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o: in function `setktv_':
SETUP2.FOR:(.text+0x3430): multiple definition of `setktv_'; CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o:MIX_HMX.FOR:(.text+0x1ad90): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o: in function `getktv_':
SETUP2.FOR:(.text+0x42e0): multiple definition of `getktv_'; CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o:MIX_HMX.FOR:(.text+0x1b730): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/SETUP2.FOR.o: in function `getfij_':
SETUP2.FOR:(.text+0x5020): multiple definition of `getfij_'; CMakeFiles/refprop.dir/fortran/MIX_HMX.FOR.o:MIX_HMX.FOR:(.text+0x1bd70): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `fint_':
TRNS_ECS.FOR:(.text+0x24b0): multiple definition of `fint_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x2210): first defined here
TRNS_ECS.FOR:(.text+0x28f0): multiple definition of `omegas_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `psi_':
TRNS_ECS.FOR:(.text+0x4d40): multiple definition of `psi_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x2640): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `chi_':
TRNS_ECS.FOR:(.text+0x5830): multiple definition of `chi_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x3100): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `conftd_':
TRNS_ECS.FOR:(.text+0x6320): multiple definition of `conftd_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x3c10): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `trnecs_':
TRNS_ECS.FOR:(.text+0x8720): multiple definition of `trnecs_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x4e20): first defined here
/usr/bin/ld: warning: alignment 16 of symbol `flags_' in CMakeFiles/refprop.dir/fortran/REFPROP.FOR.o is smaller than 32 in CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o: in function `settrn_':
TRNS_ECS.FOR:(.text+0xb620): multiple definition of `settrn_'; CMakeFiles/refprop.dir/fortran/TRNSP.FOR.o:TRNSP.FOR:(.text+0x8cf0): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/TRNS_VIS.FOR.o: in function `etamix_':
TRNS_VIS.FOR:(.text+0xa240): multiple definition of `etamix_'; CMakeFiles/refprop.dir/fortran/TRNS_ECS.FOR.o:TRNS_ECS.FOR:(.text+0x2b80): first defined here
/usr/bin/ld: CMakeFiles/refprop.dir/fortran/UTILITY.FOR.o: in function `ptanc_':
UTILITY.FOR:(.text+0x1fa00): multiple definition of `ptanc_'; CMakeFiles/refprop.dir/fortran/FLASH2.FOR.o:FLASH2.FOR:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/refprop.dir/build.make:504: librefprop.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/refprop.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
root@4f9d839eb375:/REFPROP-cmake/build# ls
CMakeCache.txt  CMakeFiles  Makefile  aliases_string.txt  cmake_install.cmake
root@4f9d839eb375:/REFPROP-cmake/build#

Something is wrong with your setup. Can you please email me a zip with your fluids, fortran, and mixtures folders?

Perhaps related: you should not change the case of the FLUIDS or MIXTURES folders.

Hello,

I am working for a company that holds this requested information and I need to adhere to the security policies currently enforced. As soon as I get the authorization to send the files, we communicate again.

Thanks for all the help so far and see you soon!

From the other direction, here is what I get when I built my docker container (sorry not terribly helpful):

(base) PS C:\XXXXXXX\Code\REFPROP-tests\docker\test> docker-compose build app
Building app
[+] Building 584.5s (25/25) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                      0.0s
 => => transferring dockerfile: 32B                                                                                                                                                       0.0s
 => [internal] load .dockerignore                                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                                                           0.0s
 => CACHED [ 1/19] FROM docker.io/library/ubuntu:20.04                                                                                                                                    0.0s
 => CACHED https://api.github.com/repos/usnistgov/REFPROP-tests/git/refs/heads/master                                                                                                     0.0s
 => [internal] load build context                                                                                                                                                         0.0s
 => => transferring context: 66B                                                                                                                                                          0.0s
 => CACHED https://api.github.com/repos/usnistgov/REFPROP-cmake/git/refs/heads/master                                                                                                     0.0s
 => [ 2/19] RUN apt-get -y -m update && DEBIAN_FRONTEND=noninteractive apt-get install -y cmake python3-numpy g++ gfortran git zip python3-six lcov python3-pip                         376.8s
 => [ 3/19] ADD https://api.github.com/repos/usnistgov/REFPROP-cmake/git/refs/heads/master RPcmake-version.json                                                                           0.1s
 => [ 4/19] RUN git clone --recursive https://github.com/usnistgov/REFPROP-cmake                                                                                                          1.3s
 => [ 5/19] ADD https://api.github.com/repos/usnistgov/REFPROP-tests/git/refs/heads/master RPtests-version.json                                                                           0.1s
 => [ 6/19] RUN git clone --recursive https://github.com/usnistgov/REFPROP-tests                                                                                                         22.6s
 => [ 7/19] ADD REFPROP.zip .                                                                                                                                                             0.1s
 => [ 8/19] RUN unzip REFPROP.zip -d REFPROP                                                                                                                                              0.6s
 => [ 9/19] WORKDIR /REFPROP-cmake                                                                                                                                                        0.1s
 => [10/19] RUN mkdir build && cd build &&     cmake .. -DREFPROP_FORTRAN_PATH=/REFPROP/FORTRAN -DCMAKE_BUILD_TYPE=Release -DREFPROP_NO_NUMPY=ON &&     cmake --build .                  43.2s
 => [11/19] WORKDIR /REFPROP-cmake/build                                                                                                                                                  0.1s
 => [12/19] RUN cp -rfv /REFPROP/FLUIDS/ . && cp -rfv /REFPROP/MIXTURES/ . && echo `pwd` && echo `ls -l`                                                                                  0.5s
 => [13/19] WORKDIR /REFPROP-tests                                                                                                                                                        0.1s
 => [14/19] RUN mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build .                                                                                       117.2s
 => [15/19] RUN python3 -m pip install ansi2html                                                                                                                                          1.7s
 => [16/19] RUN apt-get install nano                                                                                                                                                     13.2s
 => [17/19] RUN pip3 install ctREFPROP                                                                                                                                                    1.4s
 => [18/19] COPY run_test.py /                                                                                                                                                            0.0s
 => exporting to image                                                                                                                                                                    5.8s
 => => exporting layers                                                                                                                                                                   5.8s
 => => writing image sha256:7dcac144f49a81b834b2aa27a66791f1b85d650e4ccb6171cb37d538ed09fd1c                                                                                              0.0s
 => => naming to docker.io/library/test_app                                                                                                                                               0.0s

Hi,

I appreciate all the help and attention given!

Just to register here the solution found for the case, with the intention of helping other people who go through the same problem.

The REFPROP 10 software installation was installed over a REFPROP 9.1 installation so the fortran folder had files from both versions. So the indicated would be to do a clean installation of REFPROP and after that, use the fortran, mixtures and fluids folders generated in the lib compilation process.

Thank you Ianh