Hylafax Developers Mailing List Archives

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

[hylafax-devel] 2 more patches & Clean compile on AIX w. gcc 2.95.2



Hi,

I have got a clean compile on latest CVS ( March 2, 2:00 pm MST ) with two 
small patches.  This is on AIX 4.2.1 with gcc 2.95.2 ( compiled locally 
with the IBM xlC compiler) .

Haven't installed or ran it yet, I don't have my guinea pig machine on the 
network right now..

Next test will be to see how the AIX compiler does on it...

1)  missing prototype for snprintf
    Yes... AIX 4.2 doesn't have a prototype for snprintf, though the 
    function exists.  So, I added a test to configure for snprintf

2)  hfaxd/SuperServer.c++ missing fd_set declaration.
    Not 100 % sure how to resolve this one, SuperServer.c++ was just the 
    first of a couple of progams that had this problem.

    Looking @ util/Dispatcher.h, it is the one using the fd_set, so I figured
    that was a reasonable place to put an include for <sys/select.h>

    Configure looks for a select prototype, and assumes if it finds one,
    fd_set will be there as well, but Dispatcher.h doesn't include any of 
    the include files that configure looks at...

    So, the second patch...  but I am open to better solutions..


configure
---------

--- configure	Thu Mar  2 19:22:52 2000
+++ configure.old	Thu Mar  2 18:40:35 2000
@@ -2497,7 +2497,6 @@
     CheckStdio popen 'extern FILE* popen(const char *, const char *);'
     CheckStdio pclose 'extern int pclose(FILE*);'
     CheckStdio fdopen 'extern FILE* fdopen(int, const char*);'
-    CheckStdio snprintf 'extern int snprintf(char *, size_t , const char *, ...);'
     CheckForDefine fileno stdio.h || {
 	CheckStdio fileno 'extern int fileno(FILE*);'
     }



util/Dispatcher.h
-----------------

--- util/Dispatcher.h	Thu Mar  2 19:46:07 2000
+++ util/Dispatcher.h.old	Thu Mar  2 19:46:23 2000
@@ -30,10 +30,6 @@
 #ifndef dp_dispatcher_h
 #define dp_dispatcher_h
 
-extern "C" {         
-#include <sys/select.h>
-}                    
-
 #include "Types.h"
 
 class IOHandler;


COOL!!!!!
-- 
	Steve Williams, Calgary, Alberta, Canada
	Genie Computer Systems Inc.
	steve@genie96.com

"A man doesn't begin to attain wisdom until he recognizes that he is 
 no longer indispensable."
- Admiral Richard E. Byrd ( 1888-1957 )




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