This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

multiple definition of fstat in stat.h when compiling a library


I am trying to compile a library I have successfully compiled in the past
using gcc-4.8.2. The library (graphviz) is no longer compiling under
gcc-7.3.0. I have contacted the library mailing list as well, but I'm not
sure which side the error originates from.

One example error message looks like this:

../../lib/expr/.libs/libexpr_C.a(sfclose.o): In function `fstat':
/mygcc/gcc-7.3.0/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed/sys/stat.h:509:
multiple definition of `fstat'
../../lib/expr/.libs/libexpr_C.a(strton.o):/mygcc/gcc-7.3.0/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed/sys/stat.h:509:
first defined here

There are many of these for other object files, but all say that fstat is
multiply defined.

Does this look familiar to anyone? Is there a workaround or something like
that?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]