* Guenter Knauf <[email protected]> wrote: > Hi Jie, > Jie Gao schrieb: > > Building shared: mod_dbd.la > > /usr/local/src/httpd-2.2.14/srclib/apr/libtool --silent --mode=compile > > /opt/SUNWspro/bin/cc -g -fast -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS > > -D_REENTRANT -D_LARGEFILE64_SOURCE -DAP_DEBUG > > -I/usr/local/src/httpd-2.2.14/srclib/pcre -I. > > -I/usr/local/src/httpd-2.2.14/os/unix > > -I/usr/local/src/httpd-2.2.14/server/mpm/worker > > -I/usr/local/src/httpd-2.2.14/modules/http > > -I/usr/local/src/httpd-2.2.14/modules/filters > > -I/usr/local/src/httpd-2.2.14/modules/proxy > > -I/usr/local/src/httpd-2.2.14/include > > -I/usr/local/src/httpd-2.2.14/modules/generators > > -I/usr/local/src/httpd-2.2.14/modules/mappers > > -I/usr/local/src/httpd-2.2.14/modules/database > > -I/usr/local/src/httpd-2.2.14/srclib/apr/include > > -I/usr/local/src/httpd-2.2.14/srclib/apr-util/include > > -I/usr/local/src/httpd-2.2.14/srclib/apr-util/xml/expat/lib > > -I/usr/local/src/httpd-2.2.14/modules/proxy/../generators > > -I/usr/sfw/include -I/usr/local/src/httpd-2.2.14/modules/ssl > > -I/usr/local/src/httpd-2.2.14/modules/dav/main -prefer-pic -c mod_db > d.c && touch mod_dbd.slo > > "mod_dbd.c", line 898: warning: argument #1 is incompatible with prototype: > > prototype: pointer to function(pointer to struct apr_pool_t {}, > > pointer to struct server_rec {pointer to struct process_rec {..} process, > > pointer to struct server_rec {..} next, pointer to const char defn_name, > > unsigned int defn_line_number, pointer to char server_admin, pointer to > > char server_hostname, unsigned short port, pointer to char error_fname, > > pointer to struct apr_file_t {..} error_log, int loglevel, int is_virtual, > > pointer to struct ap_conf_vector_t {..} module_config, pointer to struct > > ap_conf_vector_t {..} lookup_defaults, pointer to struct server_addr_rec > > {..} addrs, long long timeout, long long keep_alive_timeout, int > > keep_alive_max, int keep_alive, pointer to const char path, int pathlen, > here's the patch for this one (applies with offset -6 / -9 lines): > http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/database/mod_dbd.c?r1=708820&r2=708819&pathrev=708820 I have applied the patch above, and the warning went away.
I have also found the following warnings: /bin/bash /usr/local/src/httpd-2.2.14/srclib/apr/libtool --silent --mode=compile /opt/SUNWspro/bin/cc -g -fast -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I./include -I/usr/local/src/httpd-2.2.14/srclib/apr/include/arch/unix -I./include/arch/unix -I/usr/local/src/httpd-2.2.14/srclib/apr/include/arch/unix -I/usr/local/src/httpd-2.2.14/srclib/apr/include -o shmem/unix/shm.lo -c shmem/unix/shm.c && touch shmem/unix/shm.lo "shmem/unix/shm.c", line 87: warning: statement not reached "shmem/unix/shm.c", line 218: warning: statement not reached "shmem/unix/shm.c", line 365: warning: statement not reached "shmem/unix/shm.c", line 424: warning: statement not reached "shmem/unix/shm.c", line 455: warning: statement not reached "shmem/unix/shm.c", line 573: warning: statement not reached /usr/local/src/httpd-2.2.14/srclib/apr/libtool --silent --mode=compile /opt/SUNWspro/bin/cc -g -fast -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -DAP_DEBUG -I/usr/local/src/httpd-2.2.14/srclib/pcre -I. -I/usr/local/src/httpd-2.2.14/os/unix -I/usr/local/src/httpd-2.2.14/server/mpm/worker -I/usr/local/src/httpd-2.2.14/modules/http -I/usr/local/src/httpd-2.2.14/modules/filters -I/usr/local/src/httpd-2.2.14/modules/proxy -I/usr/local/src/httpd-2.2.14/include -I/usr/local/src/httpd-2.2.14/modules/generators -I/usr/local/src/httpd-2.2.14/modules/mappers -I/usr/local/src/httpd-2.2.14/modules/database -I/usr/local/src/httpd-2.2.14/srclib/apr/include -I/usr/local/src/httpd-2.2.14/srclib/apr-util/include -I/usr/local/src/httpd-2.2.14/srclib/apr-util/xml/expat/lib -I/usr/local/src/httpd-2.2.14/modules/proxy/../generators -I/usr/sfw/include -I/usr/local/src/httpd-2.2.14/modules/ssl -I/usr/local/src/httpd-2.2.14/modules/dav/main -prefer-non-pic -static -c util_script.c && touch util_script.lo "util_script.c", line 606: warning: statement not reached Regards, Jie
