Hi Ingo, On Thu, Dec 06 2018 at 09:45:31 PM, Ingo Schwarze <schwa...@usta.de> wrote: > i found out more about why the mom test is failing on Solaris 11. > It turns out not just the test is broken, but there is likely a > portability issue in gropdf(1). > > I see this in the build log: > > GROFF contrib/mom/examples/typesetting.pdf > Negative length at /home/schwarze/groff-1.22.4.rc4p1.solaris11/build/gropdf [...] > I guess the length is supposed to be 176 + 2 * 256 = 688 (little endian) > but is instead calculated as 176 * 256^3 + 6 * 256^2 = 2953183232 > (big endian). > > Frankly, that looks like an endianness bug. Did anybody ever test > gropdf(1) on a big-endian platform?
No, never. So the test server farm you are using gives you access to a real SPARC station? I've just installed a Solaris 11 image in a virtual machine, with your workaround 'export groff_cv_decl_needed_hypot=no' I have no build issue, 'make check' passes and the mom pdf examples are correcly generated. So you are probably right, it should be an endianness issue. > Not sure what to do about it, though, since i don't really understand > the code in the GetChunk() function... I let Deri answer to that... Regards, Bertrand