[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem locating ndbm.h but it is there



>>>>> "Pollywog" == Pollywog  <pollywog@shadypond.com> writes:

    Pollywog> This is weird.  I have ndbm.h but when I run configure, it
    Pollywog> says it is not on my system.  Any ideas as to what might be
    Pollywog> wrong?


    Pollywog> gcc -c -g -O2 -DHAVE_CONFIG_H -I../compface -DFACES
    Pollywog> -DUSE_SOUND -I.  -I../mail -I../pixmap -I../editor
    Pollywog> -I/usr/X11R6/include ../mail/uucode.c gcc -c -g -O2
    Pollywog> -DHAVE_CONFIG_H -I../compface -DFACES -DUSE_SOUND -I.
    Pollywog> -I../mail -I../pixmap -I../editor -I/usr/X11R6/include
    Pollywog> ../mail/mime.c gcc -c -g -O2 -DHAVE_CONFIG_H -I../compface
    Pollywog> -DFACES -DUSE_SOUND -I.  -I../mail -I../pixmap -I../editor
    Pollywog> -I/usr/X11R6/include ../mail/imap.c gcc -c -g -O2
    Pollywog> -DHAVE_CONFIG_H -I../compface -DFACES -DUSE_SOUND -I.
    Pollywog> -I../mail -I../pixmap -I../editor -I/usr/X11R6/include
    Pollywog> ../mail/cache.c ../mail/cache.c:25: ndbm.h: No such file or
    Pollywog> directory make[1]: *** [cache.o] Error 1 make[1]: Leaving
    Pollywog> directory `/home/pollywog/xfmail-1.3.2pre1/ui' make: ***
    Pollywog> [all] Error 2

    Pollywog> but 'locate ndbm.h' shows


I had the exact same problem you describe a couple of days ago when I was
building XEmacs-20.4 from raw (ie non-debianized) source tarballs. You
didn't say what you were attempting to compile.

The problem is that the directory containing ndbm.h is not in the standard
include path that the build process is using for compiling. You have to
explicitly specify at least one include path that contains the ndbm.h
directory. If you are using the configure script supplied with the
app/package, one way to do this is:

./configure --site-includes="/usr/include/db1" .... (rest of the options)

Check the configure script supplied with the app and see what the exact
option is to specify additional include directories (try ./configure
--help), though the --site-includes option is a pretty standard way of
specifying additional include dirs.

This solved my problem.

HTH,

-- 
Salman Ahmed
ssahmed AT interlog DOT com


Reply to: