Menu

#8 compile problem on alpha-processor

open
nobody
libtabe (5)
5
2002-01-27
2002-01-27
Anonymous
No

[root@apocalypse libtabe]# ./configure
creating cache ./config.cache
checking host system type...
alphaev56-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for a BSD compatible install...
/usr/bin/install -c
checking for install -d: /usr/bin/install -c
checking for db_open in -ldb... no
checking for db_open in -ldb2... yes
checking for X... libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for XOpenDisplay in -lX11... yes
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for working const... yes
checking for 8-bit clean memcmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/supports/bims/Makefile
creating src/util/Makefile
creating src/tsi-src/Makefile
creating config.h

[root@apocalypse libtabe]# make
(cd src; make)
make[1]: Entering directory `/opt/libtabe/src'
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -o
tabe_util.o tabe_util.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -o
tabe_zuyin.o tabe_zuyin.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -o
tabe_yin.o tabe_yin.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -o
tabe_tsi.o tabe_tsi.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -o
tabe_tsidbint.o tabe_tsidbint.c
tabe_tsidbint.c: In function `tabeTsiDBOpen':
tabe_tsidbint.c:85: warning: implicit declaration of
function `db_open'
tabe_tsidbint.c: In function `tabeTsiDBRecordNumber':
tabe_tsidbint.c:165: structure has no member named
`bt_nrecs'
tabe_tsidbint.c: In function `tabeTsiDBCursorSet':
tabe_tsidbint.c:394: too few arguments to function
make[1]: *** [tabe_tsidbint.o] Error 1
make[1]: Leaving directory `/opt/libtabe/src'
make: *** [all] Error 2

Discussion

  • Tan Koan-Sin

    Tan Koan-Sin - 2002-02-03

    Logged In: YES
    user_id=9804

    it seems db.h for db2 is not found

     
  • Tan Koan-Sin

    Tan Koan-Sin - 2002-02-03

    Logged In: YES
    user_id=9804

    it seems db.h for db2 is not found

     
  • Robert Schipper

    Robert Schipper - 2002-02-20

    Logged In: YES
    user_id=138295

    Hi, I had the same problem just now on a Linux box. Problem
    is that libtabe uses Berkeley DB2. Most people probably have
    that, but if they also have db3, the symbolic link
    /usr/include/db.h most likely links to /usr/include/db3/db.h
    and not to /usr/include/db2/db.h, as libtabe seems to
    expect. The solution is simple and worked in my case:
    in libtabe/src/tabe_tsidbint.c and
    libtabe/src/tabe_tsiyindbint.c (both) change the line
    #include <db.h>
    to
    #include <db2/db.h>

    IMHO this is a bug and should be as above in the source.

    Rob Schipper
    <rvs@users.sourceforge.net>

     
  • Nobody/Anonymous

    Logged In: NO

    I'm having the same problem!..... if someone knows what this
    means email me

    stryderjzw@shaw.ca

    thx

     

Log in to post a comment.

MongoDB Logo MongoDB