[Coldstuff] having trouble getting genesis to compile

Ira coldstuff@cold.org
Sat, 20 Apr 2002 12:42:00 -0500


I've been fiddling with this for a while here, so I'm going to paste in 
a lot of stuff...  sorry about that.

when I try to compile genesis, I get a bunch of "undefined reference" 
errors, followed by ld returning a 1 exit status and the whole thing 
breaks.  I'll paste in the exact text at the end of the email.

I looked for anything related to compile problems with Mandrake Linux 
(which is what I'm running on that machine) and found a message in the 
Coldstuff archives talking about gdbm.h being in the wrong place on 
Mandrake 8.1...  I'm running 8.2.  so, since it does look like a dbm 
related problem I started looking for gdbm.h, as suggested in the 
message:
http://web.cold.org/pipermail/cold-coldstuff/2002-February/000191.html

gdbm.h doesn't exist on my system, so I looked on rpmfind for gdbm, and 
I couldn't find a package that provided that particular file.  however, 
I do seem to have the mandrake gdbm package installed:
-----
$ locate gdbm
...
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.so.2.0.0
/usr/lib/rep/0.15.2/i586-mandrake-linux-gnu/gdbm.la
/usr/lib/rep/0.15.2/i586-mandrake-linux-gnu/rep/io/db/gdbm.la
/usr/lib/rep/0.15.2/i586-mandrake-linux-gnu/rep/io/db/gdbm.so
/usr/lib/rep/0.15.2/i586-mandrake-linux-gnu/gdbm.so
-----

since the first two files there are all that the gdbm package on rpmfind 
provides, I'm not sure what to do to make the whole thing work.  I can't 
find gdbm.h on rpmfind.net at all.

there _is_ an ndbm.h:
-----
$ locate ndbm
/usr/include/db1/ndbm.h
-----

it _seems_ like the configure script is finding ndbm.h...

so, I'm lost.

sorry for such a verbose message, but I wanted to exhaust possibilities 
of fixing it myself before asking the list.

thanks very much!


Love,
Ira


------
gcc -g -O -Iinclude -Imodules -Lmodules grammar.o coldcc.o textdb.o 
data/data.o data/buffer.o data/dict.o data/ident.o data/list.o 
data/object.o data/string.o data/handled_frob.o data/quickhash.o cache.o 
binarydb.o dbpack.o decode.o lookup.o io.o log.o net.o file.o strutil.o 
memory.o sig.o util.o regexp.o defs.o dns.o codegen.o execute.o 
opcodes.o token.o native.o ops/operators.o ops/buffer.o ops/error.o 
ops/list.o ops/object.o ops/dict.o ops/string.o ops/data.o ops/sys.o 
ops/misc.o ops/task.o ops/file.o ops/network.o ops/math.o modules/cdc.o 
modules/cdc_buffer.o modules/cdc_dict.o modules/cdc_list.o 
modules/cdc_misc.o modules/cdc_string.o modules/cdc_integer.o 
modules/web.o modules/ext_math.o shs.o crypt.o -lintl -lm -lnsl -o coldcc
lookup.o: In function `lookup_open':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:60: undefined 
reference to `dbm_open'
lookup.o: In function `lookup_close':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:70: undefined 
reference to `dbm_close'
lookup.o: In function `lookup_sync':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:80: undefined 
reference to `dbm_close'
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:81: undefined 
reference to `dbm_open'
lookup.o: In function `lookup_retrieve_objnum':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:93: undefined 
reference to `dbm_fetch'
lookup.o: In function `lookup_store_objnum':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:108: undefined 
reference to `dbm_store'
lookup.o: In function `lookup_remove_objnum':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:123: undefined 
reference to `dbm_delete'
lookup.o: In function `lookup_first_objnum':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:134: undefined 
reference to `dbm_firstkey'
lookup.o: In function `lookup_next_objnum':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:146: undefined 
reference to `dbm_nextkey'
lookup.o: In function `lookup_remove_name':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:230: undefined 
reference to `dbm_delete'
lookup.o: In function `lookup_first_name':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:240: undefined 
reference to `dbm_firstkey'
lookup.o: In function `lookup_next_name':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:252: undefined 
reference to `dbm_nextkey'
lookup.o: In function `store_name':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:349: undefined 
reference to `dbm_store'
lookup.o: In function `get_name':
/home/horza/Downloads/Genesis-1.1.10-STABLE/src/lookup.c:363: undefined 
reference to `dbm_fetch'
collect2: ld returned 1 exit status
make[1]: *** [coldcc] Error 1
make[1]: Leaving directory 
`/home/horza/Downloads/Genesis-1.1.10-STABLE/src'
make: *** [all] Error 2