[Pkg-openmpi-maintainers] Bug#552397: openmpi: FTBFS on hurd-i386
Pino Toscano
pino at kde.org
Sun Oct 25 23:25:38 UTC 2009
Package: openmpi
Version: 1.3.3-2
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd
Hi,
currently openmpi does not build on GNU/Hurd for various small reasons, like
unconditional usage of PATH_MAX, MAXPATHLEN, and MAXHOSTNAMELEN, usage of
sigaction::sa_sigaction, and a wrong header check for recognizing Darwin.
The attached patch hopefully fixes all the issues:
- missing SA_SIGINFO, so a sa_handler is used; show_stackframe_handler() calls
show_stackframe() with NULL parameters as that handler checks for non-NULL
siginfo_t* and context* already
- some fixed-size char[] for getcwd() to get_current_dir_name() + free()
- some fixed-size char[] for gethostname() to a dynamic realloc() loop
- one gethostname() call commented out, as it seems unused...
- look for mach-o/arch.h instead of mach/mach_host.h to determine whether it is
compiling on Darwin
- one malloc() + free() instead of a fixed-size char[PATH_MAX]
Please note that, given a .m4 macro is changed, then an autoreconf'ing of the
build system is needed.
Thanks,
--
Pino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurd_build
Type: text/x-c
Size: 8218 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openmpi-maintainers/attachments/20091026/16a8bf64/attachment-0001.bin>
More information about the Pkg-openmpi-maintainers
mailing list