First, it fails to compile like this: update-alternatives.c: In function ‘alternative_select_choice’: update-alternatives.c:1410: error: ‘_POSIX_PATH_MAX’ undeclared (first use in this function) update-alternatives.c:1410: error: (Each undeclared identifier is reported only once After adding the missing limits.h include, it fails to link: CCLD update-alternatives update-alternatives.o: In function `error': update-alternatives.c:(.text+0x111): undefined reference to `libintl_gettext' update-alternatives.o: In function `xstrdup': update-alternatives.c:(.text+0x1b7): undefined reference to `libintl_gettext' update-alternatives.o: In function `altdb_parse_error': update-alternatives.c:(.text+0x28b): undefined reference to `libintl_gettext' update-alternatives.c:(.text+0x2a6): undefined reference to `libintl_gettext' update-alternatives.o: In function `xasprintf': update-alternatives.c:(.text+0x365): undefined reference to `libintl_gettext' update-alternatives.o:update-alternatives.c:(.text+0x3fb): more undefined references to `libintl_gettext' follow after fixing this in the makefiles, it installs fine. Please review attached patch. It doesn't break anything when compiling on Linux here. If ok, I'd like to add it to the ebuild. I will report the patch upstream too.
Created attachment 242571 [details, diff] solaris.patch
pretty sure you want LTLIBINTL
thought so too, but couldn't spot the use of libtool
i assumed it used libtool based on the automake syntax in use, but i guess if it doesnt, that patch is the way to go
I need --disable-compiler-warnings added to econf on Darwin, since -Wvla seems not to be a valid flag there (added as WFLAG, enabled by default): cc1: error: unrecognized command line option "-Wvla"
Would it be possible to bump to 1.15.8.4 with econf --disable-compiler-warnings?
It's fixed in 1.15.8.4: * Fix compilation on Solaris and Darwin: - Link update-alternatives against libintl if libc does not have i18n support. - Include <limits.h> for _POSIX_MAX_PATH in update-alternatives. Thanks to Fabian Groffen <grobian@gentoo.org>. http://packages.qa.debian.org/d/dpkg/news/20100813T050215Z.html