Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Hlyafax 4.0pl2 for RH Linux 5.0 and 5.1



Hi,

I have created^H^H^H^H^H^H^Hhacked a SPEC file and a set of patches for
Hylafax 4.0pl2 for RH Linux 5.0 and 5.1.

For 5.1, to get things to compile with egcs, I had to patch a few C++ files
to fix up things that were acepted by gcc but not by egcs. 

While everything now builds under RH Linux 5.0 and 5.1, I have not yet
tested the lot, which I won't be able to do until Saturday (Sunday, US time).

However, if anyone is interested, I can forward the SPEC file and the patch
file to the list.  Those who know how to build RPMs from source and a SPEC
file may be interested.

In any event, here are the patches for Hylafax 4.0pl2 to allow it to
compile under egcs:

-------------------------------------8<-------------------
--- hylafax-v4.0pl2/util/SendFaxClient.c++	Sat Feb 14 21:17:24 1998
+++ hylafax-v4.0pl2-new/util/SendFaxClient.c++	Wed Aug 12 22:08:57 1998
@@ -457,11 +457,11 @@
 	if (info.rule->getResult() == TypeRule::TIFF) {
 	    fileSent = setFormat(FORM_TIFF)
 		    && setType(TYPE_I)
-		    && sendData(fd, FaxClient::storeTemp, info.doc, emsg);
+		    && sendData(fd, &FaxClient::storeTemp, info.doc, emsg);
 	} else {
 	    fileSent = setFormat(FORM_PS)
 	    	    && setType(TYPE_I)		// XXX TYPE_A???
-		    && sendZData(fd, FaxClient::storeTemp, info.doc, emsg);
+		    && sendZData(fd, &FaxClient::storeTemp, info.doc, emsg);
 	}
 	Sys::close(fd);
 	if (!fileSent) {
--- hylafax-v4.0pl2/util/SendFaxJob.c++	Sat Feb 14 21:17:24 1998

+++ hylafax-v4.0pl2-new/util/SendFaxJob.c++	Wed Aug 12 22:07:02 1998
@@ -496,7 +496,7 @@
 	fxBool fileSent = 
 	       client.setFormat(FaxClient::FORM_PS)
 	    && client.setType(FaxClient::TYPE_I)	// XXX??? TYPE_A
-	    && client.sendZData(fd, FaxClient::storeTemp, coverDoc, emsg);
+	    && client.sendZData(fd, &FaxClient::storeTemp, coverDoc, emsg);
 	Sys::close(fd);
 	if (!fileSent) {
 	    if (emsg == "")
--- hylafax-v4.0pl2/hfaxd/OldProtocol.c++	Sat Feb 14 21:20:07 1998
+++ hylafax-v4.0pl2-new/hfaxd/OldProtocol.c++	Wed Aug 12 22:47:09 1998
@@ -604,9 +604,9 @@
 
#define	DEFINE_Alter(param)						\
 void OldProtocolServer::alterJob##param(const char* tag)		\
-    { applyToJob(tag, "alter", OldProtocolServer::reallyAlterJob##param); }\
+    { applyToJob(tag, "alter", &OldProtocolServer::reallyAlterJob##param); }\
 void OldProtocolServer::alterJobGroup##param(const char* tag)		\
-    { applyToJobGroup(tag, "alter",
OldProtocolServer::reallyAlterJob##param); }
+    { applyToJobGroup(tag, "alter",
&OldProtocolServer::reallyAlterJob##param); }
 
 fxBool
 OldProtocolServer::alterSuspend(Job& job)
@@ -752,9 +752,9 @@
 
#define	DEFINE_Op(op)						\
 void OldProtocolServer::##op##Job(const char* tag)		\
-    { applyToJob(tag, fxQUOTE(op), OldProtocolServer::do##op); }\
+    { applyToJob(tag, fxQUOTE(op), &OldProtocolServer::do##op); }\
 void OldProtocolServer::##op##JobGroup(const char* tag)		\
-    { applyToJobGroup(tag, fxQUOTE(op), OldProtocolServer::do##op); }
+    { applyToJobGroup(tag, fxQUOTE(op), &OldProtocolServer::do##op); }
 void
 OldProtocolServer::doremove(Job& job, const char*)
 {
---------------------------------8<---------------------------------

There are still a bunch of warnings that I don't like, but this will do for
now.



Regards
-------
Richard Sharpe, sharpe@ns.aus.com, NIC-Handle:RJS96
NS Computer Software and Services P/L, 
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080, 
Samba, Linux, Apache, Digital UNIX, AIX, Netscape, Stronghold, C, ...



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services