Subject: pkg/25666: comms/hylafax doesn't compile on alpha
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <khym@azeotrope.org>
List: pkgsrc-bugs
Date: 05/22/2004 01:53:44
>Number:         25666
>Category:       pkg
>Synopsis:       comms/hylafax doesn't compile on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 22 06:55:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dave Huang
>Release:        NetBSD 2.0_BETA
>Organization:
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 28 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
	
	
System: NetBSD yerfable.azeotrope.org 2.0_BETA NetBSD 2.0_BETA (YERFABLE) #205: Wed May 12 21:06:04 CDT 2004 khym@yerfable.azeotrope.org:/usr2/obj.alpha/sys/arch/alpha/compile/YERFABLE alpha
Architecture: alpha
Machine: alpha
>Description:
	Attempting to build the comms/hylafax package on an alpha (or
any other LP64 machine, I'd guess) fails with:

/usr/bin/g++        -D__ANSI_CPP__ -I. -I.. -I.././regex -I.././faxd  -I.././util -I/usr/pkg/include -g -O  -c Class1Send.c++
Class1Send.c++: In member function `bool Class1Modem::sendPage(TIFF*, const
   Class2Params&, unsigned int, fxStr&)':
Class1Send.c++:827: error: no matching function for call to `Class1Modem::
   correctPhaseCData(u_char*&, u_long*, uint16&, const Class2Params&)'
FaxModem.h:148: error: candidates are: void
   FaxModem::correctPhaseCData(u_char*, uint32*, unsigned int, const
   Class2Params&)
*** Error code 1

>How-To-Repeat:
	Attempt to build comms/hylafax on an alpha.
>Fix:
	Add this patch to the patches directory:

--- faxd/Class1Send.c++.orig	2004-05-22 01:40:08.000000000 -0500
+++ faxd/Class1Send.c++	2004-05-22 01:40:22.000000000 -0500
@@ -797,7 +797,7 @@
 	uint32* stripbytecount;
 	(void) TIFFGetField(tif, TIFFTAG_STRIPBYTECOUNTS, &stripbytecount);
 	tstrip_t strip;
-	u_long totdata = 0;
+	uint32 totdata = 0;
 	for (strip = 0; strip < nstrips; strip++)
 	    totdata += stripbytecount[strip];
 	/*
--- faxd/Class2Send.c++.orig	2004-05-22 01:29:51.000000000 -0500
+++ faxd/Class2Send.c++	2004-05-22 01:30:08.000000000 -0500
@@ -394,7 +394,7 @@
 	uint32* stripbytecount;
 	(void) TIFFGetField(tif, TIFFTAG_STRIPBYTECOUNTS, &stripbytecount);
 	tstrip_t strip;
-	u_long totdata = 0;
+	uint32 totdata = 0;
 	for (strip = 0; strip < nstrips; strip++)
 	    totdata += stripbytecount[strip];
 	/*

>Release-Note:
>Audit-Trail:
>Unformatted: