The availability of socketbits.h?

Giorgos Keramidas keramida at ceid.upatras.gr
Tue May 17 08:31:09 PDT 2005


On 2005-05-17 15:59, Xu Qiang <Qiang.Xu at fujixerox.com> wrote:
>Xu Qiang wrote:
>> Thanks for your suggestions. Yes, this error is overcome after
>> running "autoheader". But now another error of the same type appears:
>> -----------------------------------------------------
>> mink.c:22: error: conflicting types for 'random'
>> /usr/include/stdlib.h:200: error: previous declaration of 'random'
>> was here
>> mink.c:22: error: conflicting types for 'random'
>> -----------------------------------------------------
>>
>> This file is in "nngs-1.1.16/src" directory, and when I run
>> autoheader in this directory:
>> -----------------------------------------------------
>> autoheader: `configure.ac' or `configure.in' is required
>> -----------------------------------------------------
>
> Btw, I just found there is a line "#undef HAVE_RANDOM" in config.h.in,
> so is it due to the src file (mink.c) is not in the same directory as
> config.h.in? (It is one level below: config.h.in is in nngs-1.1.16,
> while mink.c is in nngs-1.1.16/src)

The autoheader/autoconf commands have to be run in the directory that
contains configure.in or configure.ac (usually the top level directory
of the entire distribution).



More information about the freebsd-questions mailing list