Operating System - HP-UX
1823077 Members
3367 Online
109645 Solutions
New Discussion юеВ

compilation error php with informix

 
Arturo Quesada
Advisor

compilation error php with informix

I compile PHP 4.2.2

# ./configure --with-informix=/informix/ifx31 --prefix=/opt/php --with-apache=../apache-1.3.29

OK but make outputs errors:
# make
/exports/php-4.2.2/ext/informix/php_informix.h:49:21: locator.h: No such file or
directory
/exports/php-4.2.2/ext/informix/php_informix.h:50:22: sqltypes.h: No such file o
r directory
In file included from internal_functions.c:33:
/exports/php-4.2.2/ext/informix/php_informix.h:151: error: parse error before "l
oc_t"
/exports/php-4.2.2/ext/informix/php_informix.h:151: warning: no semicolon at end
of struct or union
/exports/php-4.2.2/ext/informix/php_informix.h:151: warning: no semicolon at end
of struct or union
/exports/php-4.2.2/ext/informix/php_informix.h:166: error: parse error before '}
' token
/exports/php-4.2.2/ext/informix/php_informix.h:166: warning: data definition has
no type or storage class
/exports/php-4.2.2/ext/informix/php_informix.h:167: error: parse error before '}
' token
/exports/php-4.2.2/ext/informix/php_informix.h:167: warning: data definition has
no type or storage class
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
2 REPLIES 2
Steve Lewis
Honored Contributor

Re: compilation error php with informix

I searched for the unknown files and found them to be here, under $INFORMIXDIR


./incl/tools/sqltypes.h
./incl/esql/sqltypes.h
./incl/public/sqltypes.h
./incl/dmi/sqltypes.h

./incl/tools/locator.h
./incl/esql/locator.h
./incl/public/locator.h
./incl/dmi/locator.h

Maybe you should change the code to look in these directories for the include files.

Arturo Quesada
Advisor

Re: compilation error php with informix

Well, I had already searched the files, and I haven├В┬┤t got them. I├В┬┤m working with HP-UX 11i and Informix Dynamic Server Version 7.31