httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: SunOS build
Date Wed, 12 Nov 1997 21:36:18 GMT
This looks right to me ... +1, but I have no way of testing it.  I figured
SUNOS_LIB_PROTOTYPES was always defined... I guess the only time it
shouldn't be defined is if you have a gnu libc system.  Perhaps it should
be a true/false define so glibc folks can disable it. 

Dean

On Wed, 12 Nov 1997, Ben Hyde wrote:

> With Martin's additions to the SUNOS_LIB_PROTOTYPES section
> in conf.h.  I can now tame the SunOS build (at least for
> my version of SunOS).  Diff shown below
> 
> Meanwhile the problem with long filenames reported in 
> general/1404 apparently has two manifestations.  On SunOS
> is causes these warnings.
> 
>   ar: filename mod_log_config.o truncated to mod_log_config.
>   ar: filename mod_negotiation.o truncated to mod_negotiation
> 
> But it doesn't prevent the link from succeeding.
> 
>  - ben
> 
> ---
> 
> Always enable SUNOS_LIB_PROTOTYPES since it's now needed.
> Add a few const declarations there in to eliminate warnings
> that it's arrival would otherwise trigger.
> 
> 
> > cvs diff -c conf.h
> Index: conf.h
> ===================================================================
> RCS file: /cvs/apachen/src/main/conf.h,v
> retrieving revision 1.157
> diff -c -r1.157 conf.h
> *** conf.h	1997/11/11 23:04:15	1.157
> --- conf.h	1997/11/12 21:20:21
> ***************
> *** 117,122 ****
> --- 117,123 ----
>   #define USE_FLOCK_SERIALIZED_ACCEPT
>   #define NEED_DIFFTIME
>   #define HAVE_SYSLOG
> + #define SUNOS_LIB_PROTOTYPES
>   
>   #elif defined(SOLARIS2)
>   #undef HAVE_GMTOFF
> ***************
> *** 923,930 ****
>   
>   int getopt(int, char **, char *);
>   
> ! int strcasecmp(char *, char *);
> ! int strncasecmp(char *, char *, int);
>   int toupper(int);
>   int tolower(int);
>   
> --- 924,931 ----
>   
>   int getopt(int, char **, char *);
>   
> ! int strcasecmp(const char *, const char *);
> ! int strncasecmp(const char *, const char *, int);
>   int toupper(int);
>   int tolower(int);
>   
> ***************
> *** 945,951 ****
>   void perror(char *);
>   
>   time_t time(time_t *);
> ! int strftime(char *, int, char *, struct tm *);
>   
>   int initgroups(char *, int);
>   int wait3(int *, int, void *);	/* Close enough for us... */
> --- 946,952 ----
>   void perror(char *);
>   
>   time_t time(time_t *);
> ! int strftime(char *, int, const char *, struct tm *);
>   
>   int initgroups(char *, int);
>   int wait3(int *, int, void *);	/* Close enough for us... */
> ***************
> *** 969,975 ****
>   void syslog(int, char *,...);
>   char *mktemp(char *);
>   
> ! long vfprintf(FILE *, char *, va_list);
>   
>   #endif /* SUNOS_LIB_PROTOTYPES */
>   
> --- 970,976 ----
>   void syslog(int, char *,...);
>   char *mktemp(char *);
>   
> ! long vfprintf(FILE *, const char *, va_list);
>   
>   #endif /* SUNOS_LIB_PROTOTYPES */
>   
> >
> 

Mime
View raw message