php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3072 gcc: unrecognized option `-Kpic'
Submitted: 1999-12-30 07:56 UTC Modified: 1999-12-31 20:56 UTC
From: rpdennis at excite dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: Solaris 2.5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rpdennis at excite dot com
New email:
PHP Version: OS:

 

 [1999-12-30 07:56 UTC] rpdennis at excite dot com
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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-31 20:56 UTC] sas at cvs dot php dot net
Apache was compiled with a compiler (probably Sun's WorkShop) which supports -Kpic. You can replace -Kpic with -fPIC in php's Makefile.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Apr 05 11:00:01 2026 UTC