Cool Moe wrote:

Richard,

Most of my solaris compiling problems were due to the
fact that some of my compiler tools would be GNU,
while others would be the native sun ones (for
instance the compiler is gcc, but the linker (ld) is
/usr/ccs/bin/ld, and make is not gnu make, but the Sun
version).  So check using 'which' and 'make --version'
and 'ld --version' to make sure that you are using GNU
tools only when compiling PHP.  in fact, i think the
Sun versions don't recognize the GNU style long
options, so that will tip you off as well.

CM


--- Richard Webb <[EMAIL PROTECTED]> wrote:


Hi,

uname -a :

SunOS beastie 5.7 Generic_106541-29 sun4m sparc
SUNW,SPARCstation-LX

Configure script executes normally.

Make gives :

/bin/ksh /var/tmp/php-4.3.4/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/ctype/
-I/var/tmp/php-4.3.4/ext/ctype/ -DPHP_ATOM_INC -I/var/tmp/php-4.3.4/include
-I/var/tmp/php-4.3.4/main -I/var/tmp/php-4.3.4 -I/var/tmp/php-4.3.4/Zend -I/var/tmp/php-4.3.4/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/var/tmp/php-4.3.4/TSRM -O2 -prefer-pic -c /var/tmp/php-4.3.4/ext/ctype/ctype.c -o
ext/ctype/ctype.lo
In file included from
/var/tmp/php-4.3.4/Zend/zend.h:227,
from
/var/tmp/php-4.3.4/main/php.h:34,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/Zend/zend_hash.h:119: error:
parse error before "va_list"
In file included from
/var/tmp/php-4.3.4/Zend/zend.h:228,
from
/var/tmp/php-4.3.4/main/php.h:34,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/Zend/zend_llist.h:34: error:
parse error before "va_list"
In file included from
/var/tmp/php-4.3.4/main/php.h:34,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/Zend/zend.h:311: error: parse
error before "va_list"
/var/tmp/php-4.3.4/Zend/zend.h:451: error: parse
error before "va_list"
In file included from
/var/tmp/php-4.3.4/main/php.h:234,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/main/snprintf.h:71: error: parse
error before "va_list"
In file included from
/var/tmp/php-4.3.4/main/php.h:236,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/main/spprintf.h:40: error: parse
error before "va_list"
In file included from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/main/php.h:289: error: parse
error before "va_list"
In file included from
/var/tmp/php-4.3.4/main/php.h:389,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/TSRM/tsrm_virtual_cwd.h:155:
error: parse error before '*' token
/var/tmp/php-4.3.4/TSRM/tsrm_virtual_cwd.h:155:
warning: data definition has no type or storage class
In file included from
/var/tmp/php-4.3.4/main/php.h:398,
from
/var/tmp/php-4.3.4/ext/ctype/ctype.c:23:
/var/tmp/php-4.3.4/main/php_reentrancy.h:54: error:
parse error before '*' token
make: *** [ext/ctype/ctype.lo] Error 1


GCC is version 3.3.2

# gcc -v
Reading specs from



/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.3.2/specs


Configured with: ../configure
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
--disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.3.2


configure arguments were --prefix=/opt/php
--enable-ftp --with-apxs2=/opt/apache2/bin/apxs


Any pointers as to a soultion?

Regards,

Richard




__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


Moe,

ld and as is sun's from the Solaris 7 3/99 installation cd
autoconf , automake, bison, flex, sed and make are the latest gnu versions from www.sunfreeware.com


If the fact that both ld and as are generic sun versions is the cause of this, do you know where I can pickup gnu versions of these utilities for sparc solaris?

Rich.

Reply via email to