Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133563 - net-www/mod_fastcgi-2.4.2-r1 does not compile with apache 2.2
Summary: net-www/mod_fastcgi-2.4.2-r1 does not compile with apache 2.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 114232
  Show dependency tree
 
Reported: 2006-05-16 20:34 UTC by John Sonnenschein
Modified: 2007-09-16 12:21 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch allowing mod_fastcgi to compile vs apache 2.2 and 2.0 (mod_fastcgi-httpd-2.2.3.patch,1.64 KB, patch)
2006-12-03 19:12 UTC, Mark Guzman
Details | Diff
an ebuild that uses the mod_fastcgi apache 2.2 patch (mod_fastcgi-2.4.2-r2.ebuild,925 bytes, text/plain)
2006-12-03 19:15 UTC, Mark Guzman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Sonnenschein 2006-05-16 20:34:38 UTC
/usr/share/apr-1/build-1/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -march=k8 -O2 -pipe -msse3 -ftree-vectorize -fprefetch-loop-arrays -mmmx -msse -msse2 -momit-leaf-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.2  -c -o mod_fastcgi.lo mod_fastcgi.c && touch mod_fastcgi.slo
mod_fastcgi.c: In function 'init_module':
mod_fastcgi.c:270: error: 'ap_null_cleanup' undeclared (first use in this function)
mod_fastcgi.c:270: error: (Each undeclared identifier is reported only once
mod_fastcgi.c:270: error: for each function it appears in.)
mod_fastcgi.c: In function 'process_headers':
mod_fastcgi.c:725: warning: return makes pointer from integer without a cast
mod_fastcgi.c:729: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:739: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:768: warning: initialization makes pointer from integer without a cast
mod_fastcgi.c:838: warning: return makes pointer from integer without a cast
mod_fastcgi.c:842: warning: return makes pointer from integer without a cast
mod_fastcgi.c: In function 'set_uid_n_gid':
mod_fastcgi.c:1022: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast
mod_fastcgi.c:1024: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:1033: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:1034: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c: In function 'do_work':
mod_fastcgi.c:2321: error: 'ap_null_cleanup' undeclared (first use in this function)
mod_fastcgi.c: In function 'create_fcgi_request':
mod_fastcgi.c:2425: warning: cast to pointer from integer of different size
mod_fastcgi.c:2453: warning: cast to pointer from integer of different size
mod_fastcgi.c:2479: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:2492: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c: In function 'apache_is_scriptaliased':
mod_fastcgi.c:2534: warning: initialization makes pointer from integer without a cast
mod_fastcgi.c: In function 'post_process_for_redirects':
mod_fastcgi.c:2559: warning: passing argument 1 of 'ap_internal_redirect_handler' makes pointer from integer without a cast
mod_fastcgi.c: In function 'check_user_authentication':
mod_fastcgi.c:2682: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:2700: warning: comparison between pointer and integer
mod_fastcgi.c: In function 'check_user_authorization':
mod_fastcgi.c:2749: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:2765: warning: comparison between pointer and integer
mod_fastcgi.c: In function 'check_access':
mod_fastcgi.c:2809: warning: assignment makes pointer from integer without a cast
mod_fastcgi.c:2826: warning: comparison between pointer and integer
apxs:Error: Command failed with rc=65536
.

!!! ERROR: net-www/mod_fastcgi-2.4.2-r1 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  ebuild.sh, line 1240:   Called apache-module_src_compile
  apache-module.eclass, line 375:   Called apache2_src_compile
  apache-module.eclass, line 268:   Called die

!!! /usr/sbin/apxs2 -c mod_fastcgi.c fcgi*.c failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-05-17 17:54:51 UTC
Which version of apache, apr, and apr-util are you using?
Comment 2 John Sonnenschein 2006-05-18 08:30:01 UTC
apr-1.2.7 apr-util-1.2.7 (USE="berkdb postgres -gdbm -ldap -sqlite -sqlite3") and apache-2.2.0-r2 (USE="doc ssl -debug -ldap -mpm-event -mpm-peruser -mpm-prefork -mpm-worker -no-suexec -static-modules -threads")

Use flags for these particular packages, in case they shed any light
Comment 3 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-05-19 20:51:17 UTC
mod_fastcgi is known to not work with apache 2.2. (mod_fastcgi uses apr calls from apache 1.3 that are only there in a compatibility mode in apache 2.0 and have been removed in apache 2.2).

apache 2.2 support depends on upstream fixing thier code.

I'll leave this open for now until I figure out how we're going to handle blocking and upgrade paths from apache 2.0 to 2.2.
Comment 4 Ben Jencks 2006-07-24 16:08:37 UTC
There is a really ugly hack that will make it work with apache 2.2. It re-enables the compatibility stuff.
http://fastcgi.com/archives/fastcgi-developers/2005-December/004060.html
It seems that fastcgi has pretty much stopped being maintained, as it hasn't been updated in over two years.
Comment 5 Sean Leather 2006-08-26 21:35:02 UTC
There is also this hack for getting fastcgi-2.4.2 to work with apache-2.2.3:
http://hack.emilykwan.com/node/95
Comment 6 Sean Leather 2006-08-26 21:54:39 UTC
Could mod_fcgid be a possible replacement?
http://fastcgi.coremail.cn/

Apparently, it is being used with the Apache Lounge (Apache 2 on Windows) project:
http://www.apachelounge.com/download/

I have only found this through Googling. I have no idea how stable/well maintained it is. I agree with Ben that it appears the original FastCGI project is no longer maintained. It would be nice to see some kind of support for FastCGI with apache-2.2.* though.
Comment 7 Mark Guzman 2006-12-03 19:12:49 UTC
Created attachment 103300 [details, diff]
patch allowing mod_fastcgi to compile vs apache 2.2 and 2.0

This goes along with an ebuild I used on my system to setup apache 2.2 + mod_fastcgi
Comment 8 Mark Guzman 2006-12-03 19:15:03 UTC
Created attachment 103301 [details]
an ebuild that uses the mod_fastcgi apache 2.2 patch

used on my system to get apache 2.2 + mod_fastcgi working
Comment 9 Xavier Neys (RETIRED) gentoo-dev 2006-12-21 02:02:06 UTC
(In reply to comment #6)
> Could mod_fcgid be a possible replacement?
> http://fastcgi.coremail.cn/

FWIW, I use fcgid and consider it is better.
Comment 10 Christian Heim (RETIRED) gentoo-dev 2007-01-07 22:15:22 UTC
(In reply to comment #9)
> (In reply to comment #6)
> > Could mod_fcgid be a possible replacement?
> > http://fastcgi.coremail.cn/
> 
> FWIW, I use fcgid and consider it is better.

And that's the way we go :) I just sent the announce, that net-www/mod_fastcgi is getting removed in favor of www-apache/mod_fcgid.
Comment 11 André Malo 2007-01-09 23:59:36 UTC
As far as I can see it, this completely drops the possibility of running standalone fastcgi daemons until Apache 2.4. Or are there different alternatives?
Comment 12 Zak Kipling 2007-01-16 10:34:47 UTC
mod_fcgid appears to be a fine solution for those using "dynamic" FastCGI apps that are started on first use -- however it doesn't appear to have anything equivalent to the "static" and "external" apps supported by the FastCGIServer and FastCGIExternalServer directives.

These are particularly useful if you have apps that take a very long time to start -- FastCGIServer ensures they are pre-started with Apache, while FastCGIExternalServer allows you to restart Apache without restarting your application processes.

Is there a supported alternative for users who require this functionality (aside from masking apache >= 2.2 in /etc/portage and retaining the mod_fastcgi ebuild in /usr/local/portage)?


Comment 13 Daniel Westermann-Clark 2007-02-02 14:35:41 UTC
Has comment #12 been addressed somewhere?  I rely on FastCgiServer and FastCgiExternalServer for a number of my deployments.
Comment 14 Chris Fletcher 2007-08-20 14:23:13 UTC
> And that's the way we go :) I just sent the announce, that net-www/mod_fastcgi
> is getting removed in favor of www-apache/mod_fcgid.

mod_fastcgi provides functionality that mod_fcgid doesn't. It provides more options for process management.

The patch provided claims to work with apache 1.3, 2.0 and 2.2 so could easily be added.

It seems to be supported by other distributions...

  http://fastcgi.com/archives/fastcgi-developers/2007-May/004697.html

Can we reinstate it please?
Comment 15 Benedikt Böhm (RETIRED) gentoo-dev 2007-09-16 11:54:40 UTC
will do so
Comment 16 Benedikt Böhm (RETIRED) gentoo-dev 2007-09-16 12:21:05 UTC
latest git snapshot (www-apache/mod_fastcgi-2.4.4_pre20070916) now in cvs