1 Reply Latest reply on Oct 2, 2007 4:49 AM by Robert Cohen

    Fail to compile Apache 2.0.59 on Solaris 10

    807557
      Hi,
      I'm new to Solaris 10.
      Failed to compile apache, get following errors after run ./configure prefix=/usr/local/apache enable-module=most --enable-shared=max

      -bash-3.00# make
      Making all in srclib
      Making all in apr
      Making all in strings
      /bin/bash /binary/httpd-2.0.59/srclib/apr/libtool silent mode=compile gcc -g
      -O2 -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -
      I../include -I../include/arch/unix -c apr_cpystrn.c && touch apr_cpystrn.lo
      In file included from /usr/include/sys/wait.h:24,
      from ../include/apr.h:131,
      from apr_cpystrn.c:17:
      /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
      /usr/include/sys/siginfo.h:292: error: parse error before '}' token
      /usr/include/sys/siginfo.h:294: error: parse error before '}' token
      /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
      /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
      /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
      /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
      /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
      /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
      /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
      /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
      /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
      /usr/include/sys/siginfo.h:426: error: parse error before '}' token
      /usr/include/sys/siginfo.h:428: error: parse error before '}' token
      /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
      /usr/include/sys/siginfo.h:437: error: parse error before '}' token
      In file included from /usr/include/sys/procset.h:24,
      from /usr/include/sys/wait.h:25,
      from ../include/apr.h:131,
      from apr_cpystrn.c:17:
      /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
      In file included from ../include/apr.h:131,
      from apr_cpystrn.c:17:
      /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
      In file included from ../include/apr_general.h:33,
      from ../include/apr_pools.h:39,
      from ../include/apr_strings.h:50,
      from apr_cpystrn.c:18:
      /usr/include/signal.h:111: error: parse error before "siginfo_t"
      /usr/include/signal.h:113: error: parse error before "siginfo_t"
      *** Error code 1
      make: Fatal error: Command failed for target `apr_cpystrn.lo'
      Current working directory /binary/httpd-2.0.59/srclib/apr/strings
      *** 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 "apr_cpystrn.lo apr_snprintf.lo
      apr_strnatcmp.lo apr_strings.lo apr_fnmatch.lo apr_strtok.lo"; 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 /binary/httpd-2.0.59/srclib/apr/strings
      *** Error code 1
      The following command caused the error:
      otarget=`echo all-recursive | sed s/-recursive//`; \
      list='strings passwd tables file_io/unix network_io/unix threadproc/unix mis
      c/unix locks/unix time/unix mmap/unix shmem/unix user/unix memory/unix at
      omic/unix poll/unix support/unix dso/unix'; \
      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 "delete-lib libapr-0.la delete-exp
      orts export_vars.c apr.exp"; 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 /binary/httpd-2.0.59/srclib/apr
      *** Error code 1
      The following command caused the error:
      otarget=`echo all-recursive|sed s/-recursive//`; \
      list=' apr apr-util pcre'; \
      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 /binary/httpd-2.0.59/srclib
      *** 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
      make: Fatal error: Command failed for target `all-recursive'

      Any idea what's going wrong? I have add path /usr/ccs/bin into root .profile but it still fail.

      Thanks.

      Edited by: castle on Oct 1, 2007 7:53 PM