Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 1996 21:15:33 GMT
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        njensen@salsa.habaneros.com
Cc:        questions@freebsd.org
Subject:   Re: help compiling SSLeay 0.5.2a
Message-ID:  <199605292115.VAA28177@jraynard.demon.co.uk>
In-Reply-To: <01BB4CDB.F138C940@jalapeno.habaneros.com> (njensen@salsa.habaneros.com)

next in thread | previous in thread | raw e-mail | index | archive | help

> gcc -../include -D_ANSI_SOURCE -DHAVE_MD -O2 -m486 -Wall -c apps.c 
> In file included from apps.c:51:
> /usr/include/sys/stat.h:55: parse error before 'ino_t'
> /usr/include/sys/stat.h:55: warning: no semicolon at end of struct or union

This seems to be another case of a 'configure' program trying to be
too clever for its own good. Or perhaps a lazy author. 8-(

I would suspect that "apps.c" does not include sys/types.h, which is
usually required for files in /usr/include/sys, and the compiler is
complaining because it cannot see a definition of a type it needs. 
Adding a line

#include <sys/types.h>

to apps.c just before line 51 should fix this.

Incidentally, looking at the arguments to gcc, '-O2' is known to cause
buggy code to be currently generated by gcc on all i386 platforms (not
just FreeBSD) - either change it to '-O', or add '-fno-strength-reduce'.

-- 
James Raynard, Edinburgh, Scotland
jraynard@dial.pipex.com
james@jraynard.demon.co.uk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605292115.VAA28177>