HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Build on MacOSX 10.5 leopard fails



Hello Lee:

On 2007/11/16, at 2:25, Lee Howard wrote:


Do these changes make any difference for you? :


diff -Nru hylafax.orig/util/Dispatcher.c++ hylafax/util/Dispatcher.c++
--- hylafax.orig/util/Dispatcher.c++ 2007-11-15 08:20:39.998502160 -0800
+++ hylafax/util/Dispatcher.c++ 2007-11-15 09:06:52.088080488 -0800
@@ -516,7 +516,7 @@
return (nfound != 0);
}


-bool Dispatcher::anyReady() const {
+bool Dispatcher::anyReady() {
if (!_cqueue->isEmpty()) {
Dispatcher::sigCLD(0); // poll for pending children
return _cqueue->isReady();
diff -Nru hylafax.orig/util/Dispatcher.h hylafax/util/Dispatcher.h
--- hylafax.orig/util/Dispatcher.h 2007-11-15 08:20:39.997502312 -0800
+++ hylafax/util/Dispatcher.h 2007-11-15 09:06:39.095055728 -0800
@@ -72,7 +72,7 @@
virtual void attach(int fd, DispatcherMask, IOHandler*);
virtual void detach(int fd);
virtual bool dispatch(timeval*);
- virtual bool anyReady() const;
+ virtual bool anyReady();
virtual int fillInReady(fd_set&, fd_set&, fd_set&);
virtual int waitFor(fd_set&, fd_set&, fd_set&, timeval*);
virtual void notify(int, fd_set&, fd_set&, fd_set&);

Thanks,

Lee.

Thank you for advice.


I edited those two files then building threwed another messages.

/usr/bin/g++ -D__ANSI_CPP__ -I. -I.. -I.././regex -I.././faxd - I.././util -I/opt/local/include -g -O -x c++ -c ModemServer.c++
ModemServer.c++: In member function 'void ModemServer::setProcessPriority(ModemServer::ModemServerState)':
ModemServer.c++:406: error: 'sched_setscheduler' was not declared in this scope
ModemServer.c++:408: error: 'sched_getparam' was not declared in this scope
ModemServer.c++:410: error: 'sched_getscheduler' was not declared in this scope
make[3]: *** [ModemServer.o] Error 1
make[2]: *** [default] Error 2
make[1]: *** [dirs] Error 2
make: *** [default] Error 2


P.S.
My hylafax version is 4.4.2, so diff in the Dispatcher.c++ maybe:

@@ -501,7 +501,7 @@


Yoshi


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions