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

Re: [leafnode-list] problem compiling under solaris 2.5.1 (sparc)

On Thu, Apr 13, 2000 at 09:53:11AM +0200, David Van Zeebroeck wrote:
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.

My mail reader understands MIME. There seems to be a problem with
yours, however. And please, no multipart/alternative.

> i'm trying to get leafnode compiled under solaris 2.5.1 (sparc) with the sun
> workshop compiler (cc)
> checking for snprintf... no
> and when i run make i get the folowing error message:
> "./leafnode.h", line 40: syntax error before or at: size_t
> "./leafnode.h", line 40: warning: undefined or missing type for: size_t

Thanks for reporting this. There is a bug in leafnode.h. The
following patch should enable you to compile. But you'll get lots
of warnings
miscutil.c: In function `snprintf':
miscutil.c:580: warning: value computed is not used
miscutil.c:622: warning: conversion lacks type at end of format
miscutil.c:622: warning: too many arguments for format
miscutil.c:625: warning: value computed is not used
miscutil.c:558: warning: unused variable `rval'
and it seems you'll be the first one to test the snprintf()
function. No promise that it'll work. I will try to have a look
at it but my time is very limited these days. Any reports about
bugs or succes are highly welcome.

--- cut here ---
*** leafnode.h.orig     Thu Apr 13 17:32:56 2000
--- leafnode.h  Thu Apr 13 17:37:58 2000
*** 36,41 ****
--- 36,43 ----
  char * strdup (const char *);

+ #include <sys/types.h>  /* for regex.h and size_t */
  int snprintf( char *str, size_t n, const char *format, ... );
*** 49,55 ****
  #define LOG_CONS 0 /* if it isn't supported, make do without */

- #include <sys/types.h>        /* for regex.h */
  #include <regex.h> /* regex_t */
  #include <stdio.h> /* FILE * */
  #include <time.h>  /* time_t */
--- 51,56 ----
--- cut here ---

The diff was created with diff -c on OSF1 because it doesn't
understand -u :-(


Fortune cookie of the day:
I'd rather be led to hell than managed to heavan.

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list