The availability of socketbits.h?

Dan Nelson dnelson at allantgroup.com
Tue May 17 07:22:37 PDT 2005


In the last episode (May 17), Xu Qiang said:
> Dan Nelson wrote:
> > It looks like missing.h was added in 1.1.15, but the author didn't run
> > all the necessary autoconf commands afterwards.  Try running
> > "autoheader253" (you will see that a HAVE_FTRUNCATE placeholder gets
> > added to config.h.in), and rerun configure and make.
> > 
> > It looks like there have been some autoconf changes make in CVS after
> > 1.1.16 was released.  You might want to check out the current source
> > to see if some of these issues have been fixed already.
> 
> 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'
> -----------------------------------------------------

That's because after including the header that provides a declaration
for random (stdlib.h), the author decided to include another of his own
for some reason, but he used the wrong return type so gcc complained. 
Just remove like 22 of mink.c.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list