Compiling for FC4

  • Robert Barnett
    Robert Barnett

    I couldn't find any FC4 RPMs for mdbtools so I compiled from source.

    Version 0.6pre1 had the following error

    backend.c:31: error: static declaration of 'mdb_backends' follows non-static declaration
    ../../include/mdbtools.h:150: error: previous declaration of 'mdb_backends' was here

    Version 0.5 required the following additional packages for me
    Nov 28 17:01:51 Installed: glib2-devel.i386 2.6.6-1
    Nov 28 17:11:50 Installed: flex.i386 2.5.4a-41.fc4

    There is still a problem linking in version 0.5
    gcc -g -O2 -DSQL -o .libs/mdb-sql mdb-sql.o  ../libmdb/.libs/ ../sql/.libs/ -lglib-2.0 -lncurses -Wl,--rpath -Wl,/usr/local/lib
    ../sql/.libs/ undefined reference to `yylex'
    ../sql/.libs/ undefined reference to `yyerror'

    Since I don't need this function, I just skip that tool using
    touch src/util/mdb-sql