[Coldstuff] Errors upon making Genesis.

Michael Henry coldstuff@cold.org
Sun, 3 Feb 2002 10:37:54 -0700


Jonathan Walker wrote:
> Hello, when I try to make genesis under Mandrake 8.1, it gives me undefined references to various dbm_ statements. They appear in the ndbm.h header file. These errors appear during the linking process - they appear in lookup.o. I've checked and I DO have the ndbm.h file in the /usr/include/db1/ directory. I'm not entirely sure what else is wrong. It's the only problem that I'm having with it. :(
> 
> I can't copy the errors, since piping it doesn't seem to work. 
> So I typed this up for you. 
> 
> lookup.o: In function 'get_name':
> /home/coldc/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

Do you have GDBM installed?

If you notice in the make file, the second option is -lgdbm:
  LIBS=-lintl -lgdbm -lsocket -lm -lnsl

If you have it installed, make sure that its path is in:
  /etc/ld.so.conf

You may also have to run this as root to ensure ld.so.cache is current:
  /sbin/ldconfig

If you do not have it installed, you can get it at the following location:
  http://www.gnu.org/software/gdbm/gdbm.html

There is probably an RPM for it as well.

I hope this helps, else someone a little more experience with ColdC
can help you.  (This is day 4 for me).

Mike - "derMike"