[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem when using --enable-static-link
From: |
Chet Ramey |
Subject: |
Re: Problem when using --enable-static-link |
Date: |
Wed, 6 Mar 2002 14:50:49 -0500 |
> Machine Type: i686-pc-linux-gnu
>
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
>
> Description:
> When I try to compile this version of bash and link it staticly, it
> reports an error saying:
> In file included from shell.h:41,
> from shell.c:48:
> externs.h:163: conflicting types for `gethostname'
> /usr/include/unistd.h:734: previous declaration of `gethostname'
> externs.h:196: conflicting types for `strncasecmp'
> /usr/include/string.h:277: previous declaration of `strncasecmp'
> make: *** [shell.o] Error 1
>
> Repeat-By:
> running configure --enable-static-link.
I can't reproduce this on my RH 7 system. What's weird is that these
definitions in externs.h are used only if `configure' can't find
`gethostname' or `strncasecmp'. I'd be interested in knowing what is
going on with configure (look in config.log).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/