php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57928 compile failure w/ mdbtools-0.5 and mdbtools-0.6_pre1
Submitted: 2007-11-24 15:05 UTC Modified: 2007-11-28 02:48 UTC
From: jakub at gentoo dot org Assigned: hholzgra (profile)
Status: Closed Package: mdbtools (PECL)
PHP Version: Irrelevant OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 6 = ?
Subscribe to this entry?

 
 [2007-11-24 15:05 UTC] jakub at gentoo dot org
Description:
------------
This fails to compile w/ PHP 5.2.5 and mdbtools 0.5 and 0.6_pre1, with different errors... :(

Actual result:
--------------
mdbtools-0.5:

mdbtools.xml: In function 'zif_mdb_open':
mdbtools.xml:164: error: 'MDB_NOFLAGS' undeclared (first use in this function)
mdbtools.xml:164: error: (Each undeclared identifier is reported only once
mdbtools.xml:164: error: for each function it appears in.)
mdbtools.xml:164: warning: passing argument 1 of 'mdb_open' discards qualifiers from pointer target type
mdbtools.xml:164: error: too many arguments to function 'mdb_open'
mdbtools.xml: In function 'zif_mdb_table_open':
mdbtools.xml:275: error: too many arguments to function 'mdb_bind_column'
make: *** [mdbtools.lo] Error 1

w/ mdbtools-0.6_pre1:

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/libtool --mode=compile i686-pc-linux-gnu-gcc  -I. -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/include -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/main -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H  -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -c /var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/mdbtools.c -o mdbtools.lo 
mkdir .libs
 i686-pc-linux-gnu-gcc -I. -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0 -DPHP_ATOM_INC -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/include -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/main -I/var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0 -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext -I/usr/lib/php5/include/php/ext/date/lib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_CONFIG_H -march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c /var/tmp/portage/dev-php5/pecl-mdbtools-0.6.0/work/mdbtools-0.6.0/mdbtools.c  -fPIC -DPIC -o .libs/mdbtools.o
mdbtools.xml: In function 'zif_mdb_open':
mdbtools.xml:164: warning: passing argument 1 of 'mdb_open' discards qualifiers from pointer target type
mdbtools.xml: In function 'zif_mdb_table_open':
mdbtools.xml:275: error: too many arguments to function 'mdb_bind_column'
make: *** [mdbtools.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-27 10:15 UTC] hholzgra@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/mdbtools

Project contains configure checks and conditional code 
to deal with mdbtools API changes now. 

I'm rolling a new release package right now and will
release this as version 1.0.0 with state "stable"
 [2007-11-28 02:48 UTC] jakub at gentoo dot org
Compiles now, thanks!
 [2011-12-01 03:15 UTC] ronaldo dot perlas at gmail dot com
hi get an error while install mdbtools-1.0.0

1) checking for mdbtools in default path... configure: error: not found

i tried copying php_mdbtools.h from source to /usr/local/include and i got this 
error

2) configure: error: 'mdbtools.h' header not found

i am using linux redhat 5, php 5.3.8 and Apache/2.0.59.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC