[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems building Zmailer



On Thu, 22 Dec 1994, Matti Aarnio wrote:

> I assume  zmailer-2.58 is the referenced system.

  Actually, I was feeling bold and brave, so I was using

> 
> >   I've been trying to build Zmailer on my system (FreeBSD 2.0), but I've run
> > into the following problem during linking:
> > 
> > gcc -g -O  -I../include -I../libsh    -c rfc822hdrs.c -o rfc822hdrs.o
> > gcc -g -O  -I../include -I../libsh    -c rfc822walk.c -o rfc822walk.o
> > make[3]: Entering directory `/usr/priv/zmailer/router'
> > make[3]: Leaving directory `/usr/priv/zmailer/router'
> > gcc -g -O  -I../include -I../libsh    -c version.c -o version.o
> > gcc -g -O  -I../include -I../libsh  -o router router.o dateparse.o conf.o
> > functions.o db.o shliaise.o rfc822.o rfc822hdrs.o rfc822walk.o version.o
> > -L../libs -ldb -lsh -lz -lzc -lmalloc_d 
> > /usr/include/ctype.h:108: Definition of symbol `___istype' (multiply defined)
> > /usr/include/ctype.h:117: Definition of symbol `___isctype' (multiply defined)
> 
> 	These feel like an inlining problem on GCC.
> On Linux  /usr/include/asm/*.h -files there are following constructions:
> 
> 	extern __inline__ functype funcname(...) { .... }
> 
> (GCC version 2.5.8)

  OK, I have these definitions in ctype.h.  I have GCC 2.6.2.
Could it be that the linker is dying because it doesn't like the fact 
that there are multiple code definitions for toupper, tolower, etc found 
in the lib/*.a files?  

> 
> .........
> > whathost.c:268: Undefined symbol `_getmntpt' referenced from text segment
> 
> 	Umm....  libc/whathost.c  has the  getmntpt() function.
> 	You just don't have the correct feature selection so that
> 	your variant can not be found..  (hostenv/FreeBSD2.0 should
> 	list that selection.)

  Yep, I knew that part.  Just that I didn't want to wait enough 30 
minutes to do a "make it all".

> >   BTW, I can contribute the hostenvconfig file that got me this far.
> 
> 	Yes, please send it to <mea@utu.fi> for the inclusion into
> 	the sources.

  If I can figure out a working configuration, I will, unless someone 
else would like to assist..  
  If I can can it to work on FreeBSD, it should be a snap for NetBSD.

Tom