[mod_python] make failed on AIX 5.1 using xlc

Graham Dumpleton grahamd at dscpl.com.au
Mon Jan 9 16:38:37 EST 2006


Seems to be some quirk with xlc compiler. Never liked that compiler,
always did strange things.

Try hacking the code so that instead of:

  (destructor)request_dealloc,     /* tp_free */

it says:

  (void(*)(void*))request_dealloc,     /* tp_free */

Try a typedef for the function pointer if I got the cast wrong or it
doesn't want to accept that.

Graham

Hans-Joachim Ehlers wrote ..
> Hi folk,
> i am trying to build mod-python 3.1.4 on AIX 5.1 with xlc
> During the gmake i get the following error: .... 1506-196 (E)
> Initialization between types "void(*)(void*)" and "void(*)(struct
> _object*)" is not allowed 
> 
> any Tips ?
> tai 
> Hajo
> 
> For details see below
> 
> given:
> AIX 5.1
> vac 6.0 ( IBM xlc)
> mod-python 3.1.4
> Python 2.4.2 build as shared Lib application
> Apache 2.0.55
> 
> $ ./configure CC=xlc_r \
>  --with-thread       \
>  --with-python=/usr/local/bin/python \
>  --with-apxs=/usr/local/apache2/bin/apxs 
> 
> 
> $ gmake[1]: Entering directory
> `/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src'
> 
> Compiling for DSO.
> 
> /usr/local/apache2/bin/apxs
> -I/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src/include
> -I/usr/local/apache2/include -I/usr/local/include/python2.4 -c
> mod_python.c _apachemodule.c requestobject.c tableobject.c util.c
> serverobject.c connobject.c filterobject.c hlist.c hlistobject.c
> -L/usr/local/lib/python2.4/config  -Wl,-bE:Modules/python.exp -lld  
> -L/opt/freeware/lib -ltk8.3 -ltcl8.3    -lm  -lpython2.4   -ldl    -lm
> /usr/local/apache2/build/libtool --silent --mode=compile xlc_r
> -prefer-pic   -U__STR__ -D_THREAD_SAFE -D_USE_IRS -DAP_DEBUG -g -qHALT=E
> -qfullpath -qinitauto=FE -qcheck=all -qinfo=pro
> -I/usr/local/apache2/include  -I/usr/local/apache2/include  
> -I/usr/local/apache2/include 
> -I/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src/include
> -I/usr/local/apache2/include -I/usr/local/include/python2.4  -c -o
> mod_python.lo mod_python.c && touch mod_python.slo
> /usr/local/apache2/build/libtool --silent --mode=compile xlc_r
> -prefer-pic   -U__STR__ -D_THREAD_SAFE -D_USE_IRS -DAP_DEBUG -g -qHALT=E
> -qfullpath -qinitauto=FE -qcheck=all -qinfo=pro
> -I/usr/local/apache2/include  -I/usr/local/apache2/include  
> -I/usr/local/apache2/include 
> -I/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src/include
> -I/usr/local/apache2/include -I/usr/local/include/python2.4  -c -o
> _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
> /usr/local/apache2/build/libtool --silent --mode=compile xlc_r
> -prefer-pic   -U__STR__ -D_THREAD_SAFE -D_USE_IRS -DAP_DEBUG -g -qHALT=E
> -qfullpath -qinitauto=FE -qcheck=all -qinfo=pro
> -I/usr/local/apache2/include  -I/usr/local/apache2/include  
> -I/usr/local/apache2/include 
> -I/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src/include
> -I/usr/local/apache2/include -I/usr/local/include/python2.4  -c -o
> requestobject.lo requestobject.c && touch requestobject.slo
> "requestobject.c", line 1381.5: 1506-196 (E) Initialization between
> types "void(*)(void*)" and "void(*)(struct _object*)" is not allowed.
> apxs:Error: Command failed with rc=65536
> .
> gmake[1]: *** [mod_python.so] Error 1
> gmake[1]: Leaving directory
> `/homespace/hjehlers/workbench/modpython/mod_python-3.1.4/src'
> gmake: *** [do_dso] Error 2
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list