<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
FYI, we did finally commit a fix for this bug on our master branch,
and we'll include it in the 3.2.0 release.<br>
<br>
Newer libc implementations were defining two of the fscanf family of
functions we intercept (fscanf & __isoc99_fscanf) as aliases
using assembler tricks, which was leading to the multiple
definitions error. We now detect this behavior at configure time and
only enable one of the wrappers in that case.<br>
<br>
Thanks again for the bug report.<br>
<br>
--Shane<br>
<br>
<div class="moz-cite-prefix">On 11/12/19 5:05 AM, François Trahay
via Darshan-users wrote:<br>
</div>
<blockquote type="cite" cite="mid:c23ca21a-0424-6b16-351e-b3c910cfc8fd@telecom-sudparis.eu">Hi,
<br>
<br>
I'm having problems compiling Darshan on my laptop running Debian
buster with MPICH-3.3.
<br>
<br>
Here's how I compile:
<br>
<br>
$ git clone <a class="moz-txt-link-freetext" href="https://xgitlab.cels.anl.gov/darshan/darshan.git">https://xgitlab.cels.anl.gov/darshan/darshan.git</a>
<br>
<br>
$ cd darshan/darshan-runtime
<br>
<br>
$ ./configure --prefix=$PWD/install CC=mpicc --with-mem-align=8
--with-log-path=/tmp/log_darshan --with-jobid-env=NONE
<br>
<br>
$ make
<br>
<br>
[...]
<br>
<br>
mpicc -DDARSHAN_CONFIG_H=\"darshan-runtime-config.h\" -I . -I.
-I./../ -g -O2 -D_LARGEFILE64_SOURCE -shared -fpic -DPIC
-DDARSHAN_PRELOAD -c lib/darshan-stdio.c -o lib/darshan-stdio.po
<br>
/tmp/cc6UpHUi.s: Assembler messages:
<br>
/tmp/cc6UpHUi.s:7769: Error: symbol `__isoc99_fscanf' is already
defined
<br>
make: *** [Makefile:143: lib/darshan-stdio.po] Error 1
<br>
<br>
<br>
The preprocessed file (darshan-stdio.c) is attached. The problem
is probably due to line 585 (in the preprocessed source code) :
<br>
<br>
extern int fscanf (FILE *__restrict __stream, const char
*__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
<br>
<br>
If I comment this line, the compilation succeeds.
<br>
<br>
<br>
François
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Darshan-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Darshan-users@lists.mcs.anl.gov">Darshan-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/darshan-users">https://lists.mcs.anl.gov/mailman/listinfo/darshan-users</a>
</pre>
</blockquote>
<br>
</body>
</html>