Bug 45415 - Apache installation always failed with atomic.h and htpasswd
Summary: Apache installation always failed with atomic.h and htpasswd
Status: RESOLVED DUPLICATE of bug 45253
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.2.9
Hardware: Sun Solaris
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 00:45 UTC by Kenny Loh
Modified: 2009-05-26 09:56 UTC (History)
2 users (show)



Attachments
Apache config log (58.75 KB, application/octet-stream)
2008-07-17 00:46 UTC, Kenny Loh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenny Loh 2008-07-17 00:45:39 UTC
Apache installation always failed with following error

/tmp/apache/httpd-2.2.9/srclib/apr/libtool --silent --mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE    -I/tmp/apache/httpd-2.2.9/srclib/pcre -I. -I/tmp/apache/httpd-2.2.9/os/unix -I/tmp/apache/httpd-2.2.9/server/mpm/prefork -I/tmp/apache/httpd-2.2.9/modules/http -I/tmp/apache/httpd-2.2.9/modules/filters -I/tmp/apache/httpd-2.2.9/modules/proxy -I/tmp/apache/httpd-2.2.9/include -I/tmp/apache/httpd-2.2.9/modules/generators -I/tmp/apache/httpd-2.2.9/modules/mappers -I/tmp/apache/httpd-2.2.9/modules/database -I/tmp/apache/httpd-2.2.9/srclib/apr/include -I/tmp/apache/httpd-2.2.9/srclib/apr-util/include -I/tmp/apache/httpd-2.2.9/modules/proxy/../generators -I/tmp/apache/httpd-2.2.9/modules/ssl -I/tmp/apache/httpd-2.2.9/modules/dav/main -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/tmp/apache/httpd-2.2.9/srclib/apr/libtool --silent --mode=link gcc -g -O2        -o htpasswd  htpasswd.lo   -lm /tmp/apache/httpd-2.2.9/srclib/pcre/libpcre.la /tmp/apache/httpd-2.2.9/srclib/apr-util/libaprutil-1.la -lexpat /tmp/apache/httpd-2.2.9/srclib/apr/libapr-1.la -luuid -lsendfile -lrt -lsocket -lnsl -lpthread
Undefined                       first referenced
 symbol                             in file
atomic_swap_32                      /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
atomic_cas_ptr                      /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
atomic_swap_ptr                     /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
atomic_inc_32_nv                    /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
atomic_dec_32_nv                    /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
atomic_cas_32                       /tmp/apache/httpd-2.2.9/srclib/apr/.libs/libapr-1.so
ld: fatal: Symbol referencing errors. No output written to .libs/htpasswd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `htpasswd'
Current working directory /tmp/apache/httpd-2.2.9/support
*** 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 'htpasswd htdigest rotatelogs logresolve ab checkgid htdbm htcacheclean httxt2dbm'; 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 /tmp/apache/httpd-2.2.9/support
*** 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'
Comment 1 Kenny Loh 2008-07-17 00:46:17 UTC
Created attachment 22269 [details]
Apache config log
Comment 2 Kenny Loh 2008-07-20 23:35:42 UTC
(In reply to comment #1)
> Created an attachment (id=22269) [details]
> Apache config log

More specifically, I got syntax error while installing apr-util in this way.

cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install

When make install, the installation terminated with:-

bash: -c: line 1: syntax error near unexpected token `;'
*** Error code 2
Comment 3 Trent Petrasek 2008-10-13 14:38:34 UTC
I undefined USE_ATOMICS_SOLARIS in srclib/apr/include/arch/unix/apr_arch_atomic.h to get around this temporarily.
Comment 4 Nick Kew 2009-05-24 17:37:13 UTC
Anyone checked if this affects 2.2.11?

*** This bug has been marked as a duplicate of bug 45253 ***
Comment 5 Axel-Stephane Smorgrav 2009-05-26 09:56:29 UTC
(In reply to comment #4)
> Anyone checked if this affects 2.2.11?


I confirm that it does affect 2.2.11.