[comp.unix.xenix.misc] Help - Compiling ecu3

noel@ubbs-nh.MV.COM (N. Del More) (01/12/91)

Finally got all of the pieces to ecu3, including patch1, but for some
reason I am unable to get it to compile.

Part of the problem is I am not a programmer and the Makefile (Make.ecu)
is a bit beyond my ability to comprehend it.  In particular it is not
clear what modifications should be made to SYSTEM, COMFLAGS and LDFLAGS.
The other part of the problem is a number of warning messages and fatal
errors incountered during compilation.

I recieve a number of warnings about M_Termcap redirection in those files
utilizing /usr/include/curses.h, one error at link stage concerning
_calloc being defined twice in /lib/386/Slibc.a(calloc.o) and one
fatal error in ecuutil.c about unresollved externals by /bin/ld
concerning _memmove.

I have attempted to modifiy the makefile in many different ways, but
regardless, it always bombs in exacxtly the same manner.

Any ideas????  

Thanks
Noel
-- 
Noel B. Del More             |                             decvax!ubbs-nh!noel
17 Meredith Drive            |                             noel@ubbs-nh.mv.com 
Nashua, New Hampshire  03063 | It's unix me son!  `taint spozed tah make cents 

-- 
Noel B. Del More             |                             decvax!ubbs-nh!noel
17 Meredith Drive            |                             noel@ubbs-nh.mv.com 
Nashua, New Hampshire  03063 | It's unix me son!  `taint spozed tah make cents 

steve@nshore.uucp (Stephen J. Walick) (01/13/91)

As quoted from <4396@ubbs-nh.MV.COM> by noel@ubbs-nh.MV.COM (N. Del More):

+---------------
|                               ...one error at link stage concerning
| _calloc being defined twice in /lib/386/Slibc.a(calloc.o) and one
| fatal error in ecuutil.c about unresollved externals by /bin/ld
| concerning _memmove.
+---------------

After days of trying to "hack" at the source, I've finally given up
and this article by N. Del More is about the same problem that I've
encountered, viz., "calloc.o".  It's been driving me buggy!  Does
anyone have an insite as to why I too am receiving this "_calloc"
error.  THANKS to anyone who can help out with this.

Regards....  Steve Walick

-- 

Stephen J. Walick, Asst Sysop of the  < XBBS >  program  at  NCoast.ORG
{uunet|backbone}!ncoast.org!nshore!steve        nshore!steve@ncoast.org

bbs00361@uafcseg.uucp (Jose Gomez) (01/14/91)

To compile ecu3, remove all malloc references in the makefile and in
ecu.h.  Undefine the #define MALLOC_3X to #undef MALLOC_3X in ecu.h and
remove the -lmalloc from the $(LDFLAGS) declaration.

I have it running and works fine.

wht@n4hgf.Mt-Park.GA.US (Warren Tucker) (01/17/91)

In article <1991Jan13.040319.7912@nshore.uucp> steve@nshore.uucp (Stephen J. Walick) writes:
>As quoted from <4396@ubbs-nh.MV.COM> by noel@ubbs-nh.MV.COM (N. Del More):
>
>+---------------
>|                               ...one error at link stage concerning
>| _calloc being defined twice in /lib/386/Slibc.a(calloc.o) and one
>| fatal error in ecuutil.c about unresollved externals by /bin/ld
>| concerning _memmove.
>+---------------
>
>After days of trying to "hack" at the source, I've finally given up
>and this article by N. Del More is about the same problem that I've
>encountered, viz., "calloc.o".  It's been driving me buggy!  Does
>anyone have an insite as to why I too am receiving this "_calloc"
>error.  THANKS to anyone who can help out with this.

Bug reports to the author are soliticted in the README and may prove
helpful :-).

1 On some or all XENIX, there is no memmove: Add -DDUFF to the CFLAGS.

2. -lmalloc is broken on some/most XENIX.
   a. edit ecu.h and comment out the line '#define MALLOC_3X'
   b. remove -lmalloc from the LDFLAGS assignment in the make file

3.  The M_TERMCAP redefinitions are a result of how you installed
curses when you installed XENIX.  The SCO curses.h file should
test for #ifdef M_TERMCAP before defining itself, but it doesn't.
The code will compile/work properly despite the warnings.
 
-----------------------------------------------------------------------
Warren Tucker, March Hare   gatech!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
"Tell the moon; don't tell the March Hare:  He is here to look around."