Compiling for FC4

2007-11-28
2013-05-01
  • Robert Barnett
    Robert Barnett
    2007-11-28

    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/libmdb.so ../sql/.libs/libmdbsql.so -lglib-2.0 -lncurses -Wl,--rpath -Wl,/usr/local/lib
    ../sql/.libs/libmdbsql.so: undefined reference to `yylex'
    ../sql/.libs/libmdbsql.so: undefined reference to `yyerror'

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

    Robbie