473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

mod_jk2 compilation issues on tru64 with gcc

Im having issues getting mod_jk2 for Apache and tomcat to compile
using, cygnus's gcc on tru64 5.1a

from the looks of it I dont understand why this is an issue.

here is the error:

gcc -g -O2 -DOSF1 -I../../include -I/install/httpd-2.0.48/include
-I/install/httpd-2.0.48/os/s%@OSDIR@%unix%g -g -O2
-I/install/httpd-2.0.48/srclib/apr-util/include
-I/install/httpd-2.0.48/srclib/apr/include -DCHUNK_SIZE=4096
-DUSE_APACHE_MD5 -DHAS_APR -DHAS_AP_PCRE -c
.../../common/jk_logger_file.c -DPIC -o
.../../../build/jk2/apache2/.libs/jk_logger_file.lo
In file included from ../../include/jk_global.h:104,
from ../../include/jk_logger.h:27,
from ../../include/jk_env.h:25,
from ../../common/jk_logger_file.c:25:
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/unistd.h:609:
warning: `cuserid' redefined
/usr/local/lib/gcc-lib/alpha-dec-osf5.1/2.9-gnupro-99r1/include/stdio.h:458:
warning: this is the location of the previous definition
.../../common/jk_logger_file.c: In function `jk2_logger_file_jkVLog':
.../../common/jk_logger_file.c:197: wrong type argument to unary
exclamation mark
gmake[1]: *** [../../../build/jk2/apache2/jk_logger_file.lo] Error 1
gmake[1]: Leaving directory
`/tomcat/tomcat.5.0.19/src/jakarta-tomcat-connectors/jk/native2/server/apache2'
gmake: *** [jk2-build] Error 1

here is the code snippet:

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) ### this is the error line
return -1;
Any insight would be greatly appreciated.

Bill
Nov 14 '05 #1
2 1247
wr****@ipcc.com (William Rusch) wrote in
news:22**************************@posting.google.c om:

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) ### this is the error line 197
return -1;

../../common/jk_logger_file.c:197: wrong type argument to unary

Any insight would be greatly appreciated.


It appears that !args is not a pointer or scalar. Look for some other way
to determine if 'args' is a valid object.

--
- Mark ->
--
Nov 14 '05 #2
> Im having issues getting mod_jk2 for Apache and tomcat to compile
using, cygnus's gcc on tru64 5.1a

from the looks of it I dont understand why this is an issue.

here is the error:
../../common/jk_logger_file.c: In function `jk2_logger_file_jkVLog':
../../common/jk_logger_file.c:197: wrong type argument to unary
exclamation mark

here is the code snippet:

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)
{ [snip] if (!file || !args) ### this is the error line
return -1;


You cannot go "!args" with a va_list. You should submit a bug
report to Apache or whoever is the appropriate organization.
If you feel dutiful you could re-write it to work, and also check
that they do not do other illegal things with va-lists.

I suggest making it "va_list *args" at first. Look out for when
va_end() is called too (make sure it is called exactly once for
each list).
Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joshua McCulloch | last post by:
I have setup Apache 2.0.47 on Windows XP to serve jsp/servlet requests using Tomcat 4.1.27. I did this using the mod_jk2 module and was able to successfully connect to http://host/examples and get...
1
by: J Peaks | last post by:
All, We are soon to be hosting a very important system but are currently having some problems with setting this up on our Redhat Linux environment. We are running the following: Redhat 9...
0
by: the_rev_dharma_roadkill | last post by:
I've have some fun getting DCOracle2 (python-to-oracle interface) going on HP/Compaq Tru64 with Oracle8i Release 3 (oracle 8.1.7). I'd like to share an answer/bug-fix with you: After un-tarring...
5
by: Heuguette Bostic | last post by:
I am attempting to compile Python 2-3.4 on Tru64 UNIX V4.0F. Whenever Iissue the make command, the following errors are output: -pthread -ieee -std -Olimit 1500 -DNDEBUG -O -I. -I./Include...
2
by: jose luis fernandez diaz | last post by:
Hi, When I run the program below on Tru64: #include <string> int main() { char *cad="hola"; string s1 = 1 ? string(cad, 0, 2) : "";
4
by: Marcelo Pinto | last post by:
Hi all, In a class of mine I tried to use the following member: std::map<std::string, std::set<std::string> > m_files; but I recieved the following error message: mips-tfile,...
2
by: Nikola Milutinovic | last post by:
Hi guys. Building 7.4 "as we speak". I've run into one minor building bug. HW: DEC AlphaStation 200 OS: Digital UNIX 4.0D + SP9 PG: 7.4 sources When I choose to build "with threading...
3
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
3
by: Nikola Milutinovic | last post by:
Hi guys. I have just had some problems resolved while building PostgreSQL 7.4.2 on Tru64 UNIX 5.1B. File "./src/backend/utils/adt/float.c" uses "NAN" on two spots. It ahs a fall-back...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.