Error making Apache2

I'm trying to build Apache2 on Solaris 10 using the Studio11 compiler. I have current versions of APR, APR-util, and libiconv installed.

Configure runs fine, but make fails with

Undefinedfirst referenced

symbolin file

libiconv_close /usr/local/apr-util/lib/libaprutil-1.so

libiconv_open/usr/local/apr-util/lib/libaprutil-1.so

libiconv/usr/local/apr-util/lib/libaprutil-1.so

ld: fatal: Symbol referencing errors. No output written to htpasswd

*** Error code 1

make: Fatal error: Command failedfor target `htpasswd'

Current working directory /usr/local/src/httpd-2.2.4/support

*** Error code 1

The following command caused the error:

otarget=`echo all-recursive|sed s/-recursive//`; \

I'm out of ideas. Tried compiling with gcc, in /usr/local/bin but configure fails.

Here's my configure command

./configure --prefix=/usr/local/apache2 \

--enable-deflate --enable-proxy --enable-proxy-html \

--enable-proxy-balancer --enable-rewrite \

--enable-cache --enable-mem-cache --enable-headers \

--enable-mods-shared=all --enable-proxy-ajp \

--enable-proxy-http --enable-proxy-ftp --enable-proxy-connect \

--enable-proxy --enable-ssl --enable-so --with-ssl=/usr/local/ssl

--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util

Can't use binaries because either a) version isn't current and/or b) required modules not enabled.

[1572 byte] By [zakifatayaa] at [2007-11-27 4:38:16]
# 1

hi,

you are using sun compiler so can you try this:

CC="/opt/SUNWspro/bin/cc"

export CC

CFLAGS="-xO4 -xchip=generic -DHARD_SERVER_LIMIT=2048 -DUSE_SO_LINGER -DSINGLE_LISTEN_UNSERIALIZED_ACCEPT"

export CFLAGS

./configure" --prefix=/usr/local/apache2.2.4/ --with-mpm=worker ... (modules)

yavuz

yavuzsa at 2007-7-12 9:48:41 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
Thanks for your quick response. No, that didn't change anything.
zakifatayaa at 2007-7-12 9:48:41 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

I compile Apache on numerous servers here, I expect this issue is down to your LD_LIBRARY_PATH, ensure it is set to see your libraries containing the elements you wish to compile into Apache.

As an example mine is set thus:

LD_LIBRARY_PATH=/usr/openwin/lib:/usr/dt/lib:/usr/local/lib:/usr/local/include: /usr/lib:/usr/include

neilnewmana at 2007-7-12 9:48:41 > top of Java-index,Solaris Operating System,Solaris 10 Features...