Apache upgrading error

hi every one , i am facing a problem and i am stuck i need you help :

i am trying to upgrade apache 2.0.63 to apache 2.0.64 with ssl option enabled when i try to compile by using make command i face the below error :

ssl_engine_init.c: In function `ssl_init_ctx_protocol':
 ssl_engine_init.c:392: warning: assignment discards qualifiers from pointer target type
 ssl_engine_init.c:398: warning: assignment discards qualifiers from pointer target type
 ssl_engine_init.c: In function `ssl_init_ctx_verify':
 ssl_engine_init.c:538: error: `STACK' undeclared (first use in this function)
 ssl_engine_init.c:538: error: (Each undeclared identifier is reported only once
 ssl_engine_init.c:538: error: for each function it appears in.)
 ssl_engine_init.c:538: error: syntax error before ')' token
 ssl_engine_init.c: In function `ssl_init_FindCAList':
 ssl_engine_init.c:1113: warning: pointer type mismatch in conditional expression
 *** Error code 1
 make: Fatal error: Command failed for target `ssl_engine_init.lo'
 Current working directory /usr/local/raj/httpd-2.0.64/modules/ssl
 *** Error code 1
 The following command caused the error:
 otarget=`echo all-recursive|sed s/-recursive//`; \
 list='  '; \
 for i in $list; do \
     if test -d "$i"; then \
         target="$otarget"; \
         echo "Making $target in $i"; \
         if test "$i" = "."; then \
                 made_local=yes; \
                 target="local-$target"; \
         fi; \
         (cd $i && make $target) || exit 1; \
     fi; \
 done; \
 if test "$otarget" = "all" && test -z 'mod_ssl.la'; then \
     made_local=yes; \
 fi; \
 if test "$made_local" != "yes"; then \
     make "local-$otarget" || exit 1; \
 fi
 make: Fatal error: Command failed for target `all-recursive'
 Current working directory /usr/local/raj/httpd-2.0.64/modules/ssl
 *** Error code 1
 The following command caused the error:
 otarget=`echo all-recursive|sed s/-recursive//`; \
 list='  aaa filters loggers metadata ssl http generators mappers'; \
 for i in $list; do \
     if test -d "$i"; then \
         target="$otarget"; \
         echo "Making $target in $i"; \
         if test "$i" = "."; then \
                 made_local=yes; \
                 target="local-$target"; \
         fi; \
         (cd $i && make $target) || exit 1; \
     fi; \
 done; \
 if test "$otarget" = "all" && test -z ''; then \
     made_local=yes; \
 fi; \
 if test "$made_local" != "yes"; then \
     make "local-$otarget" || exit 1; \
 fi
 make: Fatal error: Command failed for target `all-recursive'
 Current working directory /usr/local/raj/httpd-2.0.64/modules
 *** Error code 1
 The following command caused the error:
 otarget=`echo all-recursive|sed s/-recursive//`; \
 list='  srclib os server modules support'; \
 for i in $list; do \
     if test -d "$i"; then \
         target="$otarget"; \
         echo "Making $target in $i"; \
         if test "$i" = "."; then \
                 made_local=yes; \
                 target="local-$target"; \
         fi; \
         (cd $i && make $target) || exit 1; \
     fi; \
 done; \
 if test "$otarget" = "all" && test -z 'httpd  '; then \
     made_local=yes; \
 fi; \
 if test "$made_local" != "yes"; then \
     make "local-$otarget" || exit 1; \
 fi



i tryed to use gmake but this compiler is only skipping the error ??

please help.

thx

finally , solved it :slight_smile:

but really strange that no one face this issue before!!

Solved it how? Nearly all of our posters come here from search engines; if other people have the same problem they could easily end up here looking for it.

Also, most upgrades are done with whatever your package manager is, not by hand-compiling.

Yes your correct the upgrade is done by running configure.nice in your new apache package.
In my post I should not mentioned upgrade I should mention changing apache to higher version .
How I solved it , well I am installing apache with ssl enabled and when run make its give me an error like the one I included in my previous post so I removed the ssl option in my configure line and go through the process of installing apache and it was installed without the error.
Now I know that there is something wrong with my ssl Directory , so I created new ssl directory and name it ssl2 compiled and run the OpenSSL 0.9.8 and configure and install apache with ssl enabled and used this option to point to my new ssl directory --with-ssl=DIR , updated the PATH to my new ssl DIR and this solved the apache issue . Please feel free to ask me any question thanks.

1 Like