<?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 the fix of this problem would in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052669#M21250</link>
    <description>&lt;P&gt;the fix of this problem would be available very soon into the MKL v.11.2 &lt;STRONG&gt;update 1&lt;/STRONG&gt;. When this update would be available, we will post the announcement on the top of the forum.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2014 20:06:44 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2014-11-11T20:06:44Z</dc:date>
    <item>
      <title>Dynamic Linking fails due to undefined reference to __isoc99_sscanf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052668#M21249</link>
      <description>&lt;P&gt;I've recently upgraded from Intel Fortran 2013 to 2015 and now I'm having trouble linking with MKL on Linux. Now, any kind of linking (dynamic, static, or with just -static-intel) fails with errors due to undefined references to __isoc99_sscanf. (Dynamic linking also has trouble with __isoc99_fscanf.) I've seen a few posts that at first glance appear similar:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/link-error-when-static-linking-to-intel-mkl-on-linux-6"&gt;https://software.intel.com/en-us/articles/link-error-when-static-linking-to-intel-mkl-on-linux-6&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/forums/topic/393920"&gt;https://software.intel.com/en-us/forums/topic/393920&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/forums/topic/393889"&gt;https://software.intel.com/en-us/forums/topic/393889&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, each of those posts refer to Intel Fortran 2013, and *none* of them cover problems with dynamic linking. It seems that MKL now depends on some static component that I am apparently missing. I can't figure out how to link successfully. Is this a bug, or is there a viable workaround?&lt;/P&gt;

&lt;P&gt;Below I have provided a simplified test case (mkl_test.f90), my Makefile, and the output with the three variations of linking.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program mkl_test

use LAPACK95

implicit none
integer :: stat
integer, parameter :: length = 5
real(kind = 8) :: x(length), y(length), A(length, 3), b(length)

print *, 'Start.'

call gels(A, b, info = stat)
if (stat .ne. 0) then
    print *, 'Bad status from gels.'
else
    print *, 'Success'
end if

end program mkl_test&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;FC := ifort

all: mkl_test

clean:
    rm -f mkl_test mkl_test.o

mkl_test: mkl_test.o
    $(FC) -o $@ $^ $(FCFLAGS) $(FLFLAGS) -lmkl_lapack95_lp64 -mkl -static-intel

mkl_test.o: mkl_test.f90
    $(FC) -c -o $@ $&amp;lt; $(FCFLAGS) -mkl&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ make clean all
rm -f mkl_test mkl_test.o
ifort -c -o mkl_test.o mkl_test.f90  -mkl
ifort -o mkl_test mkl_test.o   -lmkl_lapack95_lp64 -mkl
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__isoc99_sscanf'
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.so: undefined reference to `__isoc99_fscanf'
make: *** [mkl_test] Error 1


$ make clean all
rm -f mkl_test mkl_test.o
ifort -c -o mkl_test.o mkl_test.f90  -mkl
ifort -o mkl_test mkl_test.o   -lmkl_lapack95_lp64 -mkl -static
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.a(load_library.o): In function `mkl_ueaa_prv_load_backend_lib':
loadl_library.c:(.text+0x1d1): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.a(load_dll_static_patched.o): In function `mkl_serv_cpu_detect':
../../../../serv/kernel/load_dll.c(.text+0x86): undefined reference to `__isoc99_sscanf'
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_intel_thread.a(d__gemm_drv.o): In function `mkl_blas_dgemm':
../../../../blas/thread/level3/common/_gemm.c:(text+0xe29): undefined reference to `__isoc99_sscanf'
make: *** [mkl_test] Error 1


$ make clean all
rm -f mkl_test mkl_test.o
ifort -c -o mkl_test.o mkl_test.f90  -mkl
ifort -o mkl_test mkl_test.o   -lmkl_lapack95_lp64 -mkl -static-intel
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_core.a(load_dll_static_patched.o): In function `mkl_serv_cpu_detect':
../../../../serv/kernel/load_dll.c(.text+0x86): undefined reference to `__isoc99_sscanf'
/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/libmkl_intel_thread.a(d__gemm_drv.o): In function `mkl_blas_dgemm':
../../../../blas/thread/level3/common/_gemm.c:(text+0xe29): undefined reference to `__isoc99_sscanf'
make: *** [mkl_test] Error 1

&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052668#M21249</guid>
      <dc:creator>lrobison_arl</dc:creator>
      <dc:date>2014-11-10T20:13:19Z</dc:date>
    </item>
    <item>
      <title>the fix of this problem would</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052669#M21250</link>
      <description>&lt;P&gt;the fix of this problem would be available very soon into the MKL v.11.2 &lt;STRONG&gt;update 1&lt;/STRONG&gt;. When this update would be available, we will post the announcement on the top of the forum.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2014 20:06:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052669#M21250</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-11-11T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Hello Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052670#M21251</link>
      <description>&lt;P&gt;Hello Gennady,&lt;/P&gt;

&lt;P&gt;Thank you for the information and for putting together a fix. Do you have an estimate of when that update might be available?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:45:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052670#M21251</guid>
      <dc:creator>lrobison_arl</dc:creator>
      <dc:date>2014-11-20T19:45:00Z</dc:date>
    </item>
    <item>
      <title>please see the the latest ML</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052671#M21252</link>
      <description>&lt;P&gt;please see the the latest ML 11.2 &lt;STRONG&gt;Update 1&lt;/STRONG&gt; available right now&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 03:49:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Dynamic-Linking-fails-due-to-undefined-reference-to-isoc99/m-p/1052671#M21252</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-11-25T03:49:51Z</dc:date>
    </item>
  </channel>
</rss>

