From:             [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version:      4.3.0
PHP Bug Type:     *Configuration Issues
Bug description:  Configuration does not use correct flags with Forte C

Configured with

CC=cc\
CXX=CC\
CFLAGS="-O -I/usr/local/include"\
CXXFLAGS="-O -I/usr/local/include"\
LDFLAGS="-s -R/usr/local/lib: -L/usr/local/lib"\
./configure\
  --prefix=/usr/local\
  --enable-wddx\
  --enable-xml\
  --enable-pear\
  --disable-debug\
  --with-apxs\
  --enable-dba\
  --with-mysql\
  --with-zlib=/usr/local\
  --with-gdbm=/usr/local\
  --with-db3=/usr/local\
  --with-dbm\
  --with-gd\
  --with-ttf\
  --with-jpeg-dir=/usr/local/lib\
  --with-png-dir=/usr/local/lib\
  --with-xpm-dir=/usr/local/lib\
  --with-freetype-dir=/usr/local/lib\
  --enable-sysvsem\
  --enable-sysvshm\
  --with-imap=../imap-2002b\
   --with-tsrm-pthreads


i see:
(cut & past only what i think is related...)
---------------------------------------------
.
.
.

checking for gcc... cc

checking whether the C compiler (cc -O -I/usr/local/include -s
-R/usr/local/lib: -L/usr/local/lib) works... yes

checking whether the C compiler (cc -O -I/usr/local/include -s
-R/usr/local/lib: -L/usr/local/lib) is a cross-compiler... no

checking whether we are using GNU C... no

checking whether cc accepts -g... yes

checking whether cc understands -c and -o together... yes

checking how to run the C preprocessor... cc -E

.
.
.
.
.
checking for cc option to produce PIC... -KPIC

checking if cc PIC flag -KPIC works... yes

-------------------------------------------------------

configure works 'fine' it does ends with this error
but no big deal:

./config.status[1994]: 6: bad file unit number
./config.status[1995]: 6: bad file unit number

then i do a 'make'

--------------------------------------------------------

/bin/sh libtool --silent --mode=compile cc  -Iext/zlib/
-I/projects/solaris_packages/compile/php-4.3.0/ext/zlib/ -DPHP_ATOM_INC
-I/projects/solaris_packages/compile/php-4.3.0/include
-I/projects/solaris_packages/compile/php-4.3.0/main
-I/projects/solaris_packages/compile/php-4.3.0
-I/projects/solaris_packages/compile/php-4.3.0/Zend -I/usr/local/include
-I/usr/local/include/freetype2
-I/projects/solaris_packages/compile/imap-2002b/c-client
-I/projects/solaris_packages/compile/php-4.3.0/ext/xml/expat 
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208112 -DEAPI
-DEAPI_MM -DUSE_EXPAT -I/projects/solaris_packages/compile/php-4.3.0/TSRM 
-O -I/usr/local/include  -prefer-pic -c
/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c -o
ext/zlib/zlib.lo 
cc: Warning: illegal option -fPIC
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 441:
warning: argument #1 is incompatible with prototype:
        prototype: pointer to unsigned char : "/usr/local/include/zlib.h",
line 623
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 441:
warning: argument #3 is incompatible with prototype:
        prototype: pointer to const unsigned char :
"/usr/local/include/zlib.h", line 623
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 443:
warning: argument #1 is incompatible with prototype:
        prototype: pointer to unsigned char : "/usr/local/include/zlib.h",
line 608
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 443:
warning: argument #3 is incompatible with prototype:
        prototype: pointer to const unsigned char :
"/usr/local/include/zlib.h", line 608
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 499:
warning: argument #1 is incompatible with prototype:
        prototype: pointer to unsigned char : "/usr/local/include/zlib.h",
line 638
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 499:
warning: argument #3 is incompatible with prototype:
        prototype: pointer to const unsigned char :
"/usr/local/include/zlib.h", line 638
        argument : pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 556:
warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 635:
warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"/projects/solaris_packages/compile/php-4.3.0/ext/zlib/zlib.c", line 833:
warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char

------------------------------------------------------------

- it uses the wrong flags fPIC is for gcc not Forte C

- as i have zlib installed and specify to use system system
it still uses the one from php and therefor the error

----

Am i doing somethign wrong? check with 4.2.3 and works just fine

thanks!


-- 
Edit bug report at http://bugs.php.net/?id=21705&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21705&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21705&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21705&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21705&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21705&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21705&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21705&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21705&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21705&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21705&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21705&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21705&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21705&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21705&r=gnused

Reply via email to