Stable dev-lang/mono-4.4.1.0 ebuild compilation failed with error: ... ../../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../eglib/src -I../../eglib/src -I../../libgc/include -DMONO_BINDIR=\""/usr/bin"\" -I../.. -fvisibility=hidden -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -DUSE_COMPILER_TLS -march=bdver2 -mtune=bdver2 -O2 -pipe -mno-tbm -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -mno-tls-direct-seg-refs -Werror-implicit-function-declaration -c -o semaphores.lo semaphores.c processes.c: In function 'load_modules': processes.c:1641:12: error: implicit declaration of function 'makedev' [-Werror=implicit-function-declaration] device = makedev ((int)maj_dev, (int)min_dev); ^~~~~~~ processes.c:1641:3: warning: nested extern declaration of 'makedev' [-Wnested-externs] device = makedev ((int)maj_dev, (int)min_dev); ^~~~~~ ../../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../eglib/src -I../../eglib/src -I../../libgc/include -DMONO_BINDIR=\""/usr/bin"\" -I../.. -fvisibility=hidden -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -DUSE_COMPILER_TLS -march=bdver2 -mtune=bdver2 -O2 -pipe -mno-tbm -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -mno-tls-direct-seg-refs -Werror-implicit-function-declaration -c -o shared.lo shared.c ... And in newer UNSTABLE versions, this error is already corrected! WTF!!
Created attachment 506462 [details, diff] mono-4.4.1.0-makedev.ebuild.patch
*** Bug 650178 has been marked as a duplicate of this bug. ***
Let's assume this is fixed in 4.8.