Compiling under Red Hat Enterprise 4
Steve Quezadas <[email protected]>
| Newsgroups | gmane.comp.db.mdb-tools.devel |
|---|---|
| Message-ID | <[email protected]> |
Question. . .
Has anyone got mdbtools 0.5 or 0.6pre1 working under Red Hat Linux 4?
I'm having a devil of a time compiling this thing. I have both glib2 and
glib2-devel installed, but it seems the code isn't seeing the libraries.
I searched through the messageboards and google and couldn't find much,
so i am posting this up online.
Here is when I try to compile version 0.5:
/bin/sh ../../libtool --mode=compile gcc -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"
mdbtools\" -DVERSION=\"0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE
_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1
-DHAVE_UNISTD_H=1 -DHAVE_WOR
DEXP_H=1 -I. -I. -I ../../include `glib-config --cflags` -g -O2
-DSQL -DUNIXODBC -c -o odbc.lo `test -f 'odbc.c' || echo './'`odbc.c
rm -f .libs/odbc.lo
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mdbtools\"
-DVERSION=\"0.5\" -DSTDC_H
EADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAV
E_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1
-DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WORDEXP_H=1
-I. -I. -I ../../include -I/
usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DSQL -DUNIXODBC -c
odbc.c -MT odbc.lo -MD -MP -MF .deps/odbc.TPlo -fPIC -DPIC -o .libs/odbc.lo
In file included from ../../include/mdbodbc.h:22,
from odbc.c:28:
../../include/mdbtools.h:31:18: glib.h: No such file or directory
In file included from ../../include/mdbodbc.h:22,
from odbc.c:28:
../../include/mdbtools.h:113: error: syntax error before '*' token
../../include/mdbtools.h:113: warning: data definition has no type or
storage class
../../include/mdbtools.h:120: error: syntax error before "gboolean"
When I try to compile 0.6pre1, I get this:
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mdbtools\"
-DVERSION=\"0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1
-DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1
-DHAVE_WORDEXP_H=1 -I. -I. -I../../include `glib-config --cflags` -g
-O2 -DSQL -DUNIXODBC -c `test -f 'mdb-dump.c' || echo './'`mdb-dump.c
source='mdbsupport.c' object='mdbsupport.o' libtool=no \
depfile='.deps/mdbsupport.Po' tmpdepfile='.deps/mdbsupport.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mdbtools\"
-DVERSION=\"0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DYYTEXT_POINTER=1
-DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1
-DHAVE_WORDEXP_H=1 -I. -I. -I../../include `glib-config --cflags` -g
-O2 -DSQL -DUNIXODBC -c `test -f 'mdbsupport.c' || echo './'`mdbsupport.c
/bin/sh ../../libtool --mode=link gcc -g -O2 -DSQL -DUNIXODBC -o
mdb-dump mdb-dump.o mdbsupport.o ../libmdb/libmdb.la `glib-config --libs`
mkdir .libs
gcc -g -O2 -DSQL -DUNIXODBC -o .libs/mdb-dump mdb-dump.o mdbsupport.o
../libmdb/.libs/libmdb.so -lglib-2.0 -L/usr/lib -lglib -Wl,--rpath
-Wl,/usr/local/lib
/usr/bin/ld: cannot find -lglib
collect2: ld returned 1 exit status
make[2]: *** [mdb-dump] Error 1
make[2]: Leaving directory `/root/tmp4/mdbtools-0.5/src/extras'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tmp4/mdbtools-0.5/src'
make: *** [all-recursive] Error 1
Anyone can point out what's wrong?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV