Bug 52855 - mod_ftp does not build against 2.4.x
Summary: mod_ftp does not build against 2.4.x
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ftp (show other bugs)
Version: 2.4.1
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 09:20 UTC by bugzilla33
Modified: 2015-08-25 14:21 UTC (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla33 2012-03-08 09:20:38 UTC
mod_ftp do not work on Apache 2.4.1
Comment 1 William A. Rowe Jr. 2012-03-08 09:36:16 UTC
That's lovely.

"Does not work" is not descriptive.  You observed something please report
what it is you observed.  That's descriptive.  Reopen with those comments
if you like.
Comment 2 bugzilla33 2012-03-08 09:41:30 UTC
httpd.exe: Syntax error on line 177 of C:/Program Files/Apache Software Foundati
on/Apache2.4/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Found
ation/Apache2.4/modules/mod_ftp.so into server: Could not locate a specific procedure.


httpd.conf line 177:

LoadModule ftp_module modules/mod_ftp.so
Comment 3 bugzilla33 2012-03-08 09:46:28 UTC
use latest build 0.9.6 from

http://www.idg.pl/mirrors/apache//httpd/binaries/win32/mod_ftp-0.9.6-beta-win32-x86.zip
Comment 4 William A. Rowe Jr. 2012-03-08 10:00:51 UTC
Simply clarifying... you rebuilt?

No module built against 2.2 will run within httpd 2.4.
Comment 5 bugzilla33 2012-03-08 10:06:27 UTC
Unfortunately I do not know how to modify module to work with 2.4
...and I do not know how to compile :(

request: can you publish mod_ftp.so (win32) 0.9.6 running under Apache 2.4.x?
Comment 6 William A. Rowe Jr. 2012-03-08 10:31:26 UTC
The ASF has yet to publish a 'binary' for win32 whatsoever.  Please go back
to whomever built you 2.4 httpd binaries for a mod_ftp compilation.

Further questions along these lines belong on users@httpd.apache.org
Comment 7 Gregg L. Smith 2012-03-08 20:06:15 UTC
OK, so I'll change this to mod_ftp does not build against 2.4.x.

It's the changes in the API between 2.2 and 2.4. A lot of minor request_ip\request_addr stuff but the core_filter_ctx stuff causes a big problem, for me. 

ftp_commands.c
ftp_commands.c(1313) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1350) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1355) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1361) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1876) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1876) : error C2198: 'stricmp' : too few arguments for call
ftp_commands.c(1881) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1928) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_commands.c(1928) : error C2198: 'stricmp' : too few arguments for call
ftp_commands.c(1933) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_connection.c
ftp_data_connection.c
ftp_data_connection.c(248) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_data_connection.c(248) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_data_connection.c(248) : error C2168: 'strcmp' : too few actual parameters for intrinsic functio
n
ftp_data_connection.c(252) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_data_connection.c(252) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_data_connection.c(285) : error C2027: use of undefined type 'core_filter_ctx'
        C:\Apache24\include\http_core.h(693) : see declaration of 'core_filter_ctx'
ftp_data_connection.c(285) : error C2027: use of undefined type 'core_filter_ctx'
        C:\Apache24\include\http_core.h(693) : see declaration of 'core_filter_ctx'
ftp_data_connection.c(286) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(288) : error C2037: left of 'tmpbb' specifies undefined struct/union 'core_fil
ter_ctx'
ftp_data_connection.c(289) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(290) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(290) : error C2198: 'apr_brigade_create' : too few arguments for call
ftp_data_connection.c(294) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(294) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(294) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_connection.c(294) : error C2037: left of 'b' specifies undefined struct/union 'core_filter_
ctx'
ftp_data_filters.c
ftp_filters.c
ftp_inet_pton.c
ftp_limitlogin.c
ftp_limitlogin.c(206) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_limitlogin.c(313) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_log.c
ftp_lowportd.c
ftp_message.c
ftp_message.c(59) : error C2039: 'remote_addr' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
ftp_message.c(59) : error C2198: 'apr_getnameinfo' : too few arguments for call
ftp_message.c(74) : error C2039: 'remote_ip' : is not a member of 'conn_rec'
        c:\apache24\include\httpd.h(1056) : see declaration of 'conn_rec'
Comment 8 William A. Rowe Jr. 2015-08-25 14:21:04 UTC
mod_ftp svn now builds against 2.4.x.  Still reviewing all of the impacts of the behavior changes in httpd 2.4.x and trunk which could impact mod_ftp's connection vs. data request handling, but this ticket can be closed.

Any 1.0.x release would support 2.4 at last, 0.9.x predated the release of httpd 2.4 so shouldn't be expected to have worked.