Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds adaptor support for Apache2.4: #367

Merged
merged 1 commit into from
Jan 25, 2013

Conversation

btriller
Copy link
Contributor

- API changes conn_rec->remote_{addr,ip}, ap_get_server_version()
  <http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html>
pascalrobert pushed a commit that referenced this pull request Jan 25, 2013
adds adaptor support for Apache2.4:
@pascalrobert pascalrobert merged commit b1128e9 into wocommunity:integration Jan 25, 2013
@pascalrobert
Copy link
Contributor

Hi Bastian,

I have tried to compile it on Amazon Linux and Apache httpd 2.4, and I get:

make[1]: entrant dans le répertoire « /home/ec2-user/wonder/Utilities/Adaptors/Apache2.4 »
/usr/sbin/apxs -c -S CC=gcc -Wc,"-O2 -I/usr/sbin/apxs -q INCLUDEDIR -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DLINUX -DFORKING_WEBSERVER -DAPACHE " -Wl,"-L/usr/local/lib" mod_WebObjects.c ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c ../Adaptor/MoreURLCUtilities.c ../Adaptor/nbsocket.c ../Adaptor/Platform.c ../Adaptor/random.c ../Adaptor/request.c ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c ../Adaptor/WOURLCUtilities_3.c ../Adaptor/WOURLCUtilities.c ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -O2 -I/usr/include/httpd -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DLINUX -DFORKING_WEBSERVER -DAPACHE -c -o mod_WebObjects.lo mod_WebObjects.c && touch mod_WebObjects.slo
:0:0: warning: "LINUX" redefined [enabled by default]
:0:0: note: this is the location of the previous definition
mod_WebObjects.c: In function 'copyHeaders':
mod_WebObjects.c:366:40: error: 'request_rec' has no member named 'useragent_ip'
mod_WebObjects.c:373:38: error: 'request_rec' has no member named 'useragent_addr'
mod_WebObjects.c: At top level:
mod_WebObjects.c:249:20: warning: 'setOption3' defined but not used [-Wunused-function]
apxs:Error: Command failed with rc=65536

@btriller
Copy link
Contributor Author

Are your headers from httpd 2.4? The struct request_rec in /usr/include/httpd/httpd.h should contain these new fields as stated in the above URL.

@pascalrobert
Copy link
Contributor

Looks like I had the headers for 2.4 AND 2.2. Removed the 2.2 headers and it's building fine now. I will able to build the RPMs, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants