PHP 4.0 Bug #8320: Comiling with Adabas failes
| From: | pr at ic-marl dot de | Date: | Tue, 19 Dec 2000 12:25:13 +0000 |
| Subject: | PHP 4.0 Bug #8320: Comiling with Adabas failes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41844@lists.php.net to get a copy of this message | ||
From: pr@ic-marl.de
Operating system: Linux version 2.2.14
PHP version: 4.0.3pl1
PHP Bug Type: Adabas-D related
Bug description: Comiling with Adabas failes
./configure --with-mysql --with-adabas=/var/adabas --with-apache=../apache_1.3.14
--enable-track-vars
no errors
make:
gcc -I. -I/usr/src/php-4.0.3pl1/ext/odbc -I/usr/src/php-4.0.3pl1 -I/usr/src/php-4.0.3pl1/main
-I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix
-I/usr/src/php-4.0.3pl1/Zend -I/usr/src/php-4.0.3pl1 -I/usr/src/php-4.0.3pl1/ext/mysql/libmysql
-I/var/adabas/incl -I/usr/src/php-4.0.3pl1/ext/xml/expat/xmltok
-I/usr/src/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/src/php-4.0.3pl1/TSRM -DXML_BYTE_ORDER=12 -g
-O2 -c php_odbc.c && touch php_odbc.lo
php_odbc.c: In function `odbc_column_lengths':
php_odbc.c:619: `SQLINTEGER' undeclared (first use in this function)
php_odbc.c:619: (Each undeclared identifier is reported only once
php_odbc.c:619: for each function it appears in.)
php_odbc.c:619: parse error before `len'
php_odbc.c:647: `SQLUSMALLINT' undeclared (first use in this function)
php_odbc.c:648: `len' undeclared (first use in this function)
make[3]: *** [php_odbc.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.3pl1/ext/odbc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.3pl1/ext/odbc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.3pl1/ext'
make: *** [all-recursive] Error 1
if i add
#define SQLINTEGER ULONG
#define SQLUSMALLINT USHORT
into php_odbc.h i got no errors in here.
but the i got an error while making Apache 1.3.14
gcc -DLINUX=2 -I/usr/src/php-4.0.3pl1 -I/usr/src/php-4.0.3pl1/main -I/usr/src/php-4.0.3pl1/main
-I/usr/src/php-4.0.3pl1/Zend -I/usr/src/php-4.0.3pl1/Zend -I/usr/src/php-4.0.3pl1/TSRM
-I/usr/src/php-4.0.3pl1/TSRM -I/usr/src/php-4.0.3pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a
main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/var/adabas/lib
-Wl,-rpath,/usr/src/php-4.0.3pl1/ext/odbc -rdynamic -L/var/adabas/lib
-L/usr/src/php-4.0.3pl1/ext/odbc -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-lpam -ldl -lodbc_adabas -lsqlrte -lsqlptc -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt
/var/adabas/lib/libsqlrte.a(ven06c.o): In function `vfstatus':
ven06c.o(.text+0x129a): undefined reference to `_xstat'
/var/adabas/lib/libsqlrte.a(ven06c.o): In function `sqlferase':
ven06c.o(.text+0x25db): undefined reference to `_xstat'
/var/adabas/lib/libsqlrte.a(ven13c.o): In function `sql13c_open_xuser_file':
ven13c.o(.text+0xa51): undefined reference to `_xstat'
/var/adabas/lib/libsqlrte.a(ven41c.o): In function `sql41_create_fifo':
ven41c.o(.text+0x7f2): undefined reference to `_xmknod'
/var/adabas/lib/libsqlrte.a(ven41c.o): In function `sql41_get_server_key':
ven41c.o(.text+0xa46): undefined reference to `_xstat'
/var/adabas/lib/libsqlrte.a(ven41c.o): In function `sql41_get_csl_key':
ven41c.o(.text+0xb01): undefined reference to `_xstat'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.14'
make: *** [build] Error 2
is tihs a php problem?
and i thought the
#define SQLINTEGER ULONG
#define SQLUSMALLINT USHORT
thing is already fixed!
--
Edit Bug report at: http://bugs.php.net/?id=8320&edit=1