Hi all.

I'd like to install PHP (/usr/local/apache226/php-5.2.6) ,mysql, apache on 
Solaris 9 (Sparc).

PATH=/opt/sfw/bin/:/opt/sfw/gcc-3/bin/:/opt/sfw/bin/:/opt/sfw/gcc-3/bin/:/usr 
/local/bin/:/usr/ccs/bin/:/usr/xpg4/bin/:/usr
/local/://usr/local/apache226/php-5.2.6/ext/:/usr/local/bin/:/usr/sbin:/usr/b 
in:/opt/sfw/bin/:/usr/local/pgsql/bin/

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/pgsql/lib/:/usr/local 
/BerkeleyDB.4.4/lib:/usr/local/lib

When I do :

bash-2.05# ./configure --with-mysql=/usr/local/mysql/ 
--with-zlib-dir=/usr/local/apache226/php-5.2.6/ext/zlib
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /usr/xpg4/bin//sed
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
^Cbash-2.05# ./configure --with-mysql=/usr/local/mysql/ 
--with-zlib-dir=/usr/local/apache226/php-5.2.6/ext/zlib
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /usr/xpg4/bin//sed
checking host system type... sparc-sun-solaris2.9
checking target system type... sparc-sun-solaris2.9
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
...
...
...
..
..
lines
checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more 
information.


I am check config.log

bash-2.05# more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2153: checking for Cygwin environment
configure:2186: checking for mingw32 environment
configure:2217: checking for egrep
configure:2232: checking for a sed that does not truncate output
configure:2382: checking host system type
configure:2403: checking target system type
configure:2515: checking for gcc
configure:2628: checking whether the C compiler (gcc ) works
configure:2644: gcc -o conftest conftest.c 1>&5
configure:2670: checking whether the C compiler (gcc ) is a cross-compiler
configure:2675: checking whether we are using GNU C
configure:2703: checking whether gcc accepts -g
configure:2735: checking how to run the C preprocessor
configure:2817: checking for icc
configure:2839: checking whether gcc and cc understand -c and -o together
configure:2890: checking how to run the C preprocessor
configure:2970: checking for AIX
configure:2994: checking whether ln -s works


configure:12699: checking for sendmail
configure:12738: checking whether system uses EBCDIC
configure:12785: checking whether byte ordering is bigendian
configure:12837: checking whether writing to stdout works
configure:12941: checking for socket
configure:12969: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS 
-R/usr/ucblib -L/usr/ucblib conftest.c 1>&5
Undefined first referenced
symbol in file
socket /var/tmp/ccZRvNcs.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 12946 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. */
#include
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
config.log (76%)

Any pointers would be welcome!

Thanks,

Cesar
-- 
This message posted from opensolaris.org

Reply via email to