NNTPC: libproff.h problems under solaris 2.5.1

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

 



	Straight out of the tar, I got the following when attempting a make..

gcc -g -O -Wall -I. -I..  -c  utils.c
In file included from utils.c:16:
:16: unbalanced `#endif'
:19: unbalanced `#endif'
:22: unbalanced `#endif'
:25: unbalanced `#endif'
:28: unbalanced `#endif'
:31: unbalanced `#endif'
:49: unbalanced `#endif'
:52: unbalanced `#endif'
:5: unbalanced `#endif'
*** Error code 1
make: Fatal error: Command failed for target `utils.o'
Current working directory /usr/local/news/src/nntpcache-1.0.5/libproff
*** Error code 1
make: Fatal error: Command failed for target `libproff/libproff.a'

I corrected this via the following patch...
(compiled fine under bsdi w/o the patch btw...)


*** libproff.h	Wed Mar  5 15:46:40 1997
--- libproff.h.patched	Wed Mar  5 15:46:27 1997
***************
*** 61,88 ****
  
  extern unsigned char match (char *p, char *text, int f_case, char eol) ; 
  extern unsigned char ispattern (char *p) ; 
! #if !defined(HAVE_STRDUP) 
    char *strdup (char *s) ;
  #endif 
  extern int strExchange (char *s, char c1, char c2) ; 
  extern int strLower (char *s) ; 
  extern int strUpper (char *s) ; 
! #if !defined(HAVE_STRCASECMP) 
    int strCaseEq (char *s, char *s2) ;
  #endif 
! #if !defined(HAVE_STRCASECMP) 
    int strnCaseEq (char *s, char *s2, int n) ;
  #endif 
! #if !defined(HAVE_STRCASECMP) 
    int strcasecmp (char *s, char *s2) ;
  #endif 
! #if !defined(HAVE_STRCASECMP) 
    int strncasecmp (char *s, char *s2, int n) ;
  #endif 
! #if !defined(HAVE_STRCASESTR) 
    char *strcasestr (char *s, char *find) ;
  #endif 
! #if !defined(HAVE_STRNCASESTR) 
    char *strncasestr (char *s, char *find, int slen) ;
  #endif 
  extern int strStripLeftRight (char *s) ; 
--- 61,88 ----
  
  extern unsigned char match (char *p, char *text, int f_case, char eol) ; 
  extern unsigned char ispattern (char *p) ; 
! if !defined(HAVE_STRDUP) 
    char *strdup (char *s) ;
  #endif 
  extern int strExchange (char *s, char c1, char c2) ; 
  extern int strLower (char *s) ; 
  extern int strUpper (char *s) ; 
! if !defined(HAVE_STRCASECMP) 
    int strCaseEq (char *s, char *s2) ;
  #endif 
! if !defined(HAVE_STRCASECMP) 
    int strnCaseEq (char *s, char *s2, int n) ;
  #endif 
! if !defined(HAVE_STRCASECMP) 
    int strcasecmp (char *s, char *s2) ;
  #endif 
! if !defined(HAVE_STRCASECMP) 
    int strncasecmp (char *s, char *s2, int n) ;
  #endif 
! if !defined(HAVE_STRCASESTR) 
    char *strcasestr (char *s, char *find) ;
  #endif 
! if !defined(HAVE_STRNCASESTR) 
    char *strncasestr (char *s, char *find, int slen) ;
  #endif 
  extern int strStripLeftRight (char *s) ; 
***************
*** 100,109 ****
  extern int strToi (char *s) ; 
  extern long nndtoi (char *s) ; 
  extern char *nnitod (long id) ; 
! #if !defined(HAVE_USLEEP) 
    void usleep (unsigned long useconds) ;
  #endif 
! #if !defined(HAVE_GETPAGESIZE) 
    int getpagesize () ;
  #endif 
  extern void *Xcalloc (int n, int y) ; 
--- 100,109 ----
  extern int strToi (char *s) ; 
  extern long nndtoi (char *s) ; 
  extern char *nnitod (long id) ; 
! if !defined(HAVE_USLEEP) 
    void usleep (unsigned long useconds) ;
  #endif 
! if !defined(HAVE_GETPAGESIZE) 
    int getpagesize () ;
  #endif 
  extern void *Xcalloc (int n, int y) ; 


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux