[Darshan-users] Error: symbol `__isoc99_fscanf' is already defined

François Trahay francois.trahay at telecom-sudparis.eu
Tue Nov 12 05:05:36 CST 2019


Hi,

I'm having problems compiling Darshan on my laptop running Debian buster 
with MPICH-3.3.

Here's how I compile:

$ git clone https://xgitlab.cels.anl.gov/darshan/darshan.git

$ cd darshan/darshan-runtime

$ ./configure --prefix=$PWD/install CC=mpicc --with-mem-align=8 
--with-log-path=/tmp/log_darshan --with-jobid-env=NONE

$ make

[...]

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
/tmp/cc6UpHUi.s: Assembler messages:
/tmp/cc6UpHUi.s:7769: Error: symbol `__isoc99_fscanf' is already defined
make: *** [Makefile:143: lib/darshan-stdio.po] Error 1


The preprocessed file (darshan-stdio.c)  is attached. The problem is 
probably due to line 585 (in the preprocessed source code) :

extern int fscanf (FILE *__restrict __stream, const char *__restrict 
__format, ...) __asm__ ("" "__isoc99_fscanf")

If I comment this line, the compilation succeeds.


François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: darshan-stdio.preprocessed.c
Type: text/x-csrc
Size: 370903 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20191112/108bd30b/attachment-0001.bin>


More information about the Darshan-users mailing list