hi , I couldn't install php for mysql under solaris 10.
I tried : #./configure --with-apxs2=/apache/bin/apxs --with-mysql=/usr/local/mysql \ > --enable-dbase --with-libxml-dir=/usr/local/include/libxml2 \ > --with-zlib-dir=/usr/local I installed all necessary files also. And It is giving: ==================================== checking for sys/param.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for netinet/in.h... (cached) yes checking for alloca.h... (cached) yes checking for arpa/inet.h... (cached) yes checking for arpa/nameser.h... (cached) yes checking for assert.h... (cached) yes checking for crypt.h... (cached) yes checking for fcntl.h... (cached) yes checking for grp.h... (cached) yes checking for ieeefp.h... (cached) yes checking for langinfo.h... (cached) yes checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking for monetary.h... (cached) yes checking for mach-o/dyld.h... (cached) no checking for netdb.h... (cached) yes checking for pwd.h... (cached) yes checking for resolv.h... (cached) yes checking for signal.h... (cached) yes checking for stdarg.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... (cached) yes checking for sysexits.h... (cached) yes checking for sys/ioctl.h... (cached) yes checking for sys/file.h... (cached) yes checking for sys/mman.h... (cached) yes checking for sys/mount.h... (cached) yes checking for sys/poll.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/select.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/statfs.h... (cached) yes checking for sys/statvfs.h... (cached) yes checking for sys/vfs.h... (cached) yes checking for sys/sysexits.h... (cached) no checking for sys/varargs.h... (cached) yes checking for sys/wait.h... (cached) yes checking for termios.h... (cached) yes checking for unistd.h... (cached) yes checking for unix.h... (cached) no checking for utime.h... (cached) yes checking for sys/utsname.h... (cached) yes checking for sys/ipc.h... (cached) yes checking for dlfcn.h... (cached) yes checking for fopencookie... (cached) no checking for broken getcwd... yes checking for broken libc stdio... yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) no checking for tzname... (cached) yes checking for tm_gmtoff in struct tm... (cached) no checking for struct flock... (cached) yes checking for socklen_t... (cached) yes checking size of intmax_t... (cached) 0 checking size of size_t... (cached) 4 checking size of ssize_t... (cached) 0 checking size of ptrdiff_t... (cached) 0 checking size of long long... (cached) 8 checking size of long long int... (cached) 8 checking size of long... (cached) 4 checking size of int... (cached) 4 checking for st_blksize in struct stat... (cached) yes checking for st_blocks in struct stat... (cached) yes checking for st_rdev in struct stat... (cached) yes checking for size_t... (cached) yes checking for uid_t in sys/types.h... (cached) yes checking for struct sockaddr_storage... (cached) yes checking for IPv6 support... (cached) yes checking for vprintf... (cached) yes checking for alphasort... (cached) yes checking for asctime_r... (cached) yes checking for chroot... (cached) yes checking for ctime_r... (cached) yes checking for cuserid... (cached) yes checking for crypt... (cached) yes checking for flock... (cached) no checking for ftok... (cached) yes checking for funopen... (cached) no checking for gai_strerror... (cached) yes checking for gcvt... (cached) yes checking for getlogin... (cached) yes checking for getprotobyname... (cached) yes checking for getprotobynumber... (cached) yes checking for getservbyname... (cached) yes checking for getservbyport... (cached) yes checking for getrusage... (cached) yes checking for gettimeofday... (cached) yes checking for gmtime_r... (cached) yes checking for grantpt... (cached) yes checking for inet_ntoa... (cached) yes checking for inet_ntop... (cached) yes checking for inet_pton... (cached) yes checking for isascii... (cached) yes checking for link... (cached) yes checking for localtime_r... (cached) yes checking for lockf... (cached) yes checking for lrand48... (cached) yes checking for memcpy... (cached) yes checking for memmove... (cached) yes checking for mkstemp... (cached) yes checking for mmap... (cached) yes checking for nl_langinfo... (cached) yes checking for perror... (cached) yes checking for poll... (cached) yes checking for ptsname... (cached) yes checking for putenv... (cached) yes checking for realpath... (cached) yes checking for random... (cached) yes checking for rand_r... (cached) yes checking for regcomp... (cached) yes checking for res_search... (cached) yes checking for scandir... (cached) yes checking for setitimer... (cached) yes checking for setlocale... (cached) yes checking for localeconv... (cached) yes checking for setpgid... (cached) yes checking for setsockopt... (cached) yes checking for setvbuf... (cached) yes checking for shutdown... (cached) yes checking for sin... (cached) yes checking for snprintf... (cached) yes checking for srand48... (cached) yes checking for srandom... (cached) yes checking for statfs... (cached) yes checking for statvfs... (cached) yes checking for std_syslog... (cached) no checking for strcasecmp... (cached) yes checking for strcoll... (cached) yes checking for strdup... (cached) yes checking for strerror... (cached) yes checking for strftime... (cached) yes checking for strstr... (cached) yes checking for strtok_r... (cached) yes checking for symlink... (cached) yes checking for tempnam... (cached) yes checking for tzset... (cached) yes checking for unlockpt... (cached) yes checking for unsetenv... (cached) yes checking for usleep... (cached) yes checking for nanosleep... (cached) no checking for utime... (cached) yes checking for vsnprintf... (cached) yes checking for getaddrinfo... (cached) yes checking for strlcat... (cached) yes checking for strlcpy... (cached) yes checking for getopt... (cached) yes checking whether utime accepts a null argument... (cached) yes checking for working alloca.h... (cached) yes checking for alloca... (cached) yes checking for declared timezone... (cached) yes checking for type of reentrant time-related functions... (cached) POSIX checking for readdir_r... (cached) yes checking for type of readdir_r... (cached) POSIX General settings checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... DEFAULT checking directory to be scanned for configuration files... DEFAULT checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin checking whether to enable PHP's own SIGCHLD handler... no checking whether to enable magic quotes by default... no checking whether to enable runpaths... yes checking whether to explicitly link against libgcc... yes checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking whether to enable IPv6 support... yes checking how big to make fd sets... using system default checking whether to enable versioning... no Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... /usr/local/include/libxml2 checking whether libxml build works... (cached) yes checking for OpenSSL support... no checking for Kerberos support... no checking for ZLIB support... no checking if the location of ZLIB install directory is defined... /usr/local checking for gzgets in -lz... yes checking whether to enable bc style precision math functions... no checking for BZip2 support... no checking whether to enable calendar conversion support... no checking for cpdflib support... no checking whether to enable ctype functions... yes checking for CURL support... no checking if we should use CURL for url streams... no checking whether to enable DBA... no checking for QDBM support... no checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB4 support... no checking for Berkeley DB3 support... no checking for Berkeley DB2 support... no checking for DBM support... no checking for CDB support... no checking for INI File support... no checking for FlatFile support... no checking whether to enable DBA interface... no checking whether to enable dbase support... yes checking whether to enable dbx support... no checking whether to enable direct I/O support... no checking whether to enable DOM support... yes checking whether libxml build works... (cached) yes checking whether to enable EXIF (metadata from images) support... no checking for fam support... no checking for FrontBase SQL92 (fbsql) support... no checking for FDF support... no checking whether to enable the bundled filePro support... no checking whether to enable FTP support... no checking for GD support... no checking for the location of libjpeg... no checking for the location of libpng... no checking for the location of libXpm... no checking for FreeType 1.x support... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for GNU gettext support... no checking for GNU MP support... no checking for hwapi support... no checking for iconv support... yes checking for iconv... (cached) yes checking if iconv is glibc's... no checking if iconv supports errno... no 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 Informix support... no checking for Ingres II support... no checking for InterBase support... no checking for IRCG support... no checking for LDAP support... no checking for LDAP Cyrus SASL support... no checking whether to enable multibyte string support... no checking whether to enable multibyte regex support... yes checking for external libmbfl... no checking for mcrypt support... no checking for MCVE support... no checking OpenSSL dir for MCVE... no checking for mhash support... no checking whether to include mime_magic support... no checking for MING support... no checking for mnoGoSearch support... no checking for msession support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... 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. ==================================== config.log file content ==================================== .......... .......... configure:18109: checking whether to enable runpaths configure:18134: checking whether to explicitly link against libgcc configure:18213: checking whether to enable short tags by default configure:18250: checking whether to enable dmalloc configure:18338: checking whether to enable IPv6 support configure:18368: checking how big to make fd sets configure:18388: checking whether to enable versioning configure:18440: checking whether to enable LIBXML support configure:18487: checking libxml2 install dir configure:18647: checking whether libxml build works configure:19061: checking for OpenSSL support configure:19107: checking for Kerberos support configure:20461: checking for ZLIB support configure:20507: checking if the location of ZLIB install directory is defined configure:20977: checking for gzgets in -lz configure:20996: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/lib -L/usr/local/li b -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/usr/local/lib -L/usr/local/l ib conftest.c -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -l socket -lnsl 1>&5 configure:21134: checking whether to enable bc style precision math functions configure:21540: checking for BZip2 support configure:22210: checking whether to enable calendar conversion support configure:22601: checking for cpdflib support configure:23892: checking whether to enable ctype functions configure:24279: checking for CURL support configure:24325: checking if we should use CURL for url streams configure:25225: checking whether to enable DBA configure:25555: checking for QDBM support configure:25874: checking for GDBM support configure:26179: checking for NDBM support configure:26481: checking for Berkeley DB4 support configure:26804: checking for Berkeley DB3 support configure:27127: checking for Berkeley DB2 support configure:27470: checking for DBM support configure:27811: checking for CDB support configure:27865: checking for INI File support configure:27919: checking for FlatFile support configure:27934: checking whether to enable DBA interface configure:28301: checking whether to enable dbase support configure:28688: checking whether to enable dbx support configure:29071: checking whether to enable direct I/O support configure:29454: checking whether to enable DOM support configure:29663: checking whether libxml build works configure:30116: checking whether to enable EXIF (metadata from images) support configure:30505: checking for fam support configure:31184: checking for FrontBase SQL92 (fbsql) support configure:31730: checking for FDF support configure:32566: checking whether to enable the bundled filePro support configure:32953: checking whether to enable FTP support configure:33341: checking for GD support configure:33388: checking for the location of libjpeg configure:33415: checking for the location of libpng configure:33468: checking for the location of libXpm configure:33493: checking for FreeType 1.x support configure:33518: checking for FreeType 2 configure:33543: checking for T1lib support configure:33568: checking whether to enable truetype string function in GD configure:33593: checking whether to enable JIS-mapped Japanese font support in GD configure:40868: checking for GNU gettext support configure:41668: checking for GNU MP support configure:42459: checking for hwapi support configure:43298: checking for iconv support configure:43361: checking for iconv configure:43933: checking if iconv is glibc's configure:43942: gcc -o onftest -I/usr/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS -L/usr/lib -R/usr /ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sf w/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/usr/local/lib -L/usr/local/lib conftest.c -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -ls ocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 configure:43936:30: gnu/libc-version.h: No such file or directory configure: failed program was: #line 43935 "configure" #include "confdefs.h" #include <gnu/libc-version.h> int main() { gnu_get_libc_version(); ; return 0; } configure:44048: checking if iconv supports errno configure:44074: gcc -o onftest -I/usr/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS -L/usr/lib -R/usr /ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sf w/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/usr/local/lib -L/usr/local/lib conftest.c -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -ls ocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 configure: failed program was: #line 44053 "configure" #include "confdefs.h" #include </usr/include/iconv.h> #include <errno.h> int main() { iconv_t cd; cd = iconv_open( "*blahblah*", "*blahblah*" ); if (cd == (iconv_t)(-1)) { if (errno == EINVAL) { return 0; } else { return 1; } } iconv_close( cd ); return 2; } configure:44106: checking if your cpp allows macro usage in include lines configure:44118: gcc -c -I/usr/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS conftest.c 1>&5 configure:44499: checking for IMAP support configure:44545: checking for IMAP Kerberos support configure:44570: checking for IMAP SSL support configure:46686: checking for Informix support configure:47398: checking for Ingres II support configure:48222: checking for InterBase support configure:49148: checking for IRCG support configure:49892: checking for LDAP support configure:49938: checking for LDAP Cyrus SASL support configure:52776: checking whether to enable multibyte string support configure:52822: checking whether to enable multibyte regex support configure:52847: checking for external libmbfl configure:54314: checking for mcrypt support configure:55165: checking for MCVE support configure:55211: checking OpenSSL dir for MCVE configure:56735: checking for mhash support configure:57261: checking whether to include mime_magic support configure:57670: checking for MING support configure:58594: checking for mnoGoSearch support configure:59124: checking for msession support configure:59886: checking for mSQL support configure:60449: checking for MSSQL support via FreeTDS configure:61147: checking for MySQL support configure:61193: checking for specified location of the MySQL UNIX socket configure:61250: checking for MySQL UNIX socket location configure:61413: checking for mysql_close in -lmysqlclient configure:61432: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/lo cal/mysql/lib -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solari s2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/usr/local/lib -L /usr/local/lib onftest.c -lmysqlclient -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz - liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_close /var/tmp//ccwW4XHp.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 61421 "configure" #include "confdefs.h" /* 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 mysql_close(); int main() { mysql_close() ; return 0; } configure:61637: checking for mysql_error in -lmysqlclient configure:61656: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/lo cal/mysql/lib -R/usr/local/lib -L/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-sol aris2.10/3.4.3 -R/usr/local/lib -L/usr/local/lib -R/usr/local -L/usr/local conftest.c -lmysqlclient -lz -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_error /var/tmp//ccKbNZlD.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 61645 "configure" #include "confdefs.h" /* 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 mysql_error(); int main() { mysql_error() ; return 0; } ==================================== thanks any help regards [EMAIL PROTECTED]