bug-mailutils
[Top][All Lists]
Advanced

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

Re: Building on Mac OS X (was Re: a quick mailutils question)


From: Sam Roberts
Subject: Re: Building on Mac OS X (was Re: a quick mailutils question)
Date: Fri, 26 Apr 2002 18:20:43 -0400
User-agent: Mutt/1.5.0i

Ok, so you don't need malloc.h. I'll stick a check in it.

I'll look at the next thing when I get home.

Cheers,
Sam

On Fri, Apr 26, 2002 at 02:45:48PM -0700, Shane Owenby <address@hidden> wrote:
> On Fri, Apr 26, 2002 at 02:53:58PM -0400, Sam Roberts wrote:
> > I don't know if anybody has tried to build with OS X either.
> 
> Since frm doesn't come with mutt (as it came with elm) I figure
> a lot more ppl are going to be interested in mailutils.
> 
> > First question would be, is there a malloc.h somewhere? If not, we
> > can make a configure test.
> 
> (dhcp179) ~% sudo locate malloc.h
> /sw/share/doc/db3-doc/docs/api_c/set_func_malloc.html
> /sw/share/doc/db3-doc/docs/ref/am_conf/malloc.html
> /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h
> /Users/shane/Desktop/postfix-1.1.7/include/mymalloc.h
> /Users/shane/Desktop/postfix-1.1.7/src/util/mymalloc.h
> /usr/include/objc/malloc.h
> /usr/include/sys/malloc.h
> (dhcp179) ~%
> 
> FWIW, lots of other GNU software builds and runs fine on OS X.  So
> I would think that with a bit of tweaking mail utils should  also.
> 
> > But, you still need the header for calloc(), and alloca(), where are
> > they prototyped in OS X? Are they int stdlib.h?
> 
> There seem to be 2 stdlib.h's on this system:
> 
> (dhcp179) /tmp/mailutils/mailutils-20020409/mailutils-20020409/frm% locate 
> stdlib.h
> /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/libsa/stdlib.h
> /usr/include/stdlib.h
> 
> > 
> > Try commenting out the include statement, and seeing if you can build.
> 
> That got me a bit farther:
> 
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../mailbox/include
> -DSYSCONFDIR=\"/usr/local/etc\" -DSITE_VIRTUAL_PWDDIR=\"\" -g -O2 -c
> url.c -Wp,-MD,.deps/url.TPlo  -fno-common -DPIC -o .libs/url.lo
> ../include/mailutils/mutil.h:66: undefined type, found `uid_t'
> cpp-precomp: warning: errors during smart preprocessing, retrying in
> basic mode
> In file included from url.c:30:
> ../include/mailutils/mutil.h:64: warning: parameter names (without
> types) in function declaration
> ../include/mailutils/mutil.h:66: parse error before `uid'
> make[3]: *** [url.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> 
> again, thanks for working on this.
> 
> Shane
> 
> > > > I just tried building mailutils-20020409, and here was the error
> > > > I received from a top level make after running ./configure
> > > > 
> > > > source='argp-help.c' object='argp-help.lo' libtool=yes \
> > > > depfile='.deps/argp-help.Plo' tmpdepfile='.deps/argp-help.TPlo' \
> > > > depmode=gcc /bin/sh ../depcomp \
> > > > /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. 
> > > > -I../include  -DSYSCONFDIR=\"/usr/local/etc\"  -g -O2 -c -o 
> > > > argp-help.lo `test -f argp-help.c || echo './'`argp-help.c
> > > > rm -f .libs/argp-help.lo
> > > > cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include 
> > > > -DSYSCONFDIR=\"/usr/local/etc\" -g -O2 -c argp-help.c 
> > > > -Wp,-MD,.deps/argp-help.TPlo  -fno-common -DPIC -o .libs/argp-help.lo
> > > > argp-help.c:53: header file 'malloc.h' not found
> > > > cpp-precomp: warning: errors during smart preprocessing, retrying in 
> > > > basic mode
> > > > make[3]: *** [argp-help.lo] Error 1
> > > > make[2]: *** [all-recursive] Error 1
> > > > make[1]: *** [all-recursive] Error 1
> > > > make: *** [all] Error 2
> 
> _______________________________________________
> Bug-mailutils mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-mailutils

-- 
Sam Roberts <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]