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

Re: Problems building Zmailer



I assume  zmailer-2.58 is the referenced system.

>   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)

.........
> 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.)

> make[2]: *** [router] Error 1
> make[2]: Leaving directory `/usr/priv/zmailer/router'
> make[1]: *** [router/router] Error 2
> make[1]: Leaving directory `/usr/priv/zmailer'
> make: *** [it] Error 2
> 
>   toupper, tolower, etc are defined as inline functions in ctype.h  For some
> reason, linking the various modules causes problems.
> 
>   Does anyone have any idea how I can get around this?
> 
>   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.

> Tom

	/Matti Aarnio	<mea@nic.funet.fi> <mea@utu.fi>