compiling php5 on solaris 9. please help.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users compiling php5 on solaris 9. please help.
# 1  
Old 06-12-2006
compiling php5 on solaris 9. please help.

I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message
below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from
sunfreeware. Please see below for details:



./configure --with-mysql --with-apxs=/usr/apache/bin/apxs --enable-libxml --with-libxml-dir=/usr/include/libxml2/libxml


Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/include/libxml2/libxml
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.

# pkginfo -l SMClxml2
PKGINST: SMClxml2
NAME: libxml2
CATEGORY: application
ARCH: sparc
VERSION: 2.6.16
BASEDIR: /usr/local
VENDOR: Daniel Veillard
PSTAMP: Steve Christensen
INSTDATE: Jun 12 2006 14:12
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 539 installed pathnames
10 shared pathnames
29 directories
38 executables
45020 blocks used (approx)


# find / -name libxml2
/usr/include/libxml2
/opt/local/include/libxml2
/opt/local/doc/libxml2

Please help.
# 2  
Old 06-12-2006
What does config.log show regarding that error? Post those relevant lines only please as the file can be long.
# 3  
Old 06-13-2006
I'm not sure what I'm looking at when I checked config.log. I just did a grep on errors and this is what I came up with:

# grep error config.log
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: File processing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
perror("fopen");
configure:17008: error: structure has no member named `tm_zone'
configure:17077: error: `localtime_r' undeclared (first use in this function)
configure:17077: error: (Each undeclared identifier is reported only once
configure:17077: error: for each function it appears in.)
configure:17102: error: `gmtime_r' undeclared (first use in this function)
configure:17102: error: (Each undeclared identifier is reported only once
configure:17102: error: for each function it appears in.)
configure:17177: error: `strtok_r' undeclared (first use in this function)
configure:17177: error: (Each undeclared identifier is reported only once
configure:17177: error: for each function it appears in.)
configure:17245: error: structure has no member named `tm_gmtoff'
configure:17371: error: `intmax_t' undeclared (first use in this function)
configure:17371: error: (Each undeclared identifier is reported only once
configure:17371: error: for each function it appears in.)
configure:17488: error: `ptrdiff_t' undeclared (first use in this function)
configure:17488: error: (Each undeclared identifier is reported only once
configure:17488: error: for each function it appears in.)
configure:17893: error: structure has no member named `sa_len'
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
configure:18133: checking for gai_strerror
configure:18133: checking for perror
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
configure:18133: checking for strerror
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. */
configure:18681: error: too many arguments to function `asctime_r'
configure:18713: error: too many arguments to function `asctime_r'

Please help.
# 4  
Old 06-13-2006
thank you for the reply. i found php and apache binaries from sunfreeware.com and installed those instead. apache and php is running great. thank you.
# 5  
Old 09-08-2007
php + solaris10(sparc) -- Help

Hi,

I have tried in vain to compile from source PHP 5.2.3 with Tidy (HTML Tidy program) on a solaoris10/sparc box.

I cannot use the binary build of PHP since it does not include Tidy.

Is there a a "php-5.2.3-sol10-sparc-local" build that contains Tidy?

Thank you for any assistance or suggestions.


Mark

-----------


Typical simple test config and associated error in the log are:

Config: under /usr/local/src/php-5.2.3

./configure --with-config-file-path=/usr/local/apache2 --with-apxs2=/usr/apache2/bin/apxs --enable-dbase \
--with-libxml-dir=/usr/local --with-curl=/usr/local --with-tidy


Error:

configure:12523: 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//ccO8Qzik.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 12500 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. */
ymbol referencing errors. No output written to conftest
/* 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();
# 6  
Old 10-24-2007
I found that I could not install php-5.2.x unless I upgraded to gcc3 of later.

goto blastwave.org and get the pkg-get util and update as needed.

This should solve the problem.

I do like the sunfreeware stuff because it wants to install into /usr/local which I don't have permissions to manage or alter.

using blastwave I can install it to where ever I want.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX Benchmarks

error compiling bm software under Solaris 10

anyone tried it , under Solaris 10 using make (part of SUNWsprot) and gcc 4.6 compiler.. got an error complaining about the Makefile script syntax... I don't think that's compatible at all... (2 Replies)
Discussion started by: ppchu99
2 Replies

2. Solaris

Compiling Error in Samba 3.4.1 on Solaris 10

Hi all, I am getting the following error While installing Samba 3.4.1 on Solaris 10. #./autogen.sh ./autogen.sh : autoheader : not found ./autogen.sh : test : argument expected Please help me as I am in a critical state of the project. Warm regards, Sathya (10 Replies)
Discussion started by: sathya47
10 Replies

3. Programming

Sun Solaris C++ Compiling Error

Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much. **... (2 Replies)
Discussion started by: acheong87
2 Replies

4. Solaris

problem compiling apache on solaris

Hi I'm trying to install apache 2.2.14 on Solaris with Openssl. I'm using following configure options: ./configure --prefix=/usr/local/apache2 --enable-ssl --enable-module=so --enable-proxy=shared --enable-proxy-http=shared --enable-proxy-ajp=shared --with-ssl=/usr/local/openssl ... (3 Replies)
Discussion started by: Aelfric
3 Replies

5. Infrastructure Monitoring

compiling netsnmp on solaris 8

Hello all Currently I am trying to install net-snmp-5.5 on a V480 Solaris 8 machine however things are hardly going smooth. I'm running configure will the following options. ./configure --prefix=/usr/local --with-mib-modules="smux ucd-snmp/diskio ucd-snmp/lmSensors host"... (2 Replies)
Discussion started by: krabu
2 Replies

6. Solaris

Compiling IRSSI on Solaris 10

How does one go aout compiling irssi locally on a fresh installation of Solaris 10, Out put from ./configure m command /download/1rss1-0.8.12 checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for gawk... no checking... (2 Replies)
Discussion started by: FloridaBSD
2 Replies

7. Solaris

compiling Seamonkey 1.1.9 on Solaris 9 sparc

I have gotten tired of getting error messages from SeaMonkey about not being on the latest version. I have downloaded the source for SeaMonkey, and when I attempt to make it with "gmake -f client.mk build" , I get the following error message: configure: error: Library requirements (pango... (0 Replies)
Discussion started by: tderscheid
0 Replies

8. Solaris

Compiling and Running C Program on Solaris

Hello Guys, I am using Solaris Developer Express Edition 9/07, I am a beginner. Please tell me how to compile and execute a C program. Please give me your answers clearly, for the compilers cc,c89,c99. please....... reply to me. I not getting the answer anywhere.. Advance... (2 Replies)
Discussion started by: selva_ss
2 Replies

9. Programming

Compiling in Solaris

Hi, I'm new to Unix. I'm trying to compile a shared library in Solaris running on x86. I get "void value not ignored as it ought to be" error when trying "make". But it compiles fine in Fedora. How can this happen? I think both are using the same type of compiler. What can I do to get around... (8 Replies)
Discussion started by: runnerb
8 Replies

10. Solaris

Error on compiling php for GD on SOLARIS 10

Hi everyone, I have SUn E250 server running solaris 10. I have installed apache 2 + MySQL + PHP-5.1.4 following the guidelines on this website http://meljr.com/~meljr/AMPSolaris10.html Excellent document for first time installation. Now, because I wanted to use Coppermine Photo Gallery, I... (9 Replies)
Discussion started by: callingrohit
9 Replies
Login or Register to Ask a Question