Bug 85256

Summary: fwtk port broken in 5.4
Product: Ports & Packages Reporter: Christoph Weber-Fahr <wefa>
Component: Individual Port(s)Assignee: Sam Lawrance <lawrance>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Christoph Weber-Fahr 2005-08-23 22:30:10 UTC
	the fwtk port fails to compile. 
	I found several issues, and suspect there might be some more
	- it tries to build its library with "-lskey" which fails, apparently 
	  lacking libskey.a 
	- when you remove, for the sake of testing, skey from AUXLIBS and 
	  auth.h, it later falls prey to the "gcc 3.4 maintainers send 
	  varargs users to hell" syndrome. Error message:

	/usr/include/varargs.h:34:2: #error "<varargs.h> is obsolete with this version of GCC."
	/usr/include/varargs.h:35:2: #error "Change your code to use <stdarg.h> instead."

	- when you try to compile it using the gcc295 port, it exchanges this error
	  to a screenful of warnings about how vargs.h redefines stuff from stdio.h,
	  and later it fails with

	sig.c: In function `handle_sigpid':
	sig.c:37: storage size of `wstatus' isn't known
	*** Error code 1

	Stop in /usr/ports/security/fwtk/work/fwtk/x-gw.

	Thats the point where I gave up. Apparently there are some issues with 
	fwtk on freebsd5.

	FWIW, the jumbo patch (enabled with an extra make option, as decsribed in
	the make file) also fails because there is no md5 file for that.

Fix: 

The varargs thing may or may not be fixable by including <machine/varargs.h>
	but I don't understand enough of the underlying compiler issues to know
	if this is a cosmetic or a real fix. In any case, you only run against other 
	issues then.
How-To-Repeat: 
	cd /usr/ports/security/fwtk
	make
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-09-04 17:23:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Take
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-09-07 14:22:42 UTC
It seems that fwtk requires S/Key, which is not available beyond FreeBSD
4.11.  The equivalent on later branches, OPIE, is not a drop-in
replacement.

fwtk is pretty old and the port is unmaintained, so the best we can do
is mark it BROKEN on FreeBSD versions after 4.x.
Comment 3 Sam Lawrance freebsd_committer freebsd_triage 2005-09-07 14:36:19 UTC
State Changed
From-To: open->closed

Marked the port BROKEN for OSVERSION >= 500000.  Thanks 
for the report!