Bug #13501 build problem: too many arguments to function my_bool acl_init
Submitted: 26 Sep 2005 20:58 Modified: 30 Sep 2005 19:07
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1bk, 5.0.13rc OS:Linux (Debian GNU/Linux)
Assigned to: Dmitry Lenev CPU Architecture:Any

[26 Sep 2005 20:58] Christian Hammers
Description:
if gcc -DEMBEDDED_LIBRARY -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" -DDATAD
IR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" -I. -I. -I.. -I../incl
ude -I../include -I../sql -I../sql/examples -I../regex      -O3 -DDBUG_OFF -DBIG
_JOINS=1 -O2   -MT my_time.o -MD -MP -MF ".deps/my_time.Tpo" -c -o my_time.o my_
time.c; \
then mv -f ".deps/my_time.Tpo" ".deps/my_time.Po"; else rm -f ".deps/my_time.Tpo
"; exit 1; fi
lib_sql.cc: In function 'int init_embedded_server(int, char**, char**)':
../sql/sql_acl.h:177: error: too many arguments to function 'my_bool acl_init(bo
ol)'
lib_sql.cc:426: error: at this point in file
../sql/sql_acl.h:199: error: too many arguments to function 'my_bool grant_init(
)'
lib_sql.cc:428: error: at this point in file
make[4]: *** [lib_sql.o] Error 1
make[4]: *** Waiting for unfinished jobs....

How to repeat:
-

Suggested fix:
-
[27 Sep 2005 8:30] Christian Hammers
fix

Attachment: 80_libmysqld__lib_sql.c__tmp5.0.13rc.dpatch (application/octet-stream, text), 473 bytes.

[27 Sep 2005 8:31] Christian Hammers
I've just added a patch that seems to work. Please verify it as I would like to use it for the Debian packages.

BTW: The complete configure command was like this:

sh -c  'PATH=${MYSQL_BUILD_PATH:-"/bin:/usr/bin"} \
        CC=${MYSQL_BUILD_CC:-gcc} \
        CFLAGS=${MYSQL_BUILD_CFLAGS:-"-DBIG_JOINS=1 -O2"} \
        CXX=${MYSQL_BUILD_CXX:-g++} \
        CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-"-DBIG_JOINS=1 -felide-constructors -fn
o-rtti -O2"} \
    ./configure \
        --build=i486-linux-gnu \
        --host=i486-linux-gnu \
        \
        --prefix=/usr \
        --exec-prefix=/usr \
        --libexecdir=/usr/sbin \
        --datadir=/usr/share \
        --sysconfdir=/etc/mysql \
        --localstatedir=/var/lib/mysql \
        --includedir=/usr/include \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        \
        --with-server-suffix="-Debian_1" \
        \
        --enable-shared \
        --enable-static \
        --enable-thread-safe-client \
        --enable-assembler  \
        --enable-local-infile \
        \
        --with-raid \
        --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
        --with-mysqld-user=mysql \
        --with-libwrap \
         \
        --with-client-ldflags=-lstdc++ \
        --with-vio \
        --without-openssl \
        --without-docs \
        --without-bench \
        --without-readline \
        --with-extra-charsets=all \
        --with-innodb \
        \
        \
        --with-isam \
        --with-archive-storage-engine \
        --with-csv-storage-engine \
        --with-federated-storage-engine \
        --without-embedded-server \
        --with-ndbcluster \
        --with-ndb-shm \
        --without-ndb-sci \
        --without-ndb-test \
        --with-embedded-server \
        --with-embedded-privilege-control \
        --with-ndb-docs'
[27 Sep 2005 19:34] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/30403
[27 Sep 2005 22:25] Hartmut Holzgraefe
the patch only fixes the compile errors in 4.1bk and 5.0.13, 
but not the additional errors i reported for 5.0bk

status reset to verified ...
[27 Sep 2005 22:29] Hartmut Holzgraefe
created a new bug report for the additional 5.0bk compile errors as they only affect a not yet released version, resetting this bug report to "Patch approved"

the new report is bug #13546
[28 Sep 2005 14:52] Dmitry Lenev
Hi, Christian!

Thanks a lot for spotting this!

This bug was fixed in 4.1.15 and 5.0.14.
[28 Sep 2005 15:06] Dmitry Lenev
Note for documentation purproses this bug caused build to fail if one was trying to build embedded server with enabled --with-embedded-privilege-control option.
[30 Sep 2005 19:07] Paul Dubois
Noted in 4.1.15, 5.0.14 changelogs.