[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Re: compile nmh on Mac OS X breaks on slocal.c
From: |
Joel Reicher |
Subject: |
Re: [Nmh-workers] Re: compile nmh on Mac OS X breaks on slocal.c |
Date: |
Sun, 07 May 2006 08:49:02 +1000 |
> Joel Reicher <address@hidden> writes:
>
> > env CPPFLAGS=-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include LDFLAGS=-L/Devel
> oper/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
And what was the output of configure?!
> > assuming the path is correct and the name is libndbm.
>
> That maybe the problem.
No, sorry. I wasn't careful when I wrote that. configure will
check a number of different names for the library, not just libndbm.
> % 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
Although libdbm is not one of them, AFAICT.
You might have to set --with-ndbm=dbm to get configure to use that library
(if it's the correct one).
> 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
You need to reconfigure. gdbm does look like it's a better bet though,
and configure will get the names of the files right automatically.
Cheers,
- Joel