tar -xf mongoose-2.8.tgz cc -D_POSIX_SOURCE -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -ldl -lpthread -W -Wall -std=c99 -pedantic -Os -fomit-frame-pointer mongoose.c -shared -fPIC -fpic -s -o _mongoose.so cc -D_POSIX_SOURCE -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -ldl -lpthread -W -Wall -std=c99 -pedantic -Os -fomit-frame-pointer mongoose.c main.c -s -o mongoose perl test/test.pl Loading config file ./mongoose.conf Mongoose 2.8 started on port(s) [12345], serving directory [/home/slkbuilds/n/mongoose/src/mongoose] ==> Testing Loading config file ... OK cc -o ./unit_test -DMONGOOSE_TEST test/unit_test.c -DDEBUG -I. -DNO_SSL -lpthread *** Mongoose debug *** mg_start: root [/home/slkbuilds/n/mongoose/src/mongoose] *** Mongoose debug *** mg_set_option: [root]->[/] *** Mongoose debug *** mg_set_option: [aliases]->[] *** Mongoose debug *** mg_set_option: [root]->[/] *** Mongoose debug *** mg_set_option: [aliases]->[/x=/y] *** Mongoose debug *** mg_set_option: [root]->[/] *** Mongoose debug *** mg_set_option: [aliases]->[/x/=/y] *** Mongoose debug *** mg_set_option: [root]->[/boo] *** Mongoose debug *** mg_set_option: [aliases]->[/x/=/y] *** Mongoose debug *** mg_set_option: [root]->[/foo] *** Mongoose debug *** mg_set_option: [aliases]->[/x=/y] *** Mongoose debug *** mg_set_option: [root]->[/foo] *** Mongoose debug *** mg_set_option: [aliases]->[/a=/b,/x=/y,/c=/d] *** Mongoose debug *** mg_start: root [/home/slkbuilds/n/mongoose/src/mongoose] *** Mongoose debug *** mg_set_option: [aliases]->[a,b,c] *** Mongoose debug *** mg_set_option: [aliases]->[a=,b=c,c=d] *** Mongoose debug *** mg_set_option: [aliases]->[=a,b=c,c=d] *** Mongoose debug *** mg_set_option: [aliases]->[a=b,b=c,c=d] *** Mongoose debug *** mg_set_option: [not_existent_option]->[] Mongoose 2.8 started on port(s) [23456], serving directory [test] ==> Testing GET regular file ... OK ==> Testing GET regular file Content-Length ... OK ==> Testing URL-decoding ... OK ==> Testing URL-decoding, + in URI ... OK ==> Testing GET admin URI ... OK ==> Testing Bad HTTP Version ... OK ==> Testing Bad HTTP maj Version ... OK ==> Testing Bad HTTP min Version ... OK ==> Testing HTTP Version >1.1 ... OK ==> Testing Leading dot 1 ... OK ==> Testing Leading dot 2 ... OK ==> Testing Leading dot 3 ... OK ==> Testing Leading dot 4 ... OK ==> Testing PATH_INFO loop problem ... OK ==> Testing Directory redirection ... OK ==> Testing Directory listing ... OK ==> Testing Index substitution ... OK ==> Testing Directory listing - file name ... OK ==> Testing Aliases ... OK ==> Testing Not existent file ... OK ==> Testing index.cgi execution ... OK ==> Testing .css mime type ... OK ==> Testing .baz mime type ... OK ==> Testing .htm mime type ... OK ==> Testing .txt mime type ... OK ==> Testing .tar.gz mime type ... OK ==> Testing .bar mime type ... OK ==> Testing .c mime type ... OK ==> Testing .html mime type ... OK ==> Testing .js mime type ... OK ==> Testing .jpg mime type ... OK ==> Testing .unknown_extension mime type ... OK ==> Testing Range: 206 status code ... OK ==> Testing Range: Content-Length ... OK ==> Testing Range: Content-Range ... OK ==> Testing Range: body content ... OK ==> Testing Directory listing (name, ascending) ... OK ==> Testing Directory listing (name, descending) ... OK ==> Testing Directory listing (size, ascending) ... OK ==> Testing Directory listing (size, descending) ... OK ==> Testing Directory listing (modification time, ascending) ... OK ==> Testing Directory listing (modification time, descending) ... OK ==> Testing .htpasswd - triggering auth on file request ... OK ==> Testing .htpasswd - triggering auth on directory request ... OK ==> Testing GET CGI file ... OK ==> Testing GET sh CGI file ... OK ==> Testing QUERY_STRING wrong ... OK ==> Testing CGI POST wrong ... OK ==> Testing Content-Length not being passed to CGI ... OK ==> Testing HTTP_* env ... OK ==> Testing GET CGI with trailing data ... OK ==> Testing CGI Win32 code disclosure (%20) ... OK ==> Testing CGI Win32 code disclosure (%ff) ... OK ==> Testing CGI Win32 code disclosure (%2e) ... OK ==> Testing CGI Win32 code disclosure (%2b) ... OK ==> Testing CGI HTTPS ... OK ==> Testing -cgi_env 1 ... OK ==> Testing -cgi_env 2 ... OK ==> Testing -cgi_env 3 ... OK ==> Testing CGI chdir() ... OK ==> Testing SSI #include file= ... OK ==> Testing SSI #include virtual= ... OK ==> Testing SSI #exec ... OK ==> Testing SSI #include file= (absolute) ... OK ==> Testing SSI #include "..." ... OK ==> Testing SSI nested #includes ... OK Mongoose 2.8 started on port(s) [23456], serving directory [test] ==> Testing PUT file, status 201 ... OK ==> Testing PUT file, status 200 ... OK ==> Testing PUT 411 error ... OK ==> Testing PUT 417 error ... OK ==> Testing PUT 100-Continue ... OK cc -o ./embed test/embed.c mongoose.c -I. -DNO_SSL -lpthread -DLISTENING_PORT=\"23456\" [1254924782] [error] [client 127.0.0.1] POST /test_get_var: truncating vsnprintf buffer: [Value: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] ==> Testing mg_get_header ... OK ==> Testing mg_get_var 1 ... OK ==> Testing mg_get_var 2 ... OK ==> Testing mg_get_var 3 ... OK ==> Testing mg_get_var 4 ... OK ==> Testing mg_get_var 5 ... OK ==> Testing mg_get_var 6 ... OK ==> Testing mg_get_var 7 ... OK ==> Testing mg_get_var 8 ... OK ==> Testing mg_get_var 7 ... OK ==> Testing mg_get_var 8 ... OK ==> Testing put callback ... OK ==> Testing request_info ... OK ==> Testing 404 handler ... OK ==> Testing * error handler ... OK ==> Testing user data in callback ... OK ==> Testing /foo bound ... OK ==> Testing Callback removal ... OK ==> Testing /foo unbound ... OK SUCCESS! All tests passed. /home/slkbuilds/n/mongoose/pkg: insgesamt 16 drwxr-xr-x 3 root root 4096 2009-10-07 16:13 etc drwxr-xr-x 2 root root 4096 2009-10-07 16:13 install drwxr-xr-x 6 root root 4096 2009-10-07 16:13 usr drwxr-xr-x 3 root root 4096 2009-10-07 16:13 var /home/slkbuilds/n/mongoose/pkg/etc: insgesamt 8 -rw-r--r-- 1 root root 1178 2009-10-07 16:13 mongoose.conf.new drwxr-xr-x 2 root root 4096 2009-10-07 16:13 rc.d /home/slkbuilds/n/mongoose/pkg/etc/rc.d: insgesamt 4 -rwxr-xr-x 1 root root 1081 2009-10-07 16:13 rc.mongoose /home/slkbuilds/n/mongoose/pkg/install: insgesamt 8 -rw-r--r-- 1 root root 269 2009-10-07 16:13 doinst.sh -rw-r--r-- 1 root root 387 2009-10-07 16:13 slack-desc /home/slkbuilds/n/mongoose/pkg/usr: insgesamt 16 drwxr-xr-x 3 root root 4096 2009-10-07 16:13 doc drwxr-xr-x 3 root root 4096 2009-10-07 16:13 man drwxr-xr-x 2 root root 4096 2009-10-07 16:13 sbin drwxr-xr-x 3 root root 4096 2009-10-07 16:12 src /home/slkbuilds/n/mongoose/pkg/usr/doc: insgesamt 4 drwxr-xr-x 2 root root 4096 2009-10-07 16:13 mongoose-2.8 /home/slkbuilds/n/mongoose/pkg/usr/doc/mongoose-2.8: insgesamt 4 -rw-r--r-- 1 root root 57 2009-10-07 16:13 COPYING /home/slkbuilds/n/mongoose/pkg/usr/man: insgesamt 4 drwxr-xr-x 2 root root 4096 2009-10-07 16:13 man1 /home/slkbuilds/n/mongoose/pkg/usr/man/man1: insgesamt 4 -rw-r--r-- 1 root root 3028 2009-10-07 16:13 mongoose.1.gz /home/slkbuilds/n/mongoose/pkg/usr/sbin: insgesamt 44 -rwxr-xr-x 1 root root 43188 2009-10-07 16:13 mongoose /home/slkbuilds/n/mongoose/pkg/usr/src: insgesamt 4 drwxr-xr-x 2 root root 4096 2009-10-07 16:13 mongoose-2.8 /home/slkbuilds/n/mongoose/pkg/usr/src/mongoose-2.8: insgesamt 20 -rwxr-xr-x 1 root root 10648 2009-10-07 16:13 build-mongoose.sh -rw-r--r-- 1 root root 1081 2009-10-07 16:12 rc.mongoose -rw-r--r-- 1 root root 2552 2009-10-07 16:13 SLKBUILD /home/slkbuilds/n/mongoose/pkg/var: insgesamt 4 drwxr-xr-x 3 root root 4096 2009-10-07 16:13 www /home/slkbuilds/n/mongoose/pkg/var/www: insgesamt 4 drwxr-xr-x 2 root root 4096 2009-10-07 16:13 htdocs /home/slkbuilds/n/mongoose/pkg/var/www/htdocs: insgesamt 0 Slackware package maker, version 3.14159. Searching for symbolic links: No symbolic links were found, so we won't make an installation script. You can make your own later in ./install/doinst.sh and rebuild the package if you like. This next step is optional - you can set the directories in your package to some sane permissions. If any of the directories in your package have special permissions, then DO NOT reset them here! Would you like to reset all directory permissions to 755 (drwxr-xr-x) and directory ownerships to root.root ([y]es, [n]o)? n Creating Slackware package: /home/slkbuilds/n/mongoose/mongoose-2.8-i486-1tm.txz ./ var/ var/www/ var/www/htdocs/ install/ install/slack-desc install/doinst.sh usr/ usr/man/ usr/man/man1/ usr/man/man1/mongoose.1.gz usr/src/ usr/src/mongoose-2.8/ usr/src/mongoose-2.8/SLKBUILD usr/src/mongoose-2.8/rc.mongoose usr/src/mongoose-2.8/build-mongoose.sh usr/sbin/ usr/sbin/mongoose usr/doc/ usr/doc/mongoose-2.8/ usr/doc/mongoose-2.8/COPYING etc/ etc/mongoose.conf.new etc/rc.d/ etc/rc.d/rc.mongoose Slackware package /home/slkbuilds/n/mongoose/mongoose-2.8-i486-1tm.txz created. Package has been built. Cleaning pkg and src directories