SUMMARY: Expect-5.13 make problem

From: Sanjoy Ray <ray%xtal220_at_harvard.harvard.edu>
Date: Tue, 7 Feb 95 09:12:51 -0500

The original message:

>>Hello,
>>Has anyone been successful in compiling Don Libes' Expect-5.13 package
>>(ftp.cme.nist.gov/pub/expect/alpha.tar.Z) on an Alpha? We have a
>>DEC3000 Model 400, for which uname -a gives:
>>
>>OSF1 xtal16.harvard.edu V2.0 240 alpha
>>
>>While Tk and Tcl make without problems, in the case of Expect, the
>>compilation falls over with the message:
>>
>>cc -c -I. -I. -I./../tcl7.3 -I./../tk3.6 -I/usr/include/X11
>>-DDFLT_STTY=\"sane
>>\" -DEXP_VERSION=\"5.13.2\"
>>-DSCRIPTDIR=\"/programs/util/expect-5.13/lib/expec
>>t\" -DEXECSCRIPTDIR=\"/programs/util/expect-5.13/lib/expect\"
>>-DTCL_DEBUGGER -
>>O0 -g Dbg.c
>>/usr/lib/cmplrs/cc/cfe: Warning: /usr/include/string.h: 211: The number of
>>argum
>>ents in macro invocation does not match definition
>>/usr/lib/cmplrs/cc/cfe: Error: /usr/include/string.h, line 211: Syntax Error
>> extern char *strchr(,);
>> --------------------^
>>*** Exit 1
>>Stop.
>>
>>Not being a c expert, I'm not sure how to correct this. Are pre-compiled
>>Expect binaries available?
>>Thankyou,
>>--Sanjoy

The answer came from Dan Cambron, who suggested:

>> I added -DHAVE_STRCHR to the CFLAGS in the Makefile and it worked.

This worked beautifully. Thanks to all who replied:


Sheila Hollenbaugh <shollen_at_valhalla.cs.wright.edu>
"Dan Cambron" <Dan_Cambron_at_tempeqm.sps.mot.com>
"Hellebx Knut" <bgk1142_at_bggfu2.nho.hydro.com>

--Sanjoy

********************************************************************************

Dr. Sanjoy Ray
Systems Manager
HHMI Laboratory for Molecular Medicine
Children's Hospital
300 Longwood Avenue
Boston MA 02115

Tel: 617-735-6563
FAX: 617-730-0506
e-mail: ray_at_xtal220.harvard.edu

********************************************************************************
Received on Tue Feb 07 1995 - 09:10:40 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT