Difficulty compiling for QNX 4.25, Watcom 10.6 
Author Message
 Difficulty compiling for QNX 4.25, Watcom 10.6

Tcl 8.1 Bug:  Generated by Scriptics' bug entry form at
        http://www.*-*-*.com/
Responses to this post are encouraged.
------

Submitted by:  David L. Hawley

OperatingSystem:  Other
OperatingSystemVersion:  QNX 4.25
Extensions:  tcl8.1.tar.gz
CustomShell:  none
Synopsis:  Difficulty compiling for QNX 4.25, Watcom 10.6

ReproducibleScript:
    Attempting to compile:
     ./configure  --disable-load        - works OK
      make                              - fails as described below

ObservedBehavior:
    1. tclBasic.c::TclObjInvoke line 3406 breaks Tcl_Obj *CONST objv[];
    promise   with objv = localObjv; Similar problems in tclCmdMZ.c
    :: Temp solution define CONST "" in tcl.h

    2. tclResult.c(478): Error! E1014: Left operand must be an 'lvalue' -
     tmpArgList = argList;
    :: Possilbe solution? *tmpArgList = *argList;

    3. Finally get Warning(1028): TclpLoadFile_,TclpUnloadFile_ are
    undefined references. These procs are not found in tclLoadNone.c
    shouldn't they be?



Mon, 12 Nov 2001 03:00:00 GMT  
 Difficulty compiling for QNX 4.25, Watcom 10.6

Quote:

>     2. tclResult.c(478): Error! E1014: Left operand must be an 'lvalue' -
>      tmpArgList = argList;
>     :: Possilbe solution? *tmpArgList = *argList;

This bug is already reported together with the correct fix. See:
  http://www.scriptics.com/live/showurl?i=software%2epatches%2etcl81&ur...

Further on, it is already included in version 8.1.1.

Quote:
>     3. Finally get Warning(1028): TclpLoadFile_,TclpUnloadFile_ are
>     undefined references. These procs are not found in tclLoadNone.c
>     shouldn't they be?

This bug was reported by Christian Crone as well:
  http://www.scriptics.com/live/showurl?i=software%2epatches%2etcl81&ur...

So the solution is easy: Upgrade to Tcl/Tk 8.1.1. I don't know if
your number 1. is fixed as well, but in this case Scriptics already
solved at least 2 out of your 3 bugs before you noticed them ;-)

Now let's hope the same will happen soon with at least
BugID 2038, 2053, 2078, 2080, 2121 and more fixes which
fall into the same category ;-)

--
Jan Nijtmans, CMG Arnhem B.V.


url:   http://home.wxs.nl/~nijtmans/



Tue, 13 Nov 2001 03:00:00 GMT  
 Difficulty compiling for QNX 4.25, Watcom 10.6
Previously, Jan Nijtmans wrote in comp.lang.tcl:

Quote:

> >     2. tclResult.c(478): Error! E1014: Left operand must be an 'lvalue' -
> >      tmpArgList = argList;
> >     :: Possilbe solution? *tmpArgList = *argList;

> This bug is already reported together with the correct fix. See:
>   http://www.*-*-*.com/ %2epatches%2etcl81&ur...

> Further on, it is already included in version 8.1.1.

> >     3. Finally get Warning(1028): TclpLoadFile_,TclpUnloadFile_ are
> >     undefined references. These procs are not found in tclLoadNone.c
> >     shouldn't they be?

> This bug was reported by Christian Crone as well:
>   http://www.*-*-*.com/ %2epatches%2etcl81&ur...

> So the solution is easy: Upgrade to Tcl/Tk 8.1.1. I don't know if
> your number 1. is fixed as well, but in this case Scriptics already
> solved at least 2 out of your 3 bugs before you noticed them ;-)

OK, I found the upgrade and it at least compiles (if I redefine CONST to nothing),
Unfortunatly it SIGSEGV's, so I guess I'll get out the de{*filter*}...

I'm still bothered that tclBasic.c::TclObjInvoke(interp, objc, objv, flags)
declares Tcl_Obj *CONST objv[]; and then does an assignment to objv. How
does this compile on any compiler?

- Show quoted text -

Quote:

> Now let's hope the same will happen soon with at least
> BugID 2038, 2053, 2078, 2080, 2121 and more fixes which
> fall into the same category ;-)

> --
> Jan Nijtmans, CMG Arnhem B.V.


> url:   http://www.*-*-*.com/ ~nijtmans/



Sat, 17 Nov 2001 03:00:00 GMT  
 Difficulty compiling for QNX 4.25, Watcom 10.6
Previously, David L. Hawley wrote in comp.lang.tcl:

Quote:
> Previously, Jan Nijtmans wrote in comp.lang.tcl:

> > >     2. tclResult.c(478): Error! E1014: Left operand must be an 'lvalue' -
> > >      tmpArgList = argList;
> > >     :: Possilbe solution? *tmpArgList = *argList;

> > This bug is already reported together with the correct fix. See:
> >   http://www.*-*-*.com/ %2epatches%2etcl81&ur...

I suspect that this is the cause of my current problem (tclsh SIGSEGV's) on
any input. I'll try to take a further look.

[snip]

Quote:
> > So the solution is easy: Upgrade to Tcl/Tk 8.1.1. I don't know if
> > your number 1. is fixed as well, but in this case Scriptics already
> > solved at least 2 out of your 3 bugs before you noticed them ;-)

> OK, I found the upgrade and it at least compiles (if I redefine CONST to nothing),
> Unfortunatly it SIGSEGV's, so I guess I'll get out the de{*filter*}...

> I'm still bothered that tclBasic.c::TclObjInvoke(interp, objc, objv, flags)
> declares Tcl_Obj *CONST objv[]; and then does an assignment to objv. How
> does this compile on any compiler?

If I change the decl to Tcl_Obj CONST* objv[]; the code compiles. Is it
possible that this is what was ment? Affected modules are:
 tclBasic.c
 tclCmdMZ.c
 tclFCmd.c
 tclProc.c
 tclVar.c

All of these have functions which declare a const array, then try to assign
or increment the array. It porbably make sense that the Tcl_Obj's are constant.



Sun, 18 Nov 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. compiling python 2.2 on QNX 4.25

2. Eiffel/S 1.3 with Watcom C 10.6

3. Who supports Watcom C/C++ 10.6

4. Watcom C++ 10.6 and Clipper 5.2e

5. Inline assembler (pragma aux) problem with Watcom 10.6

6. WATCOM 10.6 (Win98)

7. Mixed-Language PROBLEMS - MS FORTRAN 5.00/Watcom 10.6 and PDS 7.1

8. Best GUI front end for Watcom 10.6?

9. Use IMSL Fortran library with Watcom Fortran 10.6?

10. OS/2 PM and Watcom 10.6 Fortran

11. Linking tcl and tk .libs with Watcom 10.6 compiler

12. Tcl/Tk and Watcom C/C++ 10.6

 

 
Powered by phpBB® Forum Software