nomeata / arbtt

arbtt, the automatic rule-based time-tracker
http://arbtt.nomeata.de/
GNU General Public License v2.0
314 stars 36 forks source link

Issue with libffi - missing dependency or outdated #143

Closed Konzertheld closed 2 years ago

Konzertheld commented 2 years ago

More dependency issues, probably...

arbtt-stats: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory

libffi's ABI version is now 8, so version 7 was uninstalled from Arch-based systems. Version 7 is still available so I could add that as a dependency to the package. Previously, it was not necessary to list it as an explicit dependency because the Haskell compiler needs libffi anyway - but it uses the most recent version, 8.

Alternatively, if possible, the issue could be resolved if arbtt could use ABI version 8, too.

nomeata commented 2 years ago

That's odd, and smells more like a problem with the Arch package than the actual source. Maybe the package you tried to install was built against older libffi?

Konzertheld commented 2 years ago

The package pulls the source from Hackage and then uses runhaskell Setup configure and build, apart from that it does little more than making sure dependencies are installed (not taking care of libffi because that is not mentioned as a dependency on Hackage). As libffi ABI 7 was not installed at the time of building, I do not see how haskell could have built against it.

nomeata commented 2 years ago

Me neither :-)

Konzertheld commented 2 years ago

damn I know what happened. I had old binaries from manual compiling without a package a year ago or so. For some reason they ended up in my path, so I did not actually use the binaries I built with the package... and a year ago, ABI version was still 7.

notabug :)