You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/20 20:10:15 UTC

DO NOT REPLY [Bug 11008] New: - Win32/cygwin compile report + patch (gcc 3.1.1 compile warnings)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11008

Win32/cygwin compile report + patch (gcc 3.1.1 compile warnings)

           Summary: Win32/cygwin compile report + patch (gcc 3.1.1 compile
                    warnings)
           Product: Tomcat 4
           Version: 4.0 Beta 7
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Connector:Coyote JK 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jari.aalto@poboxes.com


Environment:

- W2k/Cygwin (latest, 1.3.1) http://cygwin.com
- gcc (GCC) 3.1.1 20020714 (prerelease)
- (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
- Apache/1.3.24 (Cygwin)

- CVS ant
- CVS jakarta-tomcat-connectors
- tomcat 4.1b7 
- JDK 1.4.1

How to compile under Cygwin:

1. After patches according to article below (patches at the end)

http://www.apachelabs.org/tomcat-user/200204.mbox/%
3c9BAE99905FCF684D91F63E1439475FBA0484EF07@sydmsg1.int.f2.com.au%3e

the ./configure --with-apxs for some reason cannot find apxs.

    checking for perl... /usr/local/bin/perl
    configure: error: Invalid location for apxs: 'yes'

I don not know why, perhaps you should mention that under cygwin this must
be called with absolute path

     ./configure --with-apxs=$(which apxs)

That solved the ./configure.

2. After Make, these messages were reported. Notce that final message
"warning: remember to run `libtool --finish /usr/local/libexec'" in invalid,
mecause Cygwin apache does not have libexec directory. The ddl's are under
/usr/lib/apache/ (mod_rewrite.dll etc)



gcc -I/usr/include/apache -Wall -Wno-format -Wstrict-prototypes -Wmissing-
prototypes -mwindows -DGETTEXT_STATIC -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE -
Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -
DGETTEXT_STATIC -I d:javasunjdk-1.4.1/include -I d:javasunjdk-
1.4.1/include/Windows_NT -c jk_msg_buff.c  -DDLL_EXPORT -DPIC -
o .libs/jk_msg_buff.lo
jk_msg_buff.c: In function `jk_b_dump':
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:96: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c:107: warning: operation on `i' may be undefined
jk_msg_buff.c: At top level:
jk_msg_buff.c:424: warning: `swap_16' defined but not used


[...]

gcc -I/usr/include/apache -Wall -Wno-format -Wstrict-prototypes -Wmissing-
prototypes -mwindows -DGETTEXT_STATIC -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE -
Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -
DGETTEXT_STATIC -I d:javasunjdk-1.4.1/include -I d:javasunjdk-
1.4.1/include/Windows_NT -c jk_util.c  -DDLL_EXPORT -DPIC -o .libs/jk_util.lo
jk_util.c: In function `jk_get_worker_secret':
jk_util.c:298: warning: unused variable `secret_file'
jk_util.c: At top level:
jk_util.c:508: warning: no previous prototype for 
`jk_get_local_worker_only_flag'

[...]

gcc -I/usr/include/apache -Wall -Wno-format -Wstrict-prototypes -Wmissing-
prototypes -mwindows -DGETTEXT_STATIC -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE -
Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -
DGETTEXT_STATIC -I d:javasunjdk-1.4.1/include -I d:javasunjdk-
1.4.1/include/Windows_NT -c jk_lb_worker.c  -DDLL_EXPORT -DPIC -
o .libs/jk_lb_worker.lo
jk_lb_worker.c: In function `get_path_param':
jk_lb_worker.c:140: warning: suggest parentheses around assignment used as 
truth value
jk_lb_worker.c: In function `get_cookie':
jk_lb_worker.c:173: warning: suggest parentheses around assignment used as 
truth value
jk_lb_worker.c: In function `validate':
jk_lb_worker.c:423: warning: implicit declaration of function 
`jk_get_local_worker_only_flag'

[...]

gcc -I/usr/include/apache -Wall -Wno-format -Wstrict-prototypes -Wmissing-
prototypes -mwindows -DGETTEXT_STATIC -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE -
Wall -Wno-format -Wstrict-prototypes -Wmissing-prototypes -mwindows -
DGETTEXT_STATIC -I d:javasunjdk-1.4.1/include -I d:javasunjdk-
1.4.1/include/Windows_NT -c jk_uri_worker_map.c  -DDLL_EXPORT -DPIC -
o .libs/jk_uri_worker_map.lo
jk_uri_worker_map.c:63:29: warning: "/*" within comment
jk_uri_worker_map.c:63:53: warning: "/*" within comment
jk_uri_worker_map.c:64:33: warning: "/*" within comment
jk_uri_worker_map.c:64:64: warning: "/*" within comment
jk_uri_worker_map.c:273:60: warning: "/*" within comment
jk_uri_worker_map.c:274:27: warning: "/*" within comment
jk_uri_worker_map.c:429: warning: no previous prototype for `last_index_of'


[...]

gcc -DPACKAGE=\"mod_jk\" -DVERSION=\"1.2.0\" -DHAVE_DLFCN_H=1 -I. -I. -
I/usr/include/apache -I../common -Wall -Wno-format -Wstrict-prototypes -
Wmissing-prototypes -mwindows -DGETTEXT_STATIC -Wp,-MD,.deps/mod_jk.pp -c 
mod_jk.c  -DDLL_EXPORT -DPIC -o .libs/mod_jk.lo
In file included from mod_jk.c:73:
/usr/include/apache/http_config.h:98: warning: function declaration isn't a 
prototype
In file included from ../common/jk_global.h:68,
                 from mod_jk.c:94:
../common/jk_version.h:80:1: warning: "PACKAGE" redefined
mod_jk.c:1:1: warning: this is the location of the previous definition
mod_jk.c: In function `request_log_transaction':
mod_jk.c:857: warning: passing arg 3 of `jk_log' makes integer from pointer 
without a cast
mod_jk.c:858: warning: control reaches end of non-void function
mod_jk.c: In function `parse_request_log_item':
mod_jk.c:1102: warning: unused variable `i'
mod_jk.c: At top level:
mod_jk.c:1307: warning: no previous prototype for `jk_set_options'
mod_jk.c: In function `jk_handler':
mod_jk.c:1502: warning: suggest parentheses around assignment used as truth 
value
mod_jk.c:1561: warning: unused variable `status'


[...]

libtool: install: warning: remember to run `libtool --finish /usr/local/libexec'


[Patch for compilation  jk/native]

 diff -u buildconf.sh.1.7 buildconf.sh     
--- buildconf.sh.1.7    2002-07-20 20:42:16.000000000 +0300
+++ buildconf.sh        2002-07-20 20:42:36.000000000 +0300
@@ -6,7 +6,7 @@
 #aclocal --acdir=`aclocal --print-ac-dir`
 #aclocal --acdir=/usr/local/share/aclocal
 aclocal
-echo "automake -a --foreign -i --copy"
-automake -a --foreign -i --copy
+echo "automake -a --foreign --copy"
+automake -a --foreign --copy
 echo "autoconf"
 autoconf

 diff -uBbw configure.in.1.17 configure.in
--- configure.in.1.17   2002-07-20 20:44:00.000000000 +0300
+++ configure.in        2002-07-20 20:44:18.000000000 +0300
@@ -13,6 +13,8 @@
 
 AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})
 
+AC_PROG_CC
+
 dnl Not sure what it does, but the libtool manual seems to require this
 dnl It should use the native platform dlopen ( if available )
 AC_LIBTOOL_DLOPEN
@@ -21,7 +23,7 @@
 dnl I have solved them once using aclocal --acdir=/usr/local/share/aclocal/
 AM_PROG_LIBTOOL
 
-AC_PROG_CC
+
 
 diff -bBwu common/jk_global.h.1.18 common/jk_global.h
--- common/jk_global.h.1.18     2002-07-20 20:35:10.000000000 +0300
+++ common/jk_global.h  2002-07-20 20:35:58.000000000 +0300
@@ -92,7 +92,7 @@
         #include <netinet/tcp.h>
         #include <arpa/inet.h>
         #include <sys/un.h>
-        #ifndef _OSD_POSIX
+        #if !defined( _OSD_POSIX ) && !defined( CYGWIN )
             #include <sys/socketvar.h>
         #endif
         #ifndef HPUX11



 AC_PROG_LD

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>