>>> Compiling source in /var/tmp/portage/app-misc/screen-4.0.3-r4/work/screen-4.0.3 ... gmake -j1 CPP="sparc64-gentoo-freebsd9.0-gcc -E " srcdir=. sh ./osdef.sh In file included from osdef0.c:23: os.h:275:20: error: utmp.h: No such file or directory AWK=gawk CC="sparc64-gentoo-freebsd9.0-gcc -w -O2 -mcpu=ultrasparc3 -mtune=ultrasparc3 -fno-strict-aliasing -pipe -I/usr/src/sys -DMAXWIN=100 -DNONETHACK" srcdir=. sh ./comm.sh sparc64-gentoo-freebsd9.0-gcc -c -I. -I. -w -O2 -mcpu=ultrasparc3 -mtune=ultrasparc3 -fno-strict-aliasing -pipe -I/usr/src/sys -DMAXWIN=100 -DNONETHACK screen.c In file included from screen.h:25, from screen.c:81: os.h:275:20: error: utmp.h: No such file or directory In file included from screen.h:153, from screen.c:81: display.h:187: error: field 'd_utmp_logintty' has incomplete type In file included from screen.h:154, from screen.c:81: window.h:247: error: field 'w_savut' has incomplete type gmake: *** [screen.o] Error 1 emake failed
Created attachment 294611 [details, diff] screen-4.0.3-fbsd9.patch screen compiles with this simple patch on freebsd9.
Created attachment 294617 [details] screen-4.0.3-r4.ebuild ebuild to apply the attached patch.
*** Bug 409819 has been marked as a duplicate of this bug. ***
As mentioned in bug 409819 I have a screen-4.0.3-r7.ebuild in my overlay 'stuge' (included in the layman list) with the two patches from that bug. Instead of disabling UTMP completely like the patch in this bug, they make things work by using UTMPX instead of UTMP, on FreeBSD. The ebuild is tested to build and the binary works well on my Gentoo/FreeBSD system.
Interestingly, this bug is still "UNCONFIRMED". Why? What kind of confirmation is needed?
https://409819.bugs.gentoo.org/attachment.cgi?id=311929 This patch makes app-misc/screen-4.0.3-r8 compile but it will not run. I created the /run/screen directory and running the program created /run/screen/S-user1/33091.pts-4.gfbsd-1 ls -al /run/screen/S-user1/33091.pts-4.gfbsd-1 prwx------ 1 user1 wheel 0 Feb 11 20:54 /run/screen/S-user1/33091.pts-4.gfbsd-1 ls -al /run drwxrwxrwx 4 root wheel 512 Feb 11 20:54 screen
*-fbsd is gone.