[PHP-DEV] Bug #3072: gcc: unrecognized option `-Kpic' From: rpdennis <email protected>
Date: 12/30/99

From: rpdennis <email protected>
Operating system: Solaris 2.5
PHP version: 3.0.12
PHP Bug Type: Compile Failure
Bug description: gcc: unrecognized option `-Kpic'

I am having trouble installing PHP3 on a Solaris 2.5 box with Apache 1.3.3.

Here is the info:

        /tmp/php-3.0.12#uname -a
        SunOS mresource 5.5 Generic sun4m sparc SUNW,SPARCsystem-600
        /tmp/php-3.0.12#gcc --version
        2.95.1
        /tmp/php-3.0.12#
        /tmp/php-3.0.12#./configure --with-apxs=/usr/local/apache/sbin/apxs \
> --with-config-file-path=/etc/httpd \
> --with-oracle=/oracle/product/7.3.3
        creating cache ./config.cache
        checking whether build environment is sane... yes
        checking whether to enable maintainer-specific portions of Makefiles... no
        checking for bison... bison -y
        checking bison version... 1.27 (ok)
        checking for gcc... gcc
        checking whether the C compiler (gcc ) works... yes
        checking whether the C compiler (gcc ) is a cross-compiler... no
        checking whether we are using GNU C... yes
        checking whether gcc accepts -g... yes
        ... [ more here omitted ]
        creating ./config.status
        creating Makefile
        creating build-defs.h
        creating stamp-h
        creating libphp3.module
        creating extra/gd/bdf2gdfont
        creating regex/Makefile
        creating pcrelib/Makefile
        creating dbase/Makefile
        creating config.h
        config.h is unchanged
        /tmp/php-3.0.12#make
        gcc -g -O2 -O2 -Kpic -I. -I. -I/oracle/product/7.3.3/rdbms/demo
-I/oracle/product/7.3.3/network/public -I -c main.c -o main.o
        gcc: unrecognized option `-Kpic'
        In file included from main.c:44:
        php.h:219: ap_config_auto.h: No such file or directory
        php.h:223: ap_config.h: No such file or directory
        php.h:233: ap_compat.h: No such file or directory
        php.h:235: httpd.h: No such file or directory
        php.h:236: http_main.h: No such file or directory
        php.h:237: http_core.h: No such file or directory
        php.h:238: http_request.h: No such file or directory
        php.h:239: http_protocol.h: No such file or directory
        php.h:240: http_config.h: No such file or directory
        php.h:241: http_log.h: No such file or directory
        make: *** [main.o] Error 1
        /tmp/php-3.0.12#

My issue here isn't the libraries, I have been able to go into another file and add their path, my problem is the compiler options -Kpic. They aren't recognized compiller options on my box. What am I doing wrong? Thanks!

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>