Apache Mod-Python - Created: (MODPYTHON-214) Look more into Win32 compiler

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > January 2007 > Created: (MODPYTHON-214) Look more into Win32 compiler





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-214) Look more into Win32 compiler
Graham Dumpleton (JIRA)

2007-01-14, 1:13 am

Look more into Win32 compiler warnings.
---------------------------------------

Key: MODPYTHON-214
URL: https://issues.apache.org/jira/browse/MODPYTHON-214
Project: mod_python
Issue Type: Task
Reporter: Graham Dumpleton
Priority: Minor


Compilation on Win32 using VisualStudio project file throws up a lot of warnings still with 3.3. This was highlighted by Jeff Robins.

http://mail-archives.apache.org/mod...%3c018601c70996$8ae9f000$db01a8c0@corporate.cambridge.livedata.com%3e

The errors from the post are:

------ Build started: Project: mod_python, Configuration: Release Win32 ------
Compiling...
finfoobject.c
c:\Python25\include\pyconfig.h(309) : warning C4005: 'PLATFORM' : macro redefinition
c:\Program Files\Apache Software Foundation\Apache2.2\include\os.h(41) : see previous definition of 'PLATFORM'
finfoobject.c(129) : warning C4047: 'function' : 'long' differs in levels of indirection from 'apr_uid_t'
finfoobject.c(137) : warning C4047: 'function' : 'long' differs in levels of indirection from 'apr_gid_t'
finfoobject.c(145) : warning C4244: 'function' : conversion from 'apr_ino_t' to 'long', possible loss of data
finfoobject.c(173) : warning C4244: 'function' : conversion from 'apr_off_t' to 'long', possible loss of data
finfoobject.c(183) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
finfoobject.c(191) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
finfoobject.c(199) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
util.c
util.c(122) : warning C4244: 'function' : conversion from 'apr_ino_t' to 'long', possible loss of data
util.c(140) : warning C4047: 'function' : 'long' differs in levels of indirection from 'apr_uid_t'
util.c(146) : warning C4047: 'function' : 'long' differs in levels of indirection from 'apr_gid_t'
util.c(152) : warning C4244: 'function' : conversion from 'apr_off_t' to 'long', possible loss of data
util.c(158) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
util.c(164) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
util.c(170) : warning C4244: 'function' : conversion from 'double' to 'long', possible loss of data
tableobject.c
serverobject.c
requestobject.c
requestobject.c(886) : warning C4244: '=' : conversion from 'apr_off_t' to 'long', possible loss of data
requestobject.c(986) : warning C4244: '=' : conversion from 'apr_off_t' to 'long', possible loss of data
requestobject.c(1434) : warning C4244: '=' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
requestobject.c(1609) : warning C4244: 'initializing' : conversion from 'apr_off_t' to 'long', possible loss of data
mod_python.c
mod_python.c(429) : warning C4101: 'mutex_dir' : unreferenced local variable
mod_python.c(1985) : warning C4244: 'function' : conversion from 'apr_off_t' to 'apr_size_t', possible loss of data
mod_python.c(2028) : warning C4101: 'tmp_buck' : unreferenced local variable
hlistobject.c
hlist.c
filterobject.c
filterobject.c(234) : warning C4018: '>' : signed/unsigned mismatch
filterobject.c(243) : warning C4018: '<' : signed/unsigned mismatch
connobject.c
connobject.c(155) : warning C4018: '>' : signed/unsigned mismatch
_apachemodule.c
Compiling resources...
Linking...
Creating library .\Release/mod_python.lib and object .\Release/mod_python.exp
Build log was saved at "file://c:\work\mod_python-3.3.0-dev-20061109\src\Release\BuildLog.htm"
mod_python - 0 error(s), 25 warning(s)

Compiling with -Wall on UNIX systems when using gcc might help as default options on gcc may not be showing these, that or it comes down to different type definitions on Win32.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com