Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#21001 closed defect (fixed)

Compiling apache2 with ccache breaks modules

Reported by: raimue (Rainer Müller) Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: libtool Cc: steve_macdougall@…, ryandesign (Ryan Carsten Schmidt)
Port: apache2

Description

If apache2 has been compiled with ccache, the apxs tool tries to use 'libtool ... ccache /usr/bin/gcc-4.0' on compilation of modules.

This will always fail, here an example from mod_wsgi:

/opt/local/apache2/bin/apxs -c -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DNDEBUG  -Wc,'-arch i386' mod_wsgi.c -L/opt/local/lib -L/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib -L/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config  -arch i386 -lpython2.4 -ldl 
/opt/local/share/apr-1/build/libtool --silent --mode=compile ccache /usr/bin/gcc-4.0 -prefer-pic -pipe -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 -arch i386 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
apxs:Error: Command failed with rc=65536

Therefore I propose to disable ccache for compilation of apache2.

Attachments (1)

patch-apache2-ccache.diff (710 bytes) - added by raimue (Rainer Müller) 15 years ago.

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by raimue (Rainer Müller)

Attachment: patch-apache2-ccache.diff added

comment:1 Changed 15 years ago by steve_macdougall@…

Cc: steve_macdougall@… added

Cc Me!

comment:2 Changed 15 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Maintainer timeout, committed in r63263.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Fixed properly in r86196.

Note: See TracTickets for help on using tickets.