Forum Moderators: phranque

Message Too Old, No Replies

Apache apxs compilation error for mod ssl

Unable to run the original mod_ssl source through the C-compiler

         

ojibwe

7:06 am on May 13, 2008 (gmt 0)

10+ Year Member



Hi community
I want to modify my Apache 1.3 server to accept https (and NO it's not an option to up-grade to 2.x).

When I try to build the mod_ssl using apxs this fails at the very beginning of the C-complier parsing. I have not touched the c-code in the original mod_ssl-2.8.31-1.3.41 package. The header file mod_ssl.h is in the same directory as the mod_ssl.c file
But this is what I get:

bash-2.05# apxs -c -I /opt/install/Apache/109234-09/SUNWapchu/reloc/usr/apache/include -L /opt/install/Apache/109234-09/SUNWapchu/reloc/usr/apache/libexec ./pkg.sslmod/mod_ssl.c
/usr/local/bin/gcc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -fPIC -I/usr/apache/include -I/opt/install/Apache/109234-09/SUNWapchu/reloc/usr/apache/include -c ./pkg.sslmod/mod_ssl.c
pkg.sslmod/mod_ssl.c:76: error: parse error before "MOD_SSL_VERSION"
pkg.sslmod/mod_ssl.c:77: error: parse error before "MOD_SSL_VERSION"
apxs:Break: Command failed with rc=1
bash-2.05#

Did I miss the obvious?

ojibwe

11:17 am on May 13, 2008 (gmt 0)

10+ Year Member



OK, this is the obvious:
I needed to change the string "MOD_SSL_VERSION" to 2.8.31-1.3.41.
Thanks Christian!