nmh-workers
[Top] [All Lists]

[Nmh-workers] Re: compile nmh on Mac OS X breaks on slocal.c

2006-05-06 15:01:56
Joel Reicher <joel@panacea.null.org> writes:

env CPPFLAGS=-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include 
LDFLAGS=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib ./configure

% setenv LDFLAGS -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib
% setenv CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include  
% ./configure
% make

slocal.c:1595: warning: implicit declaration of function 'dbm_store'
slocal.c:1595: error: 'DBM_INSERT' undeclared (first use in this function)
slocal.c:1600: warning: implicit declaration of function 'dbm_close'
make[1]: *** [slocal.o] Error 1
make: *** [all-recursive] Error 1

assuming the path is correct and the name is libndbm.

That maybe the problem.

% find /Developer/SDKs/MacOSX10.4u.sdk/ -name '*dbm*'
/Developer/SDKs/MacOSX10.4u.sdk//usr/include/ndbm.h
/Developer/SDKs/MacOSX10.4u.sdk//usr/lib/libdbm.dylib

I've also tryed

% find /opt/local -name '*gdbm*'
/opt/local/include/gdbm.h
/opt/local/lib/libgdbm.3.0.0.dylib
/opt/local/lib/libgdbm.3.dylib
/opt/local/lib/libgdbm.a
/opt/local/lib/libgdbm.dylib
/opt/local/lib/libgdbm.la

% setenv CPPFLAGS -I/opt/local/include
% setenv LDFLAGS -L/opt/local/lib
% make
slocal.c:1563: error: 'key' undeclared (first use in this function)
slocal.c:1568: warning: implicit declaration of function 'dbm_open'
slocal.c:1586: error: 'value' undeclared (first use in this function)
slocal.c:1586: warning: implicit declaration of function 'dbm_fetch'
slocal.c:1595: warning: implicit declaration of function 'dbm_store'
slocal.c:1595: error: 'DBM_INSERT' undeclared (first use in this function)
slocal.c:1600: warning: implicit declaration of function 'dbm_close'
make[1]: *** [slocal.o] Error 1make: *** [all-recursive] Error 1

You shouldn't need cvs nmh for this to work.

Yes, but looks like I need an new OS :-)

Thanks
Matthias



_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>