Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320131 - sys-devel/m4-1.4.14-r1 does not compile on OSX (POSIX_SPAWN_SETSCHEDPARAM undeclared)
Summary: sys-devel/m4-1.4.14-r1 does not compile on OSX (POSIX_SPAWN_SETSCHEDPARAM und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 320393 320693 (view as bug list)
Depends on: 310335
Blocks:
  Show dependency tree
 
Reported: 2010-05-17 10:19 UTC by Sven Schwyn (svoop)
Modified: 2010-05-20 17:59 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2010-05-17 10:19:12 UTC
Upgrading m4 from 1.4.14 to 1.4.14-r1 causes the following error:

i686-apple-darwin9-gcc -std=gnu99  -I.     -O2 -pipe -march=nocona -MT execute.o -MD -MP -MF .deps/execute.Tpo -c -o execute.o execute.c
In file included from execute.c:47:
./spawn.h:162: error: 'POSIX_SPAWN_SETSCHEDPARAM' undeclared here (not in a function)
./spawn.h:162: error: 'POSIX_SPAWN_SETSCHEDULER' undeclared here (not in a function)
make[3]: *** [execute.o] Error 1
make[3]: Leaving directory `/Gentoo/var/tmp/portage/sys-devel/m4-1.4.14-r1/work/m4-1.4.14/lib'

Reproducible: Always

Steps to Reproduce:




Portage 2.2.00.15842-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 10.3.0 i386)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-10.3.0-i386-32bit
Timestamp of tree: Mon, 17 May 2010 07:08:25 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
dev-util/cmake:      2.8.1
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2-r00.1, 1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=""
PKGDIR="/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Gentoo/var/tmp"
PORTDIR="/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Gentoo/var/lib/layman/bitcetera-prefix /Gentoo/usr/local/portage/local"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Florian CROUZAT (SuperFlo) 2010-05-17 12:41:18 UTC
Also happens here on x64-macos.
(System uname: Darwin-10.3.0-i386-64bit)
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-18 13:48:04 UTC
I suspect that if you recompiled 1.4.14, it would have the same issue because it is related to the patch for bug 310335. Please confirm.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-18 13:51:44 UTC
*** Bug 320393 has been marked as a duplicate of this bug. ***
Comment 4 Sven Schwyn (svoop) 2010-05-18 13:55:35 UTC
@Jeremy: You're right, 1.4.14 doesn't compile neither.
Comment 5 Fabian Groffen gentoo-dev 2010-05-20 07:46:50 UTC
*** Bug 320693 has been marked as a duplicate of this bug. ***
Comment 6 Fabian Groffen gentoo-dev 2010-05-20 07:51:30 UTC
The ebuild has (or had) two src_unpack funcs, maybe it helps when the gnulib_spawn patch actually gets applied.

Can someone try if it compiles when removing the entire src_unpack function which applies the interix patch?
Comment 7 Sven Schwyn (svoop) 2010-05-20 08:03:27 UTC
> Can someone try if it compiles when removing the entire src_unpack function
> which applies the interix patch?

Same error if the first src_unpack is removed (at least on my Mac).

Furthermore, the interix patch .13 does not apply, the interix patch .12 does apply but the ebuild still drops the above error - no matter whether the interix patch is applied before or after the gnulib_spawn patch.
Comment 8 Fabian Groffen gentoo-dev 2010-05-20 08:05:53 UTC
can you drop the gnulib_spawn patch and check if it compile then?  You can forget about the interix patches.
Comment 9 Sven Schwyn (svoop) 2010-05-20 08:09:30 UTC
I removed both src_unpacks - and now it compiles.
Comment 10 Fabian Groffen gentoo-dev 2010-05-20 08:10:43 UTC
I already was affraid of that
Comment 11 Fabian Groffen gentoo-dev 2010-05-20 17:51:02 UTC
I think OSX doesn't have a complete POSIX_SPAWN implementation/defines, so the patch applied upstream is incorrectly assuming that if HAVE_POSIX_SPAWN, then also all defines are there.
Comment 12 Fabian Groffen gentoo-dev 2010-05-20 17:59:37 UTC
I disabled the patch on darwin, have to see if it reaches any release first.