On Thu, 23 Aug 2001, ky nguyen wrote:
> Thanks Robert, I'm thinking of using "thttpd" and start from scatch.
> However, I'm sure what files are neccessary to include and not
> include. Do you know any documents or similar discussion about this
> "thttpd".
Hmmm, normally running 'configure' with --prefix=/path/to/target/root
should be enough, but the makefile seems to install things like the man
pages as well in this special case. You could run 'make installthis' and
'make installsubdirs' instead of 'make install' to just install the binary
and the things needed for CGI.
The manpage says that it can be configured either by command line options
(no need for a configuration file in this case) or with a config file.
I think you'll find all necessary information there.
Btw, did anybody manage to compile version 2.20b (which is declared as the
latest stable on the website)? It crashes here with an error:
robert@callisto:~/tmp/thttpd-2.20b ! make
gcc -O -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1
-DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1 -DHAVE_LIBCRYPT=1
-DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1
-DHAVE_SETSID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1
-DHAVE_GAI_STRERROR=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
-DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_SOCKADDR_STORAGE=1
-DHAVE_SOCKADDR_IN6=1 -I. -c libhttpd.c
libhttpd.c: In function `ls':
libhttpd.c:2522: warning: assignment makes pointer from integer without a
cast
libhttpd.c: In function `httpd_start_request':
libhttpd.c:3464: warning: assignment makes pointer from integer without a
cast
libhttpd.c:3467: dereferencing pointer to incomplete type
make: *** [libhttpd.o] Error 1
Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel |
| Linux Solutions for Science and Industry |
| Braunschweiger Straße 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 Fax: +49-5121-28619-4 |
+--------------------------------------------------------+
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.