Compile error for PHP with msql


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Compile error for PHP with msql
# 1  
Old 02-14-2008
Compile error for PHP with msql

Hi Folks,

I am trying to phpize miniSQL with PHP 5.2.4 on Solaris (SPARC) using GCC 3.4.6.

- Unpacked the PHP source to /softwareArchive/php-5.2.4.
- Navigated to /softwareArchive/php-5.2.4/ext/msql.
- Ran #phpize, then #./configure --with-msql, which worked fine.
However when I make, i get the following error:

Code:
/bin/bash /softwareArchive/php-5.2.4/ext/msql/libtool --mode=compile gcc  -I. -I/softwareArchive/php-5.2.4/ext/msql -DPHP_ATOM_INC -I/softwareArchive/php-5.2.4/ext/msql/include -I/softwareArchive/php-5.2.4/ext/msql/main -I/softwareArchive/php-5.2.4/ext/msql -I/opt/coolstack/php5/include/php -I/opt/coolstack/php5/include/php/main -I/opt/coolstack/php5/include/php/TSRM -I/opt/coolstack/php5/include/php/Zend -I/opt/coolstack/php5/include/php/ext -I/opt/coolstack/php5/include/php/ext/date/lib -I/usr/local/Hughes/include  -DHAVE_CONFIG_H  -g -O2   -c /softwareArchive/php-5.2.4/ext/msql/php_msql.c -o php_msql.lo
 gcc -I. -I/softwareArchive/php-5.2.4/ext/msql -DPHP_ATOM_INC -I/softwareArchive/php-5.2.4/ext/msql/include -I/softwareArchive/php-5.2.4/ext/msql/main -I/softwareArchive/php-5.2.4/ext/msql -I/opt/coolstack/php5/include/php -I/opt/coolstack/php5/include/php/main -I/opt/coolstack/php5/include/php/TSRM -I/opt/coolstack/php5/include/php/Zend -I/opt/coolstack/php5/include/php/ext -I/opt/coolstack/php5/include/php/ext/date/lib -I/usr/local/Hughes/include -DHAVE_CONFIG_H -g -O2 -c /softwareArchive/php-5.2.4/ext/msql/php_msql.c  -fPIC -DPIC -o .libs/php_msql.o
/softwareArchive/php-5.2.4/ext/msql/php_msql.c: In function `zif_msql_fetch_field':
/softwareArchive/php-5.2.4/ext/msql/php_msql.c:1107: error: `PRI_KEY_FLAG' undeclared (first use in this function)
/softwareArchive/php-5.2.4/ext/msql/php_msql.c:1107: error: (Each undeclared identifier is reported only once
/softwareArchive/php-5.2.4/ext/msql/php_msql.c:1107: error: for each function it appears in.)
/softwareArchive/php-5.2.4/ext/msql/php_msql.c: In function `php_msql_field_info':
/softwareArchive/php-5.2.4/ext/msql/php_msql.c:1198: error: `PRI_KEY_FLAG' undeclared (first use in this function)

The "undeclared identifier" errors seem to indicate that PRI_KEY_FLAG hasn't been declared in any header file. And I can't find a declaration in the source. I suspect that I'm missing a library which configure didn't pick up! But I'm stabbing in the dark a bit. Any help would be appreciated.

Cheers.
# 2  
Old 02-18-2008
Solved. Didn't use GCC, ended up using Sun Studio 12 and the proper source tree (duh!) and all is good.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Compile PHP as an Apache module on Solaris

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (0 Replies)
Discussion started by: lbslbs
0 Replies

2. Red Hat

I want to install/compile php with mysql.

I have removed php-5.1.6-27.el5 from our system. Because I installed it without mysql before. How can I install php together with mysql. # rpm -qa | grep mysql* libdbi-dbd-mysql-0.8.1a-1.2.2 mysql-5.0.77-4.el5_4.2 mysql-server-5.0.77-4.el5_4.2 mysql-connector-odbc-3.51.26r1127-1.el5 ##... (5 Replies)
Discussion started by: getrue
5 Replies

3. Shell Programming and Scripting

MSQL insert record

Hi All, I have created a script to capture process run by the user & put into to mysql DB. But some how i am anot able to insert output of ps aux as below sting in mysql db. ######################################... (2 Replies)
Discussion started by: ajaincv
2 Replies

4. Solaris

Compile PHP 5.3.6 with MySql on Sun Blade 1500 Solaris 10

Hello, I'm trying to compile PHP 5.3.6 with Apache2 and MySql 5.5.12. I hit a problem that I can't seem to resolve by myself and I could not find a solution on the web. It looks like Apache and MySql installed ok, I can start/stop them with no problem. When I try to compile PHP the... (4 Replies)
Discussion started by: pn8830
4 Replies

5. AIX

Compile PHP on AIX 5.2 Error

Hello, I am trying to compile PHP 5.3.5 on AIX 5.2 with Apache 2.2.17 and Mysql 3.23.58 Apache und Mysql are working fine but if i try to compile PHP i get this error: with make: sapi/apache2handler/php_functions.lo main/internal_functions.lo -lmysqlclient -lfreetype -lX11 -lXpm -lpng -lz... (2 Replies)
Discussion started by: dtiger
2 Replies

6. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

7. Solaris

Compile php with curl on solaris 10 question

I have curl compiled into /usr/local. I needed to install another version into /usr/local/curl-7.19.5 and compile php using that directory. I believe I had done that but an ldd run against php shows it is using /usr/local/lib. I have my configure script below showing how it was built and php -i... (1 Reply)
Discussion started by: csgonan
1 Replies

8. AIX

Compile PHP in AIX: Loading issues

Finally I was able to compile PHP on AIX. When I try to load from Apache, I get the below error. /install/usr/local/apache2/bin:>apachectl -f /install/usr/local/apache2/conf/httpd.conf -k stop httpd: Syntax error on line 53 of /install/usr/local/apache2/conf/httpd.conf: Cannot load... (0 Replies)
Discussion started by: KarthikKannan
0 Replies

9. Solaris

PHP 5.3 compile on Solaris 10 : make distclean :: fatal error

I'm trying to install PHP 5.3 on Solaris 10 . I'm using etc/apache2 and installed mysql 5.1.39. When I tried to compile PHP 5.3, with the following configure text, ./configure --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib-dir=/usr/local \... (21 Replies)
Discussion started by: ppa108
21 Replies

10. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies
Login or Register to Ask a Question