Subject: Re: compiling on dreamcast
To: Drew P. Vogel <dvogel@intercarve.net>
From: Kenneth Culver <culverk@culverk.student.umd.edu>
List: port-dreamcast
Date: 05/04/2001 14:22:46
I know that... I wanna know what to do to fix it :-)


=================================================================
| Kenneth Culver              | FreeBSD: The best NT upgrade.   |
| Unix Systems Administrator  | ICQ #: 24767726                 |
| and student at The          | AIM: muythaibxr                 |
| The University of Maryland, | Website: (Under Construction)   |
| College Park.	              | http://www.wam.umd.edu/~culverk/|
=================================================================

On Fri, 4 May 2001, Drew P. Vogel wrote:

> Somehow the proper header files aren't being included or the netbsd/dc
> headers are lacking those definitions.
> 
> --Drew Vogel
> 
> On Thu, 3 May 2001, Kenneth Culver wrote:
> 
> >Alright, this is a follow-up to my last mail about compiling thttpd. Here
> >is what happens when I use pkgsrc to try to compile it:
> >
> >=> Checksum OK for thttpd-2.20b.tar.gz.
> >=> Checksum OK for sitedrivenby.gif.
> >===> Extracting for thttpd-2.20b
> >===> Patching for thttpd-2.20b
> >===> Applying NetBSD patches for thttpd-2.20b
> >===> Configuring for thttpd-2.20b
> >/bin/mv /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/extras/htpasswd.1 /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/extras/thtpasswd.1
> >/bin/mv /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/extras/htpasswd.c /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/extras/thtpasswd.c
> >for file in thttpd.8 extras/Makefile.in extras/thtpasswd.c; do  /bin/mv -f /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/${file} /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/${file}.bak;  /usr/bin/sed -e "s,htpasswd,thtpasswd,g"  < /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/${file}.bak > /usr/pkgsrc/www/thttpd/work/thttpd-2.20b/${file};  done
> >creating cache ./config.cache
> >checking host system type... sh--netbsd
> >checking target system type... sh--netbsd
> >checking build system type... sh--netbsd
> >checking for gcc... cc
> >checking whether the C compiler (cc -O  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
> >checking whether the C compiler (cc -O  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
> >checking whether we are using GNU C... yes
> >checking whether cc accepts -g... yes
> >checking gcc version... 
> >checking how to link static binaries... -static
> >checking for __progname... yes
> >checking how to run the C preprocessor... cc -E
> >checking for fcntl.h... yes
> >checking for grp.h... yes
> >checking for memory.h... yes
> >checking for paths.h... yes
> >checking for poll.h... yes
> >checking for sys/poll.h... yes
> >checking whether time.h and sys/time.h may both be included... yes
> >checking for dirent.h that defines DIR... yes
> >checking for opendir in -ldir... no
> >checking for /usr/local/v6/lib... no
> >checking for gethostbyname... yes
> >checking for socket... yes
> >checking for main in -linet6... no
> >checking for crypt... no
> >checking for crypt in -lcrypt... yes
> >checking for hstrerror... yes
> >checking for strerror... yes
> >checking for waitpid... yes
> >checking for vsnprintf... yes
> >checking for daemon... yes
> >checking for setsid... yes
> >checking for setlogin... yes
> >checking for getaddrinfo... yes
> >checking for getnameinfo... yes
> >checking for gai_strerror... yes
> >checking for unistd.h... yes
> >checking for getpagesize... yes
> >checking for working mmap... yes
> >checking for select... yes
> >checking for poll... yes
> >checking if struct tm has tm_gmtoff member... yes
> >checking if struct sockaddr_storage exists... yes
> >checking if struct sockaddr_in6 exists... yes
> >checking whether make sets ${MAKE}... yes
> >checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
> >updating cache ./config.cache
> >creating ./config.status
> >creating Makefile
> >creating cgi-src/Makefile
> >creating extras/Makefile
> >===> Building for thttpd-2.20b
> >cc -O -O  -I. -c thttpd.c
> >thttpd.c: In function `handle_hup':
> >thttpd.c:184: `F_SETFD' undeclared (first use in this function)
> >thttpd.c:184: (Each undeclared identifier is reported only once
> >thttpd.c:184: for each function it appears in.)
> >thttpd.c: In function `main':
> >thttpd.c:269: `F_SETFD' undeclared (first use in this function)
> >thttpd.c: In function `handle_newconnect':
> >thttpd.c:1234: `F_GETFL' undeclared (first use in this function)
> >thttpd.c:1237: `F_SETFL' undeclared (first use in this function)
> >thttpd.c:1237: `O_NDELAY' undeclared (first use in this function)
> >*** Error code 1
> >
> >Stop.
> >*** Error code 1
> >
> >Stop.
> >*** Error code 1
> >
> >Stop.
> >*** Error code 1
> >
> >Stop.
> >
> >did I do something wrong? I just cd to /usr/pkgsrc/www/thttpd then type
> >make.
> >
> >Thanks for any help...
> >
> >Ken
> >
> >
> 
> 
> 
>