I've got this source code which I'm coiding up to be a module with some
form of caching.

I've made a structure which has an array which stores all the recently
looked up hosts. [kzvhd_cached] Now I need to beable to add and update,
perhaps even remove records from this module. I can't seem to access or
create room in the array to add my record and be able to call it back at
a later stage to read from or up date. I've attached the source code and
a link to it... Aany pointers, links url, or even a fix for it would be
great !! :) Thanks in advance...

The problem during compiling is on line 232:
Making all in mod_kzvhd
make[2]: Entering directory
`/home/kibble/source/compiled/httpd-2.0.46/modules/mod_kzvhd'
make[3]: Entering directory
`/home/kibble/source/compiled/httpd-2.0.46/modules/mod_kzvhd'
/bin/bash /home/kibble/source/compiled/httpd-2.0.46/srclib/apr/libtool
--silent --mode=compile gcc  -g -O2 -pthreads    -DSOLARIS2=9
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/li
b -I. -I/home/kibble/source/compiled/httpd-2.0.46/os/unix
-I/home/kibble/source/compiled/httpd-2.0.46/server/mpm/prefork
-I/home/kibble/source/compiled/httpd-2.0.46/modules/http
-I/home/kibble/source/compiled/httpd-2.0.46/modules/filters
-I/home/kibble/source/compiled/httpd-2.0.46/modules/proxy
-I/home/kibble/source/compiled/httpd-2.0.46/include
-I/usr/local/include/mysql -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include
-I/home/kibble/source/compiled/httpd-2.0.46/modules/dav/main
-prefer-non-pic -static -c mod_kzvhd.c && touch mod_kzvhd.lo
mod_kzvhd.c: In function `kzvhd_translate_name':
mod_kzvhd.c:323: warning: assignment makes pointer from integer without
a cast
/bin/bash /home/kibble/source/compiled/httpd-2.0.46/srclib/apr/libtool
--silent --mode=link gcc  -g -O2 -pthreads    -DSOLARIS2=9
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/li
b -I. -I/home/kibble/source/compiled/httpd-2.0.46/os/unix
-I/home/kibble/source/compiled/httpd-2.0.46/server/mpm/prefork
-I/home/kibble/source/compiled/httpd-2.0.46/modules/http
-I/home/kibble/source/compiled/httpd-2.0.46/modules/filters
-I/home/kibble/source/compiled/httpd-2.0.46/modules/proxy
-I/home/kibble/source/compiled/httpd-2.0.46/include
-I/usr/local/include/mysql -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include
-I/home/kibble/source/compiled/httpd-2.0.46/modules/dav/main -module
-export-dynamic
-L/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/li
b -L/usr/local/lib/mysql -R/usr/local/lib/mysql -L/usr/local/ssl/lib
-R/usr/local/ssl/lib   -o mod_kzvhd.la mod_kzvhd.lo
make[3]: Leaving directory
`/home/kibble/source/compiled/httpd-2.0.46/modules/mod_kzvhd'
make[2]: Leaving directory
`/home/kibble/source/compiled/httpd-2.0.46/modules/mod_kzvhd'

# and later #

make[1]: Entering directory `/home/kibble/source/compiled/httpd-2.0.46'
/bin/bash /home/kibble/source/compiled/httpd-2.0.46/srclib/apr/libtool
--silent --mode=link gcc  -g -O2 -pthreads    -DSOLARIS2=9
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/include
-I/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/li
b -I. -I/home/kibble/source/compiled/httpd-2.0.46/os/unix
-I/home/kibble/source/compiled/httpd-2.0.46/server/mpm/prefork
-I/home/kibble/source/compiled/httpd-2.0.46/modules/http
-I/home/kibble/source/compiled/httpd-2.0.46/modules/filters
-I/home/kibble/source/compiled/httpd-2.0.46/modules/proxy
-I/home/kibble/source/compiled/httpd-2.0.46/include
-I/usr/local/include/mysql -I/usr/local/ssl/include/openssl
-I/usr/local/ssl/include
-I/home/kibble/source/compiled/httpd-2.0.46/modules/dav/main
-export-dynamic
-L/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/li
b -L/usr/local/lib/mysql -R/usr/local/lib/mysql -L/usr/local/ssl/lib
-R/usr/local/ssl/lib   -o httpd  modules.lo
modules/mod_kzvhd/mod_kzvhd.la modules/ssl/mod_ssl.la
modules/http/mod_http.la modules/generators/mod_status.la
modules/generators/mod_asis.la modules/mappers/mod_imap.la
modules/mappers/mod_userdir.la modules/mappers/mod_so.la
server/mpm/prefork/libprefork.la server/libmain.la os/unix/libos.la
-lmysqlclient -lssl -lcrypto
/home/kibble/source/compiled/httpd-2.0.46/srclib/pcre/libpcre.la
/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/libaprutil-0.l
a
/home/kibble/source/compiled/httpd-2.0.46/srclib/apr-util/xml/expat/lib/
libexpat.la -liconv
/home/kibble/source/compiled/httpd-2.0.46/srclib/apr/libapr-0.la
-lsendfile -lrt -lm -lsocket -lnsl -lresolv -ldl
Undefined                       first referenced
 symbol                             in file
ap_pstrdup
modules/mod_kzvhd/.libs/mod_kzvhd.al(mod_kzvhd.lo)
ap_push_array
modules/mod_kzvhd/.libs/mod_kzvhd.al(mod_kzvhd.lo)
ld: fatal: Symbol referencing errors. No output written to .libs/httpd
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/home/kibble/source/compiled/httpd-2.0.46'
make: *** [all-recursive] Error 1


Link: http://aproxity.com/kzvhd.c

Thanks again ... kibbles

Attachment: mod_kzvhd.c
Description: Binary data

Reply via email to