#19 Build error when graphviz support is enabled on Linux

closed-works-for-me
nobody
None
5
2013-01-25
2012-11-11
Peter Simons
No

Building CXX object CMakeFiles/qfsm.dir/src/ImportGraphviz.cpp.o
In file included from /nix/store/agssal7mknf9qa0v3vxzd87fl6y3qn4y-qt-4.8.3/include/QtCore/qbytearray.h:48:0,
from /nix/store/agssal7mknf9qa0v3vxzd87fl6y3qn4y-qt-4.8.3/include/QtCore/qstring.h:46,
from /tmp/nix-build-qfsm-0.53.0.drv-0/qfsm-0.53.0-Source/src/TransitionInfo.h:27,
from /tmp/nix-build-qfsm-0.53.0.drv-0/qfsm-0.53.0-Source/src/TransitionInfoBin.h:22,
from /tmp/nix-build-qfsm-0.53.0.drv-0/qfsm-0.53.0-Source/src/ImportGraphviz.cpp:30:
/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13/include/string.h:69:33: error: declaration of 'int memcmp(const void*, const void*, size_t) throw ()' has a different exception specifier
/nix/store/00kdsih319hx11bhwck0fydpf4p6p8sz-graphviz-2.28.0/include/graphviz/cdt.h:242:13: error: from previous declaration 'int memcmp(const void*, const void*, size_t)'
/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13/include/string.h:144:33: error: declaration of 'int strcmp(const char*, const char*) throw ()' has a different exception specifier
/nix/store/00kdsih319hx11bhwck0fydpf4p6p8sz-graphviz-2.28.0/include/graphviz/cdt.h:243:13: error: from previous declaration 'int strcmp(const char*, const char*)'

Discussion

  • Stefan Duffner
    Stefan Duffner
    2012-11-20

    I cannot reproduce the problem with Linux 3.2.0 / Ubuntu 12.04 / Qt 4.8.1 / graphviz 2.26.3.
    You seem to have graphviz 2.28 installed, and it seems that the problem comes from an incompatibility between graphviz 2.28 and Qt.
    I will do some further investigation.

    Stefan

     
  • Stefan Duffner
    Stefan Duffner
    2013-01-25

    • status: open --> closed-works-for-me