Bug #21439 NDBAPI: example mysql.m4 doesn't work for 5.1
Submitted: 4 Aug 2006 5:17 Modified: 5 Aug 2006 13:20
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S2 (Serious)
Version:5.1 OS:
Assigned to: Jon Stephens CPU Architecture:Any

[4 Aug 2006 5:17] Stewart Smith
Description:
example mysql.m4 script in NDBAPI docs doesn't work for 5.1 bk 'make install'

How to repeat:
write simple ndbapi app, use mysql.m4, try to './configure && make'

Suggested fix:
    # add NDB API specific C flags
    IBASE=`$MYSQL_CONFIG --include`
    ADDFLAGS="$ADDFLAGS $IBASE/storage/ndb"
    ADDFLAGS="$ADDFLAGS $IBASE/storage/ndb/ndbapi"
    ADDFLAGS="$ADDFLAGS $IBASE/storage/ndb/mgmapi"

and:

    LDFLAGS="$LDFLAGS "`$MYSQL_CONFIG --libs_r`" -lndbclient -lmystrings -lmysys"

are the lines that need to be changed.

note that the first set is different than for 5.0. the second may be needed for 5.0, haven't tested.
[4 Aug 2006 5:18] Stewart Smith
simple ndbapi app using fixed mysql.m4

Attachment: simple_ndbapi.tar.gz (application/x-gzip, text), 143.59 KiB.

[5 Aug 2006 13:20] Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.