DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27723>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27723 jk_logger_file.c fails to build on Alpha. jk2_logger_file_jkVLog uses 'args' incorrectly? Summary: jk_logger_file.c fails to build on Alpha. jk2_logger_file_jkVLog uses 'args' incorrectly? Product: Tomcat 4 Version: Unknown Platform: Alpha URL: http://groups.google.com/groups?q=tomcat+%22wrong+type+a rgument+to+unary%22&selm=2262dffc.0403041012.2635895c%40 posting.google.com&rnum=1 OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Connector:Coyote JK 2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] (This is with JK2 2.0.2 -- jakarta-tomcat-connectors-jk2-2.0.2-src) The connector fails to compile at the file "jk_logger_file.c", due to a problem with the jk2_logger_file_jkVLog function. Here is a log of my build commands: ================================================================== ./configure --with-apxs2=/path/to/apache/bin/apxs --with-java-home=/path/to/jdk131 (... SNIP ...) make (... SNIP ...) gcc -g -O2 -DOSF1 -I../../include -I/tmp/workdir/apache/incl ude -I /tmp/workdir/java131/include -I /tmp/workdir/java131/include/alpha -DCHUNK_SIZE=4096 -DUSE_APACHE_MD5 -DHAS_APR - c ../../common/jk_logger_file.c -DPIC -o ../../../build/jk2/apache2/.libs/jk_lo gger_file.lo ../../common/jk_logger_file.c: In function `jk2_logger_file_jkVLog': ../../common/jk_logger_file.c:247: wrong type argument to unary exclamation mark ================================================================== In jk_logger_file.c , the relevant code from lines 233 - 247 is this: static int JK_METHOD jk2_logger_file_jkVLog(jk_env_t *env, jk_logger_t *l, const char *file, int line, int level, const char *fmt, va_list args) { int rc = 0; char *buf; char *fmt1; apr_pool_t *aprPool=env->tmpPool->_private; char rfctime[APR_RFC822_DATE_LEN]; apr_time_t time = apr_time_now(); if( !file || !args) { return -1; } ================================================================== It looks like '!' and 'args' are incompatable data types. At least one other person has run into this error. Some other people replied with their analysis that 'args' is the wring data type. http://groups.google.com/groups?q=tomcat+%22wrong+type+argument+to+unary%22&selm=2262dffc.0403041012.2635895c%40posting.google.com&rnum=1 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]