When I try to emerge app-admin/watchdog I get the following linking error: gcc -mcpu=pentium3 -O3 -pipe -o watchdog file_stat.o file_table.o fstab.o iface.o ifdown.o keep_alive.o load.o l omount.o memory.o mntent.o mount.o net.o nfsmount.o nfsmount_clnt.o nfsmount_xdr.o pidfile.o quotactl.o shutdown.o sundries.o temp.o test_binary.o umount.o version.o watchdog.o quotactl.o(.text+0x28): In function `quotactl': : undefined reference to `errno' collect2: ld returned 1 exit status make[1]: *** [watchdog] Error 1 make[1]: Leaving directory `/var/tmp/portage/watchdog-5.2/work/watchdog-5.2/src' make: *** [all-recursive] Error 1 !!! ERROR: app-admin/watchdog-5.2 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge watchdog Fresh Gentoo Installation from stage1-x86-1.4_rc3, we are using the _unstable_ branch though a few details from /etc/make.conf: CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="~x86" /proc/cpuinfo: processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.40GHz [...] gcc version 3.2.2
Created attachment 9832 [details] ebuild that patches watchdog to compile correctly This ebuild first patches the source file quotactl.c before compiling.
Created attachment 9833 [details, diff] patch for quotactl.c errno.h needs to be included always
thanks for the patch. i've committed your patch to portage now.