I submitted a package request for Pandoc, which is a pain to build and so I’m guessing it’ll take a while. In the meantime, I’ve been trying to get it to compile on OM, and I’ve run into a roadblock that may indicate an issue with librt.so. I’m getting an error that says file too short on this library.
Here are the steps I went through:
Enable the system for Haskell in these ways:
Go to /usr/lib64 and symlink libtinfo.so to libtinfo.so.6.
There is no problem with librt.so – librt is obsolete, the functions that used to be in it are now in libc directly.
librt.so is exactly what it should be: An empty linker script so legacy applications that still try to link with -lrt keep working.
The problem here is that pandoc is written in haskell, and the haskell linker doesn’t understand linker scripts.
(This is also the reason why we currently don’t have a pandoc package - the haskell toolchain has a chicken-and-egg problem, it needs itself to build). We’re trying to solve this, but it will take some time.
Yeah; I have no experience with C and linkers; I just knew I couldn’t get it to compile. That’s why for myself, I just installed the compiled version from GitHub as a stopgap measure until it can be packaged. No big deal, and I hope this helps others who need it in the meantime.