On Tue, May 09, 2000 at 10:37:24AM +0200, Niels M�ller wrote:
> Jonathan McDowell <[EMAIL PROTECTED]> writes:
>
> > Running ./configure I get:
> >
> > checking for BSD pty names... sort: read error: Bad file descriptor
> > done
> I seem to recall a bug in some version of /bin/sh. Can you try running
>
> bash ./configure
>
> and see if that works better?
Yup, perfect. I should have remembered this.
> > Then a 'make':
> >
> > unix_user.c:393: structure has no member named `ut_user'
> Seems I missed that usage of ut_user. I'm checking in this patch:
<snip>
Almost identical to what I ended up with.
> > <utmp.h> needs <sys/types.h>; could be causing problems in the configure
> > script?
> To me, the configure problem seems unrelated to the tests for utmp
> members. If you got HAVE_UT_* defined properly, that part of the
> configure script seems to work.
Sorry, I wasn't clear. HAVE_UT_* do not get defined properly, I had to
do it by hand. From config.log:
configure:2391: checking if utmp has member ut_host
configure:2403: gcc -c -g -O2 -I/home/noodles/projects/lsh-0.9.9
-I/home/noodles/projects/lsh-0.9.9/src
-I/home/noodles/projects/lsh-0.9.9/src/symmetric/include -DLSH -D_GNU_SOURCE
conftest.c 1>&5
In file included from configure:2397:
/usr/include/utmp.h:54: parse error before `time_t'
/usr/include/utmp.h:54: warning: no semicolon at end of struct or union
/usr/include/utmp.h:57: parse error before `}'
/usr/include/utmp.h:63: parse error before `time_t'
/usr/include/utmp.h:63: warning: no semicolon at end of struct or union
configure: In function `main':
configure:2399: storage size of `x' isn't known
configure: failed program was:
#line 2396 "configure"
#include "confdefs.h"
#include <utmp.h>
int main() {
struct utmp x; (void) &x.ut_host;
; return 0; }
configure:2424: checking if utmp has member ut_name
and similar for the other ut_* members.
J.
--
"This script looks over the HTML files making up the GEOS SDK techdocs,
and generates information which will be used to make an index, power
search engines, and save the world." -- Nokia 9000i SDK docs