Details
-
Bug
-
Resolution: Fixed
-
High
-
6.04.00
-
None
-
Fedora and EPEL
Description
Compiling the new geocad module fails due to conflicting definitions of the Printf function between ROOT and the geocad module's dependency opencascade:
g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -pipe -m64 -std=c++11 -fPIC -DR__HAVE_CONFIG -Wno-deprecated-declarations -pthread -DHAVE_CONFIG_H -I/usr/include/oce -Iinclude -MMD -MP -o geom/geocad/src/TGeoToOCC.o -c /home/ellert/Fedora-GIT/root/root-6.03.04/geom/geocad/src/TGeoToOCC.cxx
|
In file included from include/TNamed.h:29:0,
|
from include/TGeoShape.h:16,
|
from include/TGeoBBox.h:16,
|
from include/TGeoXtru.h:16,
|
from include/TGeoToOCC.h:21,
|
from /home/ellert/Fedora-GIT/root/root-6.03.04/geom/geocad/src/TGeoToOCC.cxx:47:
|
include/TString.h:470:37: error: ambiguating new declaration of 'void Printf(const char*, ...)'
|
__attribute__((format(printf, 1, 2)))
|
^
|
In file included from /usr/include/oce/Standard_PrimitiveTypes.hxx:46:0,
|
from /usr/include/oce/Handle_Standard_Transient.hxx:27,
|
from /usr/include/oce/Handle_MMgt_TShared.hxx:17,
|
from /usr/include/oce/Handle_TopoDS_TShape.hxx:17,
|
from /usr/include/oce/TopoDS_Shape.hxx:20,
|
from include/TGeoToOCC.h:16,
|
from /home/ellert/Fedora-GIT/root/root-6.03.04/geom/geocad/src/TGeoToOCC.cxx:47:
|
/usr/include/oce/Standard_CString.hxx:68:23: note: old declaration 'int Printf(const char*, ...)'
|
__Standard_API int Printf (const char* theFormat, ...);
|
^
|