Mingw-packages: graphviz: fails to link at runtime, post_install errors (was: Package request: graphviz))

Created on 11 Aug 2015  ·  10Comments  ·  Source: msys2/MINGW-packages

Would it be possible to package Graphviz for msys2 output targets? Its dot, twopi and neato commands are very common visualization tools in the POSIX world. Additionally, its website is currently saying that its own Windows builds are due to be discontinued:

Due to organizational changes, the Graphviz web site will see some modifications in the near future. In particular, it will probably no longer provide binary packages for Windows and Macs. The latter can be obtained via Macports or Home Brew. If someone wants to set up Appveyor for Windows, we would be grateful.

MyPaint's profiling code is just one example of many uses, although other examples are more likely to be server-side website things (just about every wiki has a module for it, for example).

There may be some issues getting it ported to msys2 see: http://www.graphviz.org/content/build-under-msys2.

Most helpful comment

It will be available when (if) someone fixes it.

All 10 comments

+1

I see that graphviz-2.38.0 is in git repository now, is it someone working on it!?

When i try to build him and after configuring with "dot -c" i got error
Warning: Could not load "G:msys64mingw32binlibgvplugin_devil-6.dll" - The specified procedure could not be found.
It seems to be a problem with mingw-w64-libmng, if i rebuild it with "configure && make" instead of "cmake" it works after rebuilding mingw-w64-ResIL (it needs patches to build with gcc-5) with that.

Is that acceptable or is there some reason why it must be built with cmake?
May additional library be added to msys2-mingw stack as libann, libgts and liblasi?
I am interested in last one as only that support utf-8 characters in ps/ps2 output.

A year later - still no graphviz found by pacman. However I would love to see these tools in msys2!

It will be available when (if) someone fixes it.

Some possible progress by @Alexpux , not sure on the state of usability?
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-graphviz

Interested in this as used by Gramps chart reports which use utf-8 characters, as mentioned by @bpisoj above (who packages the MS-Windows Gramps AIO - All in one installer)

https://gramps-project.org/wiki/index.php?title=Gramps_for_Windows_with_MSYS2#Issue

graphviz is in the repo now, not sure how well it works. Can someone give it a try?

pacman -S mingw-w64-i686-graphviz

Hmm... I have an issue with that installation:

$ pacman -S mingw-w64-i686-graphviz
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Pakete (1) mingw-w64-i686-graphviz-2.40.1-1

Gesamtgröße der installierten Pakete:  14,75 MiB

:: Installation fortsetzen? [J/n]
(1/1) Prüfe Schlüssel im Schlüsselring                                                          [#######################################################] 100%
(1/1) Überprüfe Paket-Integrität                                                                [#######################################################] 100%
(1/1) Lade Paket-Dateien                                                                        [#######################################################] 100%
(1/1) Prüfe auf Dateikonflikte                                                                  [#######################################################] 100%
(1/1) Überprüfe verfügbaren Festplattenspeicher                                                 [#######################################################] 100%
:: Verarbeite Paketänderungen...
(1/1) Installiere mingw-w64-i686-graphviz                                                       [#######################################################] 100%
C:/msys64/mingw32/bin/dot.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
Fehler: command (/usr/bin/bash /usr/bin/bash -c . /tmp/alpm_b4EF7q/.INSTALL; post_install 2.40.1-1 ) failed to execute correctly

@Smasherr reproduced here. The 64-bit install is a little more helpful about the name of the missing lib but... it isn't really missing?

testuser@win7test MSYS ~
$ pacman -S mingw-w64-x86_64-graphviz mingw-w64-i686-graphviz
resolving dependencies...
looking for conflicting packages...

Packages (36) mingw-w64-i686-c-ares-1.13.0-4  mingw-w64-i686-curl-7.57.0-1
              mingw-w64-i686-devil-1.8.0-3  mingw-w64-i686-giflib-5.1.4-2
              mingw-w64-i686-icu-58.2-2  mingw-w64-i686-ilmbase-2.2.1-1
              mingw-w64-i686-jansson-2.10-1  mingw-w64-i686-libgd-2.2.5-1
              mingw-w64-i686-libidn2-2.0.4-1
              mingw-w64-i686-libimagequant-2.8.2-2
              mingw-w64-i686-libmetalink-0.1.3-3  mingw-w64-i686-libmng-2.0.3-4
              mingw-w64-i686-libsquish-1.15-1  mingw-w64-i686-libssh2-1.8.0-1
              mingw-w64-i686-libunistring-0.9.8-1
              mingw-w64-i686-libwebp-0.6.1-1  mingw-w64-i686-nghttp2-1.29.0-1
              mingw-w64-i686-nspr-4.17-1  mingw-w64-i686-nss-3.33-1
              mingw-w64-i686-openexr-2.2.1-1  mingw-w64-i686-openjpeg2-2.3.0-1
              mingw-w64-i686-poppler-0.62.0-2
              mingw-w64-i686-poppler-data-0.4.8-1
              mingw-w64-i686-xpm-nox-4.2.0-5  mingw-w64-x86_64-devil-1.8.0-3
              mingw-w64-x86_64-giflib-5.1.4-2  mingw-w64-x86_64-ilmbase-2.2.1-1
              mingw-w64-x86_64-libgd-2.2.5-1
              mingw-w64-x86_64-libimagequant-2.8.2-2
              mingw-w64-x86_64-libmng-2.0.3-4
              mingw-w64-x86_64-libsquish-1.15-1
              mingw-w64-x86_64-libwebp-0.6.1-1
              mingw-w64-x86_64-openexr-2.2.1-1
              mingw-w64-x86_64-xpm-nox-4.2.0-5
              mingw-w64-i686-graphviz-2.40.1-1
              mingw-w64-x86_64-graphviz-2.40.1-1

Total Download Size:    42.43 MiB
Total Installed Size:  192.37 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-i686-libm...   258.4 KiB   740K/s 00:00 [#####################] 100%
 mingw-w64-i686-libs...    52.2 KiB  25.5M/s 00:00 [#####################] 100%
 mingw-w64-i686-ilmb...   145.6 KiB  20.3M/s 00:00 [#####################] 100%
 mingw-w64-i686-open...     2.9 MiB  8.10M/s 00:00 [#####################] 100%
 mingw-w64-i686-devi...   254.8 KiB  49.8M/s 00:00 [#####################] 100%
 mingw-w64-i686-libi...    58.0 KiB  56.6M/s 00:00 [#####################] 100%
 mingw-w64-i686-gifl...    54.3 KiB  0.00B/s 00:00 [#####################] 100%
 mingw-w64-i686-libw...   429.8 KiB  70.0M/s 00:00 [#####################] 100%
 mingw-w64-i686-xpm-...    60.6 KiB  59.2M/s 00:00 [#####################] 100%
 mingw-w64-i686-libg...   274.6 KiB  44.7M/s 00:00 [#####################] 100%
 mingw-w64-i686-c-ar...    92.8 KiB  45.3M/s 00:00 [#####################] 100%
 mingw-w64-i686-libu...   621.4 KiB  60.7M/s 00:00 [#####################] 100%
 mingw-w64-i686-libi...   100.3 KiB  97.9M/s 00:00 [#####################] 100%
 mingw-w64-i686-libm...    59.7 KiB  58.3M/s 00:00 [#####################] 100%
 mingw-w64-i686-libs...   228.5 KiB  44.6M/s 00:00 [#####################] 100%
 mingw-w64-i686-jans...    60.1 KiB  29.4M/s 00:00 [#####################] 100%
 mingw-w64-i686-nght...   195.3 KiB  95.4M/s 00:00 [#####################] 100%
 mingw-w64-i686-curl...  1089.6 KiB  70.9M/s 00:00 [#####################] 100%
 mingw-w64-i686-icu-...    16.2 MiB  10.5M/s 00:02 [#####################] 100%
 mingw-w64-i686-nspr...   320.8 KiB  52.2M/s 00:00 [#####################] 100%
 mingw-w64-i686-nss-...  1710.3 KiB  13.5M/s 00:00 [#####################] 100%
 mingw-w64-i686-open...   625.7 KiB  87.3M/s 00:00 [#####################] 100%
 mingw-w64-i686-popp...  1464.8 KiB  84.1M/s 00:00 [#####################] 100%
 mingw-w64-i686-popp...  1419.7 KiB  86.7M/s 00:00 [#####################] 100%
 mingw-w64-i686-grap...     4.7 MiB  12.7M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-li...   277.0 KiB  67.6M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-li...    53.1 KiB  51.9M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-il...   144.8 KiB  47.1M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-op...     2.9 MiB  12.0M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-de...   236.8 KiB  57.8M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-li...    60.1 KiB  58.7M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-gi...    54.6 KiB  53.3M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-li...   429.3 KiB   105M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-xp...    62.4 KiB  30.5M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-li...   280.2 KiB  34.2M/s 00:00 [#####################] 100%
 mingw-w64-x86_64-gr...     4.7 MiB  12.7M/s 00:00 [#####################] 100%
(36/36) checking keys in keyring                   [#####################] 100%
(36/36) checking package integrity                 [#####################] 100%
(36/36) loading package files                      [#####################] 100%
(36/36) checking for file conflicts                [#####################] 100%
(36/36) checking available disk space              [#####################] 100%
:: Processing package changes...
( 1/36) installing mingw-w64-x86_64-libmng         [#####################] 100%
( 2/36) installing mingw-w64-x86_64-libsquish      [#####################] 100%
( 3/36) installing mingw-w64-x86_64-ilmbase        [#####################] 100%
( 4/36) installing mingw-w64-x86_64-openexr        [#####################] 100%
( 5/36) installing mingw-w64-x86_64-devil          [#####################] 100%
( 6/36) installing mingw-w64-x86_64-libimagequant  [#####################] 100%
( 7/36) installing mingw-w64-x86_64-giflib         [#####################] 100%
( 8/36) installing mingw-w64-x86_64-libwebp        [#####################] 100%
( 9/36) installing mingw-w64-x86_64-xpm-nox        [#####################] 100%
(10/36) installing mingw-w64-x86_64-libgd          [#####################] 100%
(11/36) installing mingw-w64-x86_64-graphviz       [#####################] 100%
C:/msys64/mingw64/bin/dot.exe: error while loading shared libraries: libcgraph-6.dll: cannot open shared object file: No such file or directory
error: command (/usr/bin/bash /usr/bin/bash -c . /tmp/alpm_YoSKK1/.INSTALL; post_install 2.40.1-1 ) failed to execute correctly
(12/36) installing mingw-w64-i686-libmng           [#####################] 100%
(13/36) installing mingw-w64-i686-libsquish        [#####################] 100%
(14/36) installing mingw-w64-i686-ilmbase          [#####################] 100%
(15/36) installing mingw-w64-i686-openexr          [#####################] 100%
(16/36) installing mingw-w64-i686-devil            [#####################] 100%
(17/36) installing mingw-w64-i686-libimagequant    [#####################] 100%
(18/36) installing mingw-w64-i686-giflib           [#####################] 100%
(19/36) installing mingw-w64-i686-libwebp          [#####################] 100%
(20/36) installing mingw-w64-i686-xpm-nox          [#####################] 100%
(21/36) installing mingw-w64-i686-libgd            [#####################] 100%
(22/36) installing mingw-w64-i686-c-ares           [#####################] 100%
(23/36) installing mingw-w64-i686-libunistring     [#####################] 100%
(24/36) installing mingw-w64-i686-libidn2          [#####################] 100%
(25/36) installing mingw-w64-i686-libmetalink      [#####################] 100%
(26/36) installing mingw-w64-i686-libssh2          [#####################] 100%
(27/36) installing mingw-w64-i686-jansson          [#####################] 100%
(28/36) installing mingw-w64-i686-nghttp2          [#####################] 100%
(29/36) installing mingw-w64-i686-curl             [#####################] 100%
(30/36) installing mingw-w64-i686-icu              [#####################] 100%
(31/36) installing mingw-w64-i686-nspr             [#####################] 100%
(32/36) installing mingw-w64-i686-nss              [#####################] 100%
(33/36) installing mingw-w64-i686-openjpeg2        [#####################] 100%
(34/36) installing mingw-w64-i686-poppler-data     [#####################] 100%
(35/36) installing mingw-w64-i686-poppler          [#####################] 100%
Optional dependencies for mingw-w64-i686-poppler
    mingw-w64-i686-glib2: libpoppler-glib [installed]
    mingw-w64-i686-qt5: libpoppler-qt5
(36/36) installing mingw-w64-i686-graphviz         [#####################] 100%
C:/msys64/mingw32/bin/dot.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
error: command (/usr/bin/bash /usr/bin/bash -c . /tmp/alpm_TTeDxT/.INSTALL; post_install 2.40.1-1 ) failed to execute correctly

So let's have a look at what got installed...

testuser@win7test MINGW64 ~
$ ldd 'C:/msys64/mingw64/bin/dot.exe'
        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x77100000)
        kernel32.dll => /c/Windows/system32/kernel32.dll (0x76ee0000)
        KERNELBASE.dll => /c/Windows/system32/KERNELBASE.dll (0x7fefd0c0000)
        libgvc-6.dll => /mingw64/bin/libgvc-6.dll (0x70ec0000)
        libcdt-5.dll => /mingw64/bin/libcdt-5.dll (0x6ecc0000)
        msvcrt.dll => /c/Windows/system32/msvcrt.dll (0x7fefdd00000)
        libcgraph-6.dll => /mingw64/bin/libcgraph-6.dll (0x659c0000)
        libpathplan-4.dll => /mingw64/bin/libpathplan-4.dll (0x6bb40000)
        USER32.dll => /c/Windows/system32/USER32.dll (0x77000000)
        GDI32.dll => /c/Windows/system32/GDI32.dll (0x7fefd910000)
        LPK.dll => /c/Windows/system32/LPK.dll (0x7fefda20000)
        USP10.dll => /c/Windows/system32/USP10.dll (0x7fefdfa0000)
        libexpat-1.dll => /mingw64/bin/libexpat-1.dll (0x68f40000)

testuser@win7test MINGW64 ~
$ dot --help
C:/msys64/mingw64/bin/dot.exe: error while loading shared libraries: libcgraph-6.dll: cannot open shared object file: No such file or directory

testuser@win7test MINGW64 ~
$ ls -ld /mingw64/bin/libcgraph-6.dll
-rwxr-xr-x 1 testuser None 135002 Jan 26 22:24 /mingw64/bin/libcgraph-6.dll

testuser@win7test MINGW64 ~
$ file /mingw64/bin/libcgraph-6.dll
/mingw64/bin/libcgraph-6.dll: PE32+ executable (DLL) (console) x86-64 (stripped to external PDB), for MS Windows

testuser@win7test MINGW64 ~
$ pacman -Qo /mingw64/bin/libcgraph-6.dll
/mingw64/bin/libcgraph-6.dll is owned by mingw-w64-x86_64-graphviz 2.40.1-1

testuser@win7test MINGW64 ~
$ 

Not sure what's going on here.

Just tested and it's working here. @achadwick #3415 maybe?

@lazka Yep, that fixes it.

Everyone: libtool is a missing dependency right now. If you need graphviz right now, you can fix your installs by installing one of mingw-w64-x86_64-graphviz or mingw-w64-i686-graphviz first, and then (re)-running the graphviz install command.

Graphviz is now built for MSYS2 however, and the installation fallout from this issue is now being handled in #3415.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joankaradimov picture joankaradimov  ·  5Comments

smf- picture smf-  ·  7Comments

gdo picture gdo  ·  8Comments

MenaceInc picture MenaceInc  ·  6Comments

jagannatharjun picture jagannatharjun  ·  3Comments