Menu

#114 Compile Problem with Fedora Core 6

open
nobody
5
2007-05-06
2007-05-06
No

Hello.

I tried to install the MDB Tools but got a compilation error during the make run :

Making all in src
make[1]: Entering directory `/home/Arnaud/Desktop/mdbtools-0.6pre1/src'
Making all in libmdb
make[2]: Entering directory `/home/Arnaud/Desktop/mdbtools-0.6pre1/src/libmdb'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -DSQL -MT backend.lo -MD -MP -MF ".deps/backend.Tpo" \
-c -o backend.lo `test -f 'backend.c' || echo './'`backend.c; \
then mv -f ".deps/backend.Tpo" ".deps/backend.Plo"; \
else rm -f ".deps/backend.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -DSQL -MT backend.lo -MD -MP -MF .deps/backend.Tpo -c backend.c -fPIC -DPIC -o .libs/backend.o
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
make[2]: *** [backend.lo] Error 1
make[2]: Leaving directory `/home/Arnaud/Desktop/mdbtools-0.6pre1/src/libmdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Arnaud/Desktop/mdbtools-0.6pre1/src'
make: *** [all-recursive] Error 1

Any idea ?

Discussion

  • Donny Viszneki

    Donny Viszneki - 2007-05-10

    Logged In: YES
    user_id=401434
    Originator: NO

    Whatever the problem may have been, it seems to have been fixed in CVS. I don't have the source code for that version at my fingertips or I might speculate what was wrong. I checked the CVS source code and found nothing interesting at backend.c:31. You could probably just add the static keyword to mdbtools.h:150

     
  • Nobody/Anonymous

    Logged In: NO

    Try to remove the static keyword before the definition into the backend.c at line 31.

    Hope this Help,

     

Log in to post a comment.

MongoDB Logo MongoDB