<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sorry, here are the commands in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060708#M117453</link>
    <description>&lt;P&gt;Sorry, here are the commands that I can do manually (basically what make is doing) to create the library and executable.&lt;/P&gt;

&lt;P&gt;In the src directory:&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=compile ifort -g -check all -I../../src -I../../fortran/src -c -o H5f90global.lo H5f90global.f90&lt;/P&gt;

&lt;P&gt;ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o .libs/H5f90global.o&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../src -I../../fortran/src -version-info 6:205:0 -o libhdf5_fortran.la -rpath /Users/brtnfld/hdf5/trunk.min/hdf5/lib H5f90global.lo ../../src/libhdf5.la -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;ranlib .libs/libhdf5_fortran.a&lt;/P&gt;

&lt;P&gt;In the test directory, which contains the main program (fortranlib_test.f90):&lt;/P&gt;

&lt;P&gt;ifort -g -check all -I../../fortran/src -I../../fortran/src -c -o fortranlib_test-fortranlib_test.o `test -f 'fortranlib_test.f90' || echo './'`fortranlib_test.f90&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src -o fortranlib_test fortranlib_test-fortranlib_test.o ../../fortran/src/libhdf5_fortran.la -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;Here is the output from each command:&lt;/P&gt;

&lt;P&gt;% /bin/sh ../../libtool --tag=FC --mode=compile ifort -g -check all -I../../src -I../../fortran/src -c -o H5f90global.lo H5f90global.f90&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90&amp;nbsp; -o .libs/H5f90global.o&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o H5f90global.o &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;
	% ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o .libs/H5f90global.o&lt;BR /&gt;
	% /bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../src -I../../fortran/src -version-info 6:205:0 -o libhdf5_fortran.la -rpath /Users/brtnfld/hdf5/trunk.min/hdf5/lib H5f90global.lo ../../src/libhdf5.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -dynamiclib -undefined dynamic_lookup -o .libs/libhdf5_fortran.6.dylib&amp;nbsp; .libs/H5f90global.o&amp;nbsp;&amp;nbsp;&amp;nbsp; ../../src/.libs/libhdf5.dylib -lz -ldl -lm&amp;nbsp;&amp;nbsp;&amp;nbsp; -install_name&amp;nbsp; /Users/brtnfld/hdf5/trunk.min/hdf5/lib/libhdf5_fortran.6.dylib -compatibility_version 7 -current_version 7.205 -single_module&lt;BR /&gt;
	libtool: link: (cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.dylib" &amp;amp;&amp;amp; ln -s "libhdf5_fortran.6.dylib" "libhdf5_fortran.dylib")&lt;BR /&gt;
	libtool: link: ar cru .libs/libhdf5_fortran.a&amp;nbsp; H5f90global.o&lt;BR /&gt;
	libtool: link: ranlib .libs/libhdf5_fortran.a&lt;BR /&gt;
	libtool: link: ( cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.la" &amp;amp;&amp;amp; ln -s "../libhdf5_fortran.la" "libhdf5_fortran.la" )&lt;BR /&gt;
	% ranlib .libs/libhdf5_fortran.a&lt;/P&gt;

&lt;P&gt;%/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src -o fortranlib_test fortranlib_test-fortranlib_test.o ../../fortran/src/libhdf5_fortran.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -g -check all -I../../fortran/src -I../../fortran/src -o .libs/fortranlib_test fortranlib_test-fortranlib_test.o&amp;nbsp; ../../fortran/src/.libs/libhdf5_fortran.dylib /Users/brtnfld/hdf5/trunk.min/src/.libs/libhdf5.dylib -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2015 16:11:23 GMT</pubDate>
    <dc:creator>Michael_B_10</dc:creator>
    <dc:date>2015-03-24T16:11:23Z</dc:date>
    <item>
      <title>Mac OS X, Problems passing COMMON with a shared library.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060706#M117451</link>
      <description>&lt;P&gt;I have the program:&lt;/P&gt;

&lt;P&gt;PROGRAM main&lt;BR /&gt;
	&amp;nbsp; USE GLOBAL&lt;BR /&gt;
	&amp;nbsp; IMPLICIT NONE&lt;BR /&gt;
	&amp;nbsp; CALL open_f()&lt;BR /&gt;
	&amp;nbsp; print*,'In test',flags(1), ACC_TRUNC_F&lt;BR /&gt;
	END&lt;/P&gt;

&lt;P&gt;and I create a shared library that contains the GLOBAL module:&lt;/P&gt;

&lt;P&gt;MODULE GLOBAL&lt;/P&gt;

&lt;P&gt;&amp;nbsp; IMPLICIT NONE&lt;/P&gt;

&lt;P&gt;&amp;nbsp; INTEGER :: flags(1)&lt;BR /&gt;
	!DEC$ATTRIBUTES DLLEXPORT :: /FLAGSN/&lt;BR /&gt;
	&amp;nbsp; COMMON /FLAGSN/ flags&lt;BR /&gt;
	&amp;nbsp; INTEGER :: ACC_TRUNC_F&lt;BR /&gt;
	&amp;nbsp; EQUIVALENCE(flags(1), ACC_TRUNC_F)&lt;BR /&gt;
	CONTAINS&lt;BR /&gt;
	&amp;nbsp; SUBROUTINE open_f()&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPLICIT NONE&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; flags(1) = 99&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; print*,'In F',flags(1), ACC_TRUNC_F&lt;BR /&gt;
	&amp;nbsp; END SUBROUTINE open_f&lt;/P&gt;

&lt;P&gt;END MODULE GLOBAL&lt;/P&gt;

&lt;P&gt;And when I run the program the values print correctly in the subroutine, but when I print it in the main program the values are zero:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;In F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&lt;BR /&gt;
	&amp;nbsp;In test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;

&lt;P&gt;I'm using intel 15 on Mac OS X 10.9. It works if I build a static library and it works building shared on Windows.&lt;/P&gt;

&lt;P&gt;What I'm I missing?&lt;/P&gt;

&lt;P&gt;Misc. information:&lt;/P&gt;

&lt;P&gt;To compile the module&lt;/P&gt;

&lt;P&gt;libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5fortran_types.f90 -o H5fortran_types.o &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;
	/bin/sh ../../libtool&amp;nbsp; --tag=FC&amp;nbsp;&amp;nbsp; --mode=compile ifort -g -check all -I../../src -I../../fortran/src&amp;nbsp; -c -o H5f90global.lo&amp;nbsp; H5f90global.f90&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90&amp;nbsp; -o .libs/H5f90global.o&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o H5f90global.o &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;/P&gt;

&lt;P&gt;To make the library (ignore all the other files in the library (They were empty for the testing, it's part of a bigger program),&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool&amp;nbsp; --tag=FC&amp;nbsp;&amp;nbsp; --mode=link ifort -g -check all -I../../src -I../../fortran/src&amp;nbsp; -version-info 6:205:0&amp;nbsp;&amp;nbsp; -o libhdf5_fortran.la -rpath /Users/brtnfld/hdf5/trunk.min/hdf5/lib H5f90global.lo H5fortran_types.lo H5_ff_F90.lo H5_ff.lo H5Aff.lo H5Dff.lo H5Eff.lo H5Fff.lo H5Gff.lo H5Iff.lo H5Lff.lo H5Off.lo H5Pff.lo H5Rff.lo H5Sff.lo H5Tff.lo H5Zff.lo H5_DBLE_InterfaceInclude.lo H5f90kit.lo H5_f.lo H5Af.lo H5Df.lo H5Ef.lo H5Ff.lo H5Gf.lo H5If.lo H5Lf.lo H5Of.lo H5Pf.lo H5Rf.lo H5Sf.lo H5Tf.lo H5Zf.lo H5Aff_F90.lo H5Dff_F90.lo H5Eff_F90.lo H5Fff_F90.lo H5Lff_F90.lo H5Off_F90.lo H5Pff_F90.lo H5Rff_F90.lo H5Tff_F90.lo HDF5.lo ../../src/libhdf5.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -dynamiclib -undefined dynamic_lookup -o .libs/libhdf5_fortran.6.dylib&amp;nbsp; .libs/H5f90global.o .libs/H5fortran_types.o .libs/H5_ff_F90.o .libs/H5_ff.o .libs/H5Aff.o .libs/H5Dff.o .libs/H5Eff.o .libs/H5Fff.o .libs/H5Gff.o .libs/H5Iff.o .libs/H5Lff.o .libs/H5Off.o .libs/H5Pff.o .libs/H5Rff.o .libs/H5Sff.o .libs/H5Tff.o .libs/H5Zff.o .libs/H5_DBLE_InterfaceInclude.o .libs/H5f90kit.o .libs/H5_f.o .libs/H5Af.o .libs/H5Df.o .libs/H5Ef.o .libs/H5Ff.o .libs/H5Gf.o .libs/H5If.o .libs/H5Lf.o .libs/H5Of.o .libs/H5Pf.o .libs/H5Rf.o .libs/H5Sf.o .libs/H5Tf.o .libs/H5Zf.o .libs/H5Aff_F90.o .libs/H5Dff_F90.o .libs/H5Eff_F90.o .libs/H5Fff_F90.o .libs/H5Lff_F90.o .libs/H5Off_F90.o .libs/H5Pff_F90.o .libs/H5Rff_F90.o .libs/H5Tff_F90.o .libs/HDF5.o&amp;nbsp;&amp;nbsp;&amp;nbsp; ../../src/.libs/libhdf5.dylib -lz -ldl -lm&amp;nbsp;&amp;nbsp;&amp;nbsp; -install_name&amp;nbsp; /Users/brtnfld/hdf5/trunk.min/hdf5/lib/libhdf5_fortran.6.dylib -compatibility_version 7 -current_version 7.205 -single_module&lt;BR /&gt;
	libtool: link: (cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.dylib" &amp;amp;&amp;amp; ln -s "libhdf5_fortran.6.dylib" "libhdf5_fortran.dylib")&lt;BR /&gt;
	libtool: link: ar cru .libs/libhdf5_fortran.a&amp;nbsp; H5f90global.o H5fortran_types.o H5_ff_F90.o H5_ff.o H5Aff.o H5Dff.o H5Eff.o H5Fff.o H5Gff.o H5Iff.o H5Lff.o H5Off.o H5Pff.o H5Rff.o H5Sff.o H5Tff.o H5Zff.o H5_DBLE_InterfaceInclude.o H5f90kit.o H5_f.o H5Af.o H5Df.o H5Ef.o H5Ff.o H5Gf.o H5If.o H5Lf.o H5Of.o H5Pf.o H5Rf.o H5Sf.o H5Tf.o H5Zf.o H5Aff_F90.o H5Dff_F90.o H5Eff_F90.o H5Fff_F90.o H5Lff_F90.o H5Off_F90.o H5Pff_F90.o H5Rff_F90.o H5Tff_F90.o HDF5.o&lt;BR /&gt;
	libtool: link: ranlib .libs/libhdf5_fortran.a&lt;BR /&gt;
	libtool: link: ( cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.la" &amp;amp;&amp;amp; ln -s "../libhdf5_fortran.la" "libhdf5_fortran.la" )&lt;/P&gt;

&lt;P&gt;And to make the program:&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool&amp;nbsp; --tag=FC&amp;nbsp;&amp;nbsp; --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src&amp;nbsp;&amp;nbsp;&amp;nbsp; -o libh5test_fortran.la&amp;nbsp; tf_F08.lo tf.lo t.lo&amp;nbsp; -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ar cru .libs/libh5test_fortran.a .libs/tf_F08.o .libs/tf.o .libs/t.o&lt;BR /&gt;
	libtool: link: ranlib .libs/libh5test_fortran.a&lt;BR /&gt;
	libtool: link: ( cd ".libs" &amp;amp;&amp;amp; rm -f "libh5test_fortran.la" &amp;amp;&amp;amp; ln -s "../libh5test_fortran.la" "libh5test_fortran.la" )&lt;BR /&gt;
	/bin/sh ../../libtool&amp;nbsp; --tag=FC&amp;nbsp;&amp;nbsp; --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src&amp;nbsp;&amp;nbsp;&amp;nbsp; -o fortranlib_test fortranlib_test-tH5F.o fortranlib_test-tH5D.o fortranlib_test-tH5R.o fortranlib_test-tH5S.o fortranlib_test-tH5T.o fortranlib_test-tH5VL.o fortranlib_test-tH5Z.o fortranlib_test-tH5Sselect.o fortranlib_test-tH5P.o fortranlib_test-tH5A.o fortranlib_test-tH5I.o fortranlib_test-tH5G.o fortranlib_test-tH5E.o fortranlib_test-tHDF5.o fortranlib_test-fortranlib_test.o libh5test_fortran.la ../../test/libh5test.la ../../fortran/src/libhdf5_fortran.la ../../src/libhdf5.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -g -check all -I../../fortran/src -I../../fortran/src -o .libs/fortranlib_test fortranlib_test-tH5F.o fortranlib_test-tH5D.o fortranlib_test-tH5R.o fortranlib_test-tH5S.o fortranlib_test-tH5T.o fortranlib_test-tH5VL.o fortranlib_test-tH5Z.o fortranlib_test-tH5Sselect.o fortranlib_test-tH5P.o fortranlib_test-tH5A.o fortranlib_test-tH5I.o fortranlib_test-tH5G.o fortranlib_test-tH5E.o fortranlib_test-tHDF5.o fortranlib_test-fortranlib_test.o&amp;nbsp; ./.libs/libh5test_fortran.a ../../test/.libs/libh5test.a ../../fortran/src/.libs/libhdf5_fortran.dylib /Users/brtnfld/hdf5/trunk.min/src/.libs/libhdf5.dylib ../../src/.libs/libhdf5.dylib -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:08:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060706#M117451</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-03-24T15:08:53Z</dc:date>
    </item>
    <item>
      <title>I'm having trouble working</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060707#M117452</link>
      <description>&lt;P&gt;I'm having trouble working through all the extraneous build stuff. Please show the build commands for just the sources you showed here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:37:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060707#M117452</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-03-24T15:37:08Z</dc:date>
    </item>
    <item>
      <title>Sorry, here are the commands</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060708#M117453</link>
      <description>&lt;P&gt;Sorry, here are the commands that I can do manually (basically what make is doing) to create the library and executable.&lt;/P&gt;

&lt;P&gt;In the src directory:&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=compile ifort -g -check all -I../../src -I../../fortran/src -c -o H5f90global.lo H5f90global.f90&lt;/P&gt;

&lt;P&gt;ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o .libs/H5f90global.o&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../src -I../../fortran/src -version-info 6:205:0 -o libhdf5_fortran.la -rpath /Users/brtnfld/hdf5/trunk.min/hdf5/lib H5f90global.lo ../../src/libhdf5.la -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;ranlib .libs/libhdf5_fortran.a&lt;/P&gt;

&lt;P&gt;In the test directory, which contains the main program (fortranlib_test.f90):&lt;/P&gt;

&lt;P&gt;ifort -g -check all -I../../fortran/src -I../../fortran/src -c -o fortranlib_test-fortranlib_test.o `test -f 'fortranlib_test.f90' || echo './'`fortranlib_test.f90&lt;/P&gt;

&lt;P&gt;/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src -o fortranlib_test fortranlib_test-fortranlib_test.o ../../fortran/src/libhdf5_fortran.la -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;Here is the output from each command:&lt;/P&gt;

&lt;P&gt;% /bin/sh ../../libtool --tag=FC --mode=compile ifort -g -check all -I../../src -I../../fortran/src -c -o H5f90global.lo H5f90global.f90&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90&amp;nbsp; -o .libs/H5f90global.o&lt;BR /&gt;
	libtool: compile:&amp;nbsp; ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o H5f90global.o &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;
	% ifort -g -check all -I../../src -I../../fortran/src -c H5f90global.f90 -o .libs/H5f90global.o&lt;BR /&gt;
	% /bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../src -I../../fortran/src -version-info 6:205:0 -o libhdf5_fortran.la -rpath /Users/brtnfld/hdf5/trunk.min/hdf5/lib H5f90global.lo ../../src/libhdf5.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -dynamiclib -undefined dynamic_lookup -o .libs/libhdf5_fortran.6.dylib&amp;nbsp; .libs/H5f90global.o&amp;nbsp;&amp;nbsp;&amp;nbsp; ../../src/.libs/libhdf5.dylib -lz -ldl -lm&amp;nbsp;&amp;nbsp;&amp;nbsp; -install_name&amp;nbsp; /Users/brtnfld/hdf5/trunk.min/hdf5/lib/libhdf5_fortran.6.dylib -compatibility_version 7 -current_version 7.205 -single_module&lt;BR /&gt;
	libtool: link: (cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.dylib" &amp;amp;&amp;amp; ln -s "libhdf5_fortran.6.dylib" "libhdf5_fortran.dylib")&lt;BR /&gt;
	libtool: link: ar cru .libs/libhdf5_fortran.a&amp;nbsp; H5f90global.o&lt;BR /&gt;
	libtool: link: ranlib .libs/libhdf5_fortran.a&lt;BR /&gt;
	libtool: link: ( cd ".libs" &amp;amp;&amp;amp; rm -f "libhdf5_fortran.la" &amp;amp;&amp;amp; ln -s "../libhdf5_fortran.la" "libhdf5_fortran.la" )&lt;BR /&gt;
	% ranlib .libs/libhdf5_fortran.a&lt;/P&gt;

&lt;P&gt;%/bin/sh ../../libtool --tag=FC --mode=link ifort -g -check all -I../../fortran/src -I../../fortran/src -o fortranlib_test fortranlib_test-fortranlib_test.o ../../fortran/src/libhdf5_fortran.la -lz -ldl -lm&lt;BR /&gt;
	libtool: link: ifort -g -check all -I../../fortran/src -I../../fortran/src -o .libs/fortranlib_test fortranlib_test-fortranlib_test.o&amp;nbsp; ../../fortran/src/.libs/libhdf5_fortran.dylib /Users/brtnfld/hdf5/trunk.min/src/.libs/libhdf5.dylib -lz -ldl -lm&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 16:11:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060708#M117453</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-03-24T16:11:23Z</dc:date>
    </item>
    <item>
      <title>I don't have a Mac readily</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060709#M117454</link>
      <description>&lt;P&gt;I don't have a Mac readily available to me - what happens if you aren't using EQUIVALENCE and assign to ACC_TRUNK_F directly? I am just trying to narrow down the situation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 17:39:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060709#M117454</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-03-24T17:39:55Z</dc:date>
    </item>
    <item>
      <title>You might need to use</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060710#M117455</link>
      <description>&lt;P&gt;You might need to use&lt;/P&gt;

&lt;P&gt;DLLEXPORT when you build the shared library&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;DLLIMPORT when you build the application using the shared library&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 17:58:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060710#M117455</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-03-24T17:58:27Z</dc:date>
    </item>
    <item>
      <title>If I change it to:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060711#M117456</link>
      <description>&lt;P&gt;If I change it to:&lt;/P&gt;

&lt;P&gt;MODULE GLOBAL&lt;/P&gt;

&lt;P&gt;&amp;nbsp; IMPLICIT NONE&lt;/P&gt;

&lt;P&gt;&amp;nbsp; INTEGER :: flags(1)&lt;BR /&gt;
	!DEC$ATTRIBUTES DLLEXPORT :: /FLAGSN/&lt;BR /&gt;
	&amp;nbsp; COMMON /FLAGSN/ flags&lt;BR /&gt;
	&amp;nbsp; INTEGER :: ACC_TRUNC_F&lt;BR /&gt;
	!&amp;nbsp; EQUIVALENCE(flags(1), ACC_TRUNC_F)&lt;BR /&gt;
	CONTAINS&lt;BR /&gt;
	&amp;nbsp; SUBROUTINE open_f()&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPLICIT NONE&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; flags(1) = 99&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ACC_TRUNC_F = flags(1)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; print*,'In F',flags(1), ACC_TRUNC_F&lt;BR /&gt;
	&amp;nbsp; END SUBROUTINE open_f&lt;/P&gt;

&lt;P&gt;END MODULE GLOBAL&lt;/P&gt;

&lt;P&gt;Then flags(1) is still 0 but ACC_TRUNK_F is correct,&lt;/P&gt;

&lt;P&gt;In F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&lt;BR /&gt;
	&amp;nbsp;In test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:06:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060711#M117456</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-03-24T18:06:38Z</dc:date>
    </item>
    <item>
      <title>Quote:jimdempseyatthecove</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060712#M117457</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;jimdempseyatthecove wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;You might need to use&lt;/P&gt;

&lt;P&gt;DLLEXPORT when you build the shared library&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;DLLIMPORT when you build the application using the shared library&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I thought that was the point of using a module, from &lt;A href="https://software.intel.com/en-us/node/535307:" target="_blank"&gt;https://software.intel.com/en-us/node/535307:&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"When a module is used in other program units, through the &lt;SPAN class="keyword"&gt;USE&lt;/SPAN&gt; statement, any objects in the module with the DLLEXPORT property are treated in the program using the module as if they were declared with the DLLIMPORT property. So, a main program that uses a module contained in a DLL has the correct import attributes for all objects exported from the DLL."&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:10:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060712#M117457</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-03-24T18:10:59Z</dc:date>
    </item>
    <item>
      <title>Michael is correct - the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060713#M117458</link>
      <description>&lt;P&gt;Michael is correct - the DLLEXPORT in the module turns into a DLLIMPORT on USE. I am not sure if you even need this on OS X - I thought it was a Windows thing only, but I could be wrong. I do note that you didn't DLLEXPORT open_f - this would be required on Windows but apparently not on OS X.&lt;/P&gt;

&lt;P&gt;Thanks for doing the experiment. I now have enough to send on to the developers. Issue ID is&amp;nbsp;DPD200368212.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060713#M117458</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-03-24T19:29:00Z</dc:date>
    </item>
    <item>
      <title>The behavior of the program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060714#M117459</link>
      <description>&lt;P&gt;The behavior of the program is as if there were two ACC_TRUNC_F's. One declared and used in the scope of the PROGRAM, and the other declared and used in the scope of the DLL. In order for this to happen, you must be linking in a .o file that contains the ACC_TRUNC_F (either directly or indirectly via a static library). *** Note, this variable may be coming in unintentionally by way of linking in one of your older static libraries that happen to contain this variable.&lt;/P&gt;

&lt;P&gt;Edit: Try changing the name to something you know has never been used before. How about:&lt;/P&gt;

&lt;P&gt;ACC_TRUNC_F_BUG_CHECK&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060714#M117459</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-03-24T21:37:00Z</dc:date>
    </item>
    <item>
      <title>It's simply a compiler bug on</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060715#M117460</link>
      <description>&lt;P&gt;It's simply a compiler bug on OS X only. It works fine on Windows and Linux. The EQUIVALENCE is messing up the variable import.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:39:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060715#M117460</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-03-24T21:39:35Z</dc:date>
    </item>
    <item>
      <title>Thanks Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060716#M117461</link>
      <description>&lt;P&gt;Thanks Steve,&lt;/P&gt;

&lt;P&gt;I thought maybe libtool and/or ranlib was doing something to the library, but I also see the problem using CMake. I look forward to having a fix as we've had this problem for sometime now.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:01:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060716#M117461</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-03-25T14:01:46Z</dc:date>
    </item>
    <item>
      <title>Has there been an update for </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060717#M117462</link>
      <description>&lt;P&gt;Has there been an update for&amp;nbsp; Issue ID&amp;nbsp; DPD200368212 ?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 20:51:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060717#M117462</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2015-09-03T20:51:37Z</dc:date>
    </item>
    <item>
      <title>Sorry, nothing as of yet.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060718#M117463</link>
      <description>&lt;P&gt;Sorry, nothing as of yet.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2015 09:48:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060718#M117463</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-06T09:48:45Z</dc:date>
    </item>
    <item>
      <title>I see that this has been</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060719#M117464</link>
      <description>&lt;P&gt;I see that this has been fixed in intel 17, but can you tell me the original Intel version that this was fixed in?&lt;/P&gt;

&lt;P&gt;Thanks for fixing this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 22:01:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060719#M117464</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2017-05-17T22:01:53Z</dc:date>
    </item>
    <item>
      <title>The internal tracking issue</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060720#M117465</link>
      <description>&lt;P&gt;The internal tracking issue is not yet closed nor does it indicate anything has been fixed/changed; however, there are some recent notes suggesting this is reproducible without EQUIVALENCE and that it may relate to the default linker behavior. Comments&amp;nbsp;suggest using the linker option "&lt;STRONG&gt;-commons use_dylibs&lt;/STRONG&gt;" yields the expected results. I expect your macOS and Xcode are updated now vs. versions used back when this was first reported so it could be an underlying change in a newer linker that's at play. I'll inquire w/Development about the internal tracking record.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:13:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060720#M117465</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2017-05-18T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Thank you very much for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060721#M117466</link>
      <description>&lt;P&gt;Thank you very much for pointing out&amp;nbsp; -Wl,-commons,use_dylibs&lt;/P&gt;

&lt;P&gt;That indeed fixed the issue for both gnu and Intel compilers, and for all versions of OSX that I test on (10.9,10.10,10.11).&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:29:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Mac-OS-X-Problems-passing-COMMON-with-a-shared-library/m-p/1060721#M117466</guid>
      <dc:creator>Michael_B_10</dc:creator>
      <dc:date>2017-05-23T14:29:53Z</dc:date>
    </item>
  </channel>
</rss>

