ID:               47535
 Updated by:       ka...@php.net
 Reported By:      Bjorn dot Wiberg at its dot uu dot se
 Status:           Open
 Bug Type:         MySQL related
 Operating System: IBM AIX 5.3 5300-08-01-0819
 PHP Version:      5.3.0beta1
 New Comment:

Guess this is because there is not a check for AIX in
mysqlnd/mysqlnd_portability.h either way mysqlnd should probably use
#error to indicate a *possible* unsupported compilation env.


Previous Comments:
------------------------------------------------------------------------

[2009-03-01 09:18:05] Bjorn dot Wiberg at its dot uu dot se

Description:
------------
Compilation fails with undeclared references to MYSQLND_LLU_SPEC and
MYSQLND_LL_SPEC.

Reproduce code:
---------------
#! /bin/sh
#
# Created by configure

LDFLAGS='-Wl,-bbigtoc' \
CC='gcc' \
'./configure' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-cli' \
'--enable-dba' \
'--enable-debug' \
'--enable-exif' \
'--enable-flatfile' \
'--enable-ftp' \
'--enable-gd-jis-conv' \
'--enable-gd-native-ttf' \
'--enable-inifile' \
'--enable-mbstring' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sqlite-utf8' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-wddx' \
'--enable-zip' \
'--enable-zend-multibyte' \
'--prefix=/apache/php' \
'--with-apxs2=/apache/bin/apxs' \
'--with-bz2' \
'--with-cdb' \
'--with-curl' \
'--with-freetype-dir' \
'--with-gd' \
'--with-gdbm' \
'--with-gettext' \
'--with-jpeg-dir' \
'--with-ldap' \
'--with-libxml-dir=/usr/local' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-openssl=/opt/freeware' \
'--with-pdo-mysql=mysqlnd' \
'--with-png-dir' \
'--with-xmlrpc' \
'--with-xpm-dir' \
'--with-xsl' \
'--with-zlib' \
'--with-zlib-dir' \
"$@"

Expected result:
----------------
No compilation failure.

Actual result:
--------------
/bin/sh /home/bwiberg/rpm/BUILD/php-5.3.0beta1/libtool
--preserve-dup-deps --mode=compile gcc  -Iext/mysqlnd/
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/ -DPHP_ATOM_INC
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/include
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/main
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/ereg/regex
-I/usr/local/include/libxml2 -I/opt/freeware/include
-I/usr/local/include
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/date/lib
-I/usr/X11R6/include -I/usr/include/freetype2
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/oniguruma
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/libmbfl
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/libmbfl/mbfl
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/sqlite3/libsqlite
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/TSRM
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/Zend    -I/usr/include -g
-fvisibility=hidden -O0 -Wall   -c
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c -o
ext/mysqlnd/mysqlnd_ps_codec.lo
 gcc -Iext/mysqlnd/
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/ -DPHP_ATOM_INC
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/include
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/main
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/ereg/regex
-I/usr/local/include/libxml2 -I/opt/freeware/include
-I/usr/local/include
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/date/lib
-I/usr/X11R6/include -I/usr/include/freetype2
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/oniguruma
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/libmbfl
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mbstring/libmbfl/mbfl
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/sqlite3/libsqlite
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/TSRM
-I/home/bwiberg/rpm/BUILD/php-5.3.0beta1/Zend -I/usr/include -g
-fvisibility=hidden -O0 -Wall -c
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c 
-DPIC -o ext/mysqlnd/.libs/mysqlnd_ps_codec.o
In file included from
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd.h:59,
                 from
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:23:
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_portability.h:466:1:
warning: "float8get" redefined
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_portability.h:418:1:
warning: this is the location of the previous definition
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_portability.h:467:1:
warning: "float8store" redefined
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_portability.h:408:1:
warning: this is the location of the previous definition
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:
In function 'ps_fetch_from_1_to_8_bytes':
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:82:
error: 'MYSQLND_LLU_SPEC' undeclared (first use in this function)
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:82:
error: (Each undeclared identifier is reported only once
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:82:
error: for each function it appears in.)
/home/bwiberg/rpm/BUILD/php-5.3.0beta1/ext/mysqlnd/mysqlnd_ps_codec.c:111:
error: 'MYSQLND_LL_SPEC' undeclared (first use in this function)
make: *** [ext/mysqlnd/mysqlnd_ps_codec.lo] Error 1
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.6916 (%build)
bwib...@melody-lp04:~/rpm/SPECS$


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47535&edit=1

Reply via email to