httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41859] New: - Troubles with compiling mod_fastcgi-2.4.2 in Apache after 2.2
Date Fri, 16 Mar 2007 08:59:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41859>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41859

           Summary: Troubles with compiling mod_fastcgi-2.4.2 in Apache
                    after 2.2
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: thes@mail.ru


When I'm compiling 'mod_fastcgi-2.4.2' in any Apache v2.2+, I'm getting error
messages in 'mod_fastcgi.c' like this -> 'mod_fastcgi.c:270: error
`ap_null_cleanup' undeclared (first use in this function)'.

I know, this isn't an Apache problem, but I can write solution only here,
because many people can get this trouble. I believe it is suitable for inclusion
in the official code base. Restore definitions, I guess is a most suitable way
to do this.

Solution.
=========
As I see, in Apache 2.2 and later, previously (in 2.0) deprecated definitions
was dropped. But, in the same time, 'mod_fastcgi-2.4.2' still need it. 
I solved a problem bay adding following lines in 'fcgi.h' in source code of
'mod_fastcgi'. You should paste this lines from line 75, after '#define
ap_unblock_alarms()' in the block of obsolete function definitions. 
------------ cut here --------------
#ifndef ap_copy_table
#define ap_copy_table apr_table_copy
#define ap_cpystrn apr_cpystrn
#define ap_destroy_pool apr_pool_destroy
#define ap_isspace apr_isspace
#define ap_make_array apr_array_make
#define ap_make_table apr_table_make
#define ap_null_cleanup apr_pool_cleanup_null 
#define ap_palloc apr_palloc
#define ap_pcalloc apr_pcalloc
#define ap_psprintf apr_psprintf
#define ap_pstrcat apr_pstrcat
#define ap_pstrdup apr_pstrdup
#define ap_pstrndup apr_pstrndup
#define ap_push_array apr_array_push
#define ap_register_cleanup apr_pool_cleanup_register
#define ap_snprintf apr_snprintf
#define ap_table_add apr_table_add
#define ap_table_do apr_table_do
#define ap_table_get apr_table_get
#define ap_table_set apr_table_set
#define ap_table_setn apr_table_setn
#define ap_table_unset apr_table_unset
#endif
------------ cut here -------------

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message