php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21705 Configuration does not use correct flags with Forte C
Submitted: 2003-01-16 21:17 UTC Modified: 2003-01-16 23:31 UTC
From: luc at suryo dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.0 OS: Solaris 2.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
26 - 10 = ?
Subscribe to this entry?

 
 [2003-01-16 21:17 UTC] luc at suryo dot com
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!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-16 23:31 UTC] luc at suryo dot com
there was a libtool install that was used instead the libtool generated by configured
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC