Hi,

 could anyone give me a hint what options I do have to use when compiling
with a database format other than 'text'?

I always ended up with errors. My latest try was like this:

        ./configure --with-db=gdbm

which resulted in
        checking for db.h... yes                
        checking for dbm.h... no
...
        checking for ndbm.h... no
        checking for netdb.h... yes
...
        checking for dbm_open in -lc... no
        configure: warning: *** gdbm database library requested but 
        ndbm.h not found.


Ok, so I did an additionally "--with-includes=/usr/include/gdbm" because 
that's where ndbm.h lives.

./configure seemed to work but when compiling server-src/infofile.c it ended with

   --------- 8x ----------------- cut here ----------------- x8 ---------


/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config 
-I../common-src -I../tape-src  -D_FILE_OFFSET_BITS=64   -I/usr/include/gdbm   
-D_FILE_OFFSET_BITS=64 -g -O2   -c -o infofile.lo infofile.c
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../common-src -I../tape-src 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -D_FILE_OFFSET_BITS=64 -g -O2 -c infofile.c 
-o infofile.o
infofile.c:46: parse error before `*'
infofile.c:46: warning: data definition has no type or storage class
infofile.c: In function `open_infofile':
infofile.c:391: warning: assignment makes pointer from integer without a cast
infofile.c: In function `get_info':
infofile.c:525: incompatible types in assignment
infofile.c: In function `get_firstkey':
infofile.c:554: incompatible types in assignment
infofile.c: In function `get_nextkey':
infofile.c:597: incompatible types in assignment
infofile.c: In function `put_info':
infofile.c:658: `DBM_REPLACE' undeclared (first use in this function)

   --------- 8x ----------------- cut here ----------------- x8 ---------

Please help me, I'm lost. 
        (on Intel-Linux 2.2.16 [Redhat 6.2], egcs-2.91.66)

Any help would be greatly appreciated.


Thank you in advance

                        Thommy

-- 
   Thomas Bahls     -- s p e e d l i n k . d e --   fon +49-30-28000-183
[EMAIL PROTECTED]     http://www.speedlink.de      fax +49-30-28000-22
    LAN admin             Hardenbergplatz 2            D-10623 Berlin


Reply via email to