New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21001 (closed defect: fixed)

Opened 4 years ago

Last modified 19 months ago

Compiling apache2 with ccache breaks modules

Reported by: raimue@… Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: libtool Cc: steve_macdougall@…, ryandesign@…
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

patch-apache2-ccache.diff (710 bytes) - added by raimue@… 4 years ago.

Change History

Changed 4 years ago by raimue@…

comment:1 Changed 4 years ago by steve_macdougall@…

  • Cc steve_macdougall@… added

Cc Me!

comment:2 Changed 3 years ago by raimue@…

  • Status changed from new to closed
  • Resolution set to fixed

Maintainer timeout, committed in r63263.

comment:3 Changed 19 months ago by ryandesign@…

  • Cc ryandesign@… added

Fixed properly in r86196.

Note: See TracTickets for help on using tickets.