#41 fix interlibrary dependencies

open
nobody
None
5
2005-04-25
2005-04-25
No

Not all libraries within mdbtools are linked to the
other mdbtools libraries they should be linked to. This
may case unresolved symbols in certain situations.

Attached patch fixes this.

Discussion

  • Logged In: NO

    This patch is very good and should be applied to CVS!

    I tried to build from CVS in Cywgin and this patch helped me out of this:

    make[2]: Entering directory `/home/Administrator/mdbtools/src/util'
    /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -DSQL -o mdb-sql.exe
    mdb-sql.o ../libmdb/libmdb.la ../sql/libmdbsql.la -lreadline -lglib-2.0 -lintl -
    liconv -lfl
    gcc -g -O2 -DSQL -o mdb-sql.exe mdb-sql.o ../libmdb/.libs/libmdb.a -L/usr/lib .
    ./sql/.libs/libmdbsql.a -lreadline /usr/lib/libglib-2.0.dll.a /usr/lib/libintl.d
    ll.a /usr/lib/libiconv.dll.a -lfl
    ../sql/.libs/libmdbsql.a(mdbsql.o): In function `mdb_sql_init':
    /home/Administrator/mdbtools/src/sql/mdbsql.c:63: undefined reference to `_mdb_i
    nit'
    ../sql/.libs/libmdbsql.a(mdbsql.o): In function `mdb_sql_add_temp_col':
    /home/Administrator/mdbtools/src/sql/mdbsql.c:557: undefined reference to `_mdb_
    fill_temp_col'
    /home/Administrator/mdbtools/src/sql/mdbsql.c:558: undefined reference to `_mdb_
    temp_table_add_col'
    ../sql/.libs/libmdbsql.a(mdbsql.o): In function `mdb_sql_listtables':
    /home/Administrator/mdbtools/src/sql/mdbsql.c:533: undefined reference to `_mdb_
    create_temp_table'
    /home/Administrator/mdbtools/src/sql/mdbsql.c:542: undefined reference to `_mdb_
    fill_temp_field'
    ../sql/.libs/libmdbsql.a(mdbsql.o): In function `mdb_sql_describe_table':
    /home/Administrator/mdbtools/src/sql/mdbsql.c:596: undefined reference to `_mdb_
    create_temp_table'
    /home/Administrator/mdbtools/src/sql/mdbsql.c:606: undefined reference to `_mdb_
    fill_temp_field'
    /home/Administrator/mdbtools/src/sql/mdbsql.c:610: undefined reference to `_mdb_
    fill_temp_field'
    /home/Administrator/mdbtools/src/sql/mdbsql.c:614: undefined reference to `_mdb_
    fill_temp_field'
    collect2: ld returned 1 exit status
    make[2]: *** [mdb-sql.exe] Error 1
    make[2]: Leaving directory `/home/Administrator/mdbtools/src/util'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/Administrator/mdbtools/src'
    make: *** [all-recursive] Error 1