When attempting to build, this error comes up every time. Multiple machines, multiple people. gcc -s psfxtable.o psffontop.o xmalloc.o utf8.o -o psfxtable gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -pipe -DDATADIR=\"/usr/usr/share\" kbdrate.c kbdrate.c: In function `KIOCSRATE_ioctl_ok': kbdrate.c:167: structure has no member named `period' kbdrate.c:169: structure has no member named `period' kbdrate.c:170: structure has no member named `period' kbdrate.c:180: structure has no member named `period' make[1]: *** [kbdrate.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/kbd-1.08/work/kbd-1.08/src' make: *** [all] Error 1 !!! ERROR: sys-apps/kbd-1.08 failed. !!! Function src_compile, Line 39, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge kbd-1.08.ebuild 2. 3. 2x Sun Ultra5 Tried with some generic flags, not using distcc.
Created attachment 15243 [details, diff] kbd-1.08-sparc-fixes.patch This should fix it, please test and let me know.
Added patch to CVS.
The sparc patched applied correctly, but it still fails: gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer -freorder-blocks -falign-functions=4 -fstack-protector -DDATADIR=\"/usr/share\" kbdrate.c kbdrate.c: In function `KDKBDREP_ioctl_ok': kbdrate.c:113: structure has no member named `rate' kbdrate.c:133: structure has no member named `rate' kbdrate.c:139: structure has no member named `rate' kbdrate.c:144: structure has no member named `rate' kbdrate.c:149: structure has no member named `rate' kbdrate.c:164: structure has no member named `rate' kbdrate.c:171: structure has no member named `rate' make[1]: *** [kbdrate.o] Error 1 make[1]: Leaving directory `/usr/obj/portage/kbd-1.08-r1/work/kbd-1.08/src' make: *** [all] Error 1 !!! ERROR: sys-apps/kbd-1.08-r1 failed. !!! Function src_compile, Line 46, Exitcode 2 !!! (no error message)
Sparc or sparc64 ?
sparc64, a.k.a. Sun Blade 100. 500MHz UltraSparc IIe
Check for following entry, and please try again on sparc64: ------------------------------------------------------ 02 Aug 2003; Martin Schlemmer <azarah@gentoo.org> files/kbd-1.08-sparc-fixes.patch: Sparc64 fixes, bug #25517 again.
That is the version I tried. # emerge kbd Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/kbd-1.08-r1 to / >>> md5 src_uri ;-) kbd-1.08.tar.gz >>> Unpacking source... >>> Unpacking kbd-1.08.tar.gz to /usr/obj/portage/kbd-1.08-r1/work * Applying kbd-1.08-sparc-fixes.patch... [ ok ] >>> Source unpacked. # cat /usr/portage/sys-apps/kbd/ChangeLog # ChangeLog for sys-apps/kbd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 # $Header: /home/cvsroot/gentoo-x86/sys-apps/kbd/ChangeLog,v 1.14 2003/07/31 04:37:05 azarah Exp $ 31 Jul 2003; Martin Schlemmer <azarah@gentoo.org> kbd-1.08-r1.ebuild: Fix struct kbd_rate not being fixed for sparc to use 'period' and not 'rate', bug #25517.
Check the date ... I changed the patch.
The changelog reflects a second update to the patch, but the patch still fails with the same error I posted in comment #3
Created attachment 15356 [details, diff] Generic fixup for kd kernel changes The changes made between 1.06 and 1.08 were bogus. This reverts most of those changes to kbdrate.c and instead uses configure to determine whether we have 2.4-style ("rate") or 2.6-style ("period") structs. The sparc ioctl uses "rate" in all versions of the kernel thus far. If and when this changes, it's a simple matter to use the configure fragment again to detect it. Tested on x86 and sparc64.
Ok, in -r2, keep it close this time :P
Fixed in kbd-1.08-r2
Back in kbd-1.08-r4 gcc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -pipe -DDATADIR=\"/usr/share\" kbdrate.c kbdrate.c: In function `KIOCSRATE_ioctl_ok': kbdrate.c:173: structure has no member named `period' kbdrate.c:175: structure has no member named `period' kbdrate.c:176: structure has no member named `period' kbdrate.c:186: structure has no member named `period' kbdrate.c: In function `main': kbdrate.c:203: warning: unused variable `value' kbdrate.c:206: warning: unused variable `fd' kbdrate.c:207: warning: unused variable `data' kbdrate.c:209: warning: unused variable `i' version.h: At top level: kbdrate.c:96: warning: `valid_rates' defined but not used kbdrate.c:102: warning: `valid_delays' defined but not used make[1]: *** [kbdrate.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/kbd-1.08-r4/work/kbd-1.08/src' make: *** [all] Error 1
Should be fixed again, just give some time to sync.
Can we get confirmation that it is indeed fixed, and this closed ? Thanks.
Works for me here on two systems.
Thanks Jason.