HylaFAX The world's most advanced open source fax server

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

HylaFAX v4.0pl2 Compile problems on Solaris 2.6 w/GCC 2.8.1




Had problems compiling HylaFAX v4.0pl2 on Solaris 2.6 w/GCC 2.8.1.  Here are
some patches that seemed to fix things.

-- START PATCH1 LISTING ------------
*** hfaxd/OldProtocol.c++       Sat Feb 14 02:50:07 1998
--- new/OldProtocol.c++ Wed Feb 24 22:26:58 1999
***************
*** 604,612 ****
  
  #define       DEFINE_Alter(param)
\
  void OldProtocolServer::alterJob##param(const char* tag)              \
!     { applyToJob(tag, "alter", OldProtocolServer::reallyAlterJob##param);
}\
  void OldProtocolServer::alterJobGroup##param(const char* tag)         \
!     { applyToJobGroup(tag, "alter",
OldProtocolServer::reallyAlterJob##param); }
  
  fxBool
  OldProtocolServer::alterSuspend(Job& job)
--- 604,612 ----
  
  #define       DEFINE_Alter(param)
\
  void OldProtocolServer::alterJob##param(const char* tag)              \
!     { applyToJob(tag, "alter", &OldProtocolServer::reallyAlterJob##param);
}\
  void OldProtocolServer::alterJobGroup##param(const char* tag)         \
!     { applyToJobGroup(tag, "alter",
&OldProtocolServer::reallyAlterJob##param); }
  
  fxBool
  OldProtocolServer::alterSuspend(Job& job)
***************
*** 752,760 ****
  
  #define       DEFINE_Op(op)                                           \
  void OldProtocolServer::##op##Job(const char* tag)            \
!     { applyToJob(tag, fxQUOTE(op), OldProtocolServer::do##op); }\
  void OldProtocolServer::##op##JobGroup(const char* tag)               \
!     { applyToJobGroup(tag, fxQUOTE(op), OldProtocolServer::do##op); }
  void
  OldProtocolServer::doremove(Job& job, const char*)
  {
--- 752,760 ----
  
  #define       DEFINE_Op(op)                                           \
  void OldProtocolServer::##op##Job(const char* tag)            \
!     { applyToJob(tag, fxQUOTE(op), &OldProtocolServer::do##op); }\
  void OldProtocolServer::##op##JobGroup(const char* tag)               \
!     { applyToJobGroup(tag, fxQUOTE(op), &OldProtocolServer::do##op); }
  void
  OldProtocolServer::doremove(Job& job, const char*)
  {
-- END PATCH1 LISTING --------------
-- START PATH2 LISTING ------------
*** util/SendFaxClient.c++      Sat Feb 14 02:47:24 1998
--- new/SendFaxClient.c++       Wed Feb 24 22:26:29 1999
***************
*** 457,467 ****
        if (info.rule->getResult() == TypeRule::TIFF) {
            fileSent = setFormat(FORM_TIFF)
                    && setType(TYPE_I)
!                   && 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);
        }
        Sys::close(fd);
        if (!fileSent) {
--- 457,467 ----
        if (info.rule->getResult() == TypeRule::TIFF) {
            fileSent = setFormat(FORM_TIFF)
                    && setType(TYPE_I)
!                   && 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);
        }
        Sys::close(fd);
        if (!fileSent) {
--- END PATCH2 LISTING --------------

---START PATCH3 LISTING -----------
*** util/SendFaxJob.c++ Sat Feb 14 02:47:24 1998
--- new/SendFaxJob.c++  Wed Feb 24 22:26:44 1999
***************
*** 496,502 ****
        fxBool fileSent = 
               client.setFormat(FaxClient::FORM_PS)
            && client.setType(FaxClient::TYPE_I)        // XXX??? TYPE_A
!           && client.sendZData(fd, FaxClient::storeTemp, coverDoc, emsg);
        Sys::close(fd);
        if (!fileSent) {
            if (emsg == "")
--- 496,502 ----
        fxBool fileSent = 
               client.setFormat(FaxClient::FORM_PS)
            && client.setType(FaxClient::TYPE_I)        // XXX??? TYPE_A
!           && client.sendZData(fd, &FaxClient::storeTemp, coverDoc, emsg);
        Sys::close(fd);
        if (!fileSent) {
            if (emsg == "")
-- END PATCH3 LISTING --------------

Michael Eddington




Project hosted by iFAX Solutions