[htdig] Configure errors


Subject: [htdig] Configure errors
From: Brad Handy (bhandy@arbor.edu)
Date: Mon May 01 2000 - 07:45:52 PDT


Hello,

        I tried installing ht://Dig on the server of a client and I got this error
in the configure log. I was wondering what I need to change to try to get
it to work or if there is updated source code that I can download. The
client's server is running Red Hat Linux 6.1. Everything else seems to
check out until it reached the 'gethostname' part of the configure process.
Any help will be greatly appreciated.

Regards,
Brad Handy

#-----------------Excerpt from config.log follows

configure:2383: checking whether we need gethostname() prototype?
configure:2403: c++ -c -g -O2 conftest.C 1>&5
configure:2397: declaration of C function `int gethostname(char *, int)'
conflicts with
/usr/include/unistd.h:540: previous declaration `int gethostname(char *,
unsigned int)' here
configure: failed program was:
#line 2385 "configure"
#include "confdefs.h"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <sys/file.h>
#include <fcntl.h>
#include <netdb.h>
#include <stdlib.h>
extern "C" int gethostname(char *, int);
int main() {
gethostname("sdsu.edu", (int) 8);
; return 0; }
configure:2425: checking how to call getpeername?
configure:2437: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2434: conflicting types for `getpeername'
/usr/include/sys/socket.h:78: previous declaration of `getpeername'
configure: failed program was:
#line 2429 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
extern getpeername(int, struct sockaddr *, size_t *)
; return 0; }
configure:2437: gcc -c -g -O2 conftest.c 1>&5

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Mon May 01 2000 - 05:32:34 PDT