Build failure in 3.3.1
----------------------

                 Key: MODPYTHON-249
                 URL: https://issues.apache.org/jira/browse/MODPYTHON-249
             Project: mod_python
          Issue Type: Bug
    Affects Versions: 3.3.1
         Environment: Discovered in OSX 10.5.4 (Intel) using macports.org, also 
reported in Gentoo
            Reporter: Jim Nelson


Fails to build with the following error from macports:

/opt/local/share/apr-1/build/libtool --silent --mode=compile /usr/bin/gcc-4.0 
-prefer-pic -O2 -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp 
-I/opt/local/include -I/opt/local/apache2/include -I/opt/local/include/apr-1 
-I/opt/local/include/apr-1 -I/opt/local/include 
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_python/work/mod_python-3.3.1/src/include
 -I/opt/local/apache2/include 
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 
-c -o connobject.lo connobject.c && touch connobject.slo connobject.c: In 
function '_conn_read':
connobject.c:142: error: request for member 'next' in something not a structure 
or union
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make: *** [do_dso] Error 2

Error: Status 1 encountered during processing.

Bug reported at:
http://trac.macports.org/ticket/15791
http://bugs.gentoo.org/show_bug.cgi?id=230211

Recommended fix:

You can download the source and implement a suggested fix - on line 142 of
connobject.c you can replace 

!(b == APR_BRIGADE_SENTINEL(b) ||

with 

!(b == APR_BRIGADE_SENTINEL(bb) ||

suggested here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg20588.html

However this is obviously untested, though it compiles fine.

(From response #6 from Gentoo bug report)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to