(Charles Hines) wrote:
>
> >>>>> "Jens" == Jens-U H Petersen <petersen_at_kurims.kyoto-u.ac.jp> writes:
>
> Jens> I am trying to build version 2.0.42 Sunos 4.1.3 and X11R5 (I had
> Jens> the same trouble under SunOs 4.1.4 and X11R6). (I already have a
> Jens> working fvwm-2.0.41, which I built here without trouble.)
>
> Jens> After
>
> Jens> xmkmf ; make Makefiles
>
> Jens> which don't give any problems apparently, I do "make" and get the
> Jens> output below.
>
> Jens> I don't know to do now. Can someone please tell what I need to
> Jens> do to build this latest version on my sunos? (I really want to
> Jens> try the latest stuff!)
> Ok, for anyone having problems w/ strerror being undefined (SunOS
> 4.1.X users), here is a definition which should do it for you (just
> put it in builtins.c). I'll put this on the official web site as
> well, and a variant will appear in the next beta release.
>
> Chuck
>
> ======================================================================
> char *strerror(int num)
> {
> extern int sys_nerr;
> extern char *sys_errlist[];
>
> if (num >= 0 && num < sys_nerr)
> return(sys_errlist[errnum]);
> else
> return "Unknown error number";
> }
>
well,
quite obvious error in this def:
char *strerror(int num)
{
extern int sys_nerr;
extern char *sys_errlist[];
if (num >= 0 && num < sys_nerr)
return(sys_errlist[num]); /* num instead of errnum */
else
return "Unknown error number";
}
Stefano
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Apr 19 1996 - 08:44:12 BST