Skip to content

tkpWinRopModes #1

@aotto1968

Description

@aotto1968

Tried building on win7x64 w/ Msys2 64-bit gcc

Tcl & Tk build fine

My configure:

./configure \
--enable-threads \
--enable-shared \
--enable-64bit \
--with-tcl=$TCL/lib \
--with-tk=$TCL/lib \
--with-tclinclude=$TCL/include \
--with-tkinclude=$TCL/include

  1. tcl.m4 is old; first compile I get:

gcc -DPACKAGE_NAME="rbc" -DPACKAGE_TARNAME="rbc"
-DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="rbc\ 0.1"
-DPACKAGE_BUGREPORT="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1
-DNO_SYS_WAIT_H=1 -DNO_DLFCN_H=1 -DHAVE_SYS_PARAM_H=1
-DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1
-DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_LSEEK64=1
-DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 -I"C:/Progra~1/Tcl/include"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/generic"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/unix"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/generic/ttk" -pipe -O2
-Wall -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Werror -c
echo ./generic/rbcAlloc.c -o rbcAlloc.o
In file included from ./generic/rbcInt.h:36:0,
from ./generic/rbcAlloc.c:12:
./generic/rbcTkInt.h:16:22: fatal error: tkWinInt.h: No such file or
directory

  1. I copied the newer tcl.m4 from
    tcl8.6.6/pkgs/sqlite3.13.0/tclconfig/tcl.m4
    and re-ran autoconf

  2. Now running configure gives no warnings

  3. Build gets much further but dies at:

gcc -DPACKAGE_NAME="rbc" -DPACKAGE_TARNAME="rbc"
-DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="rbc\ 0.1"
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DBUILD_rbc=/**/
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DBUILD_RBC=1
-DWIN32=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1
-DHAVE_CAST_TO_UNION=1 -DTCL_WIDE_INT_TYPE=long\ long
-DHAVE_STRUCT_STAT64=1 -DHAVE_LSEEK64=1 -DUSE_TCL_STUBS=1
-DUSE_TK_STUBS=1 -I"C:/Progra~1/Tcl/include"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/generic"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/win"
-I"/C/Users/imdave/Downloads/Tcl/tk8.6.6/generic/ttk"
-I""/C/Users/imdave/Downloads/Tcl/tk8.6.6/xlib"" -pipe -O2
-fomit-frame-pointer -DNDEBUG -Wall -Wno-int-to-pointer-cast
-Wno-pointer-to-int-cast -Werror -c echo ./generic/rbcGrLine.c -o
rbcGrLine.o
./generic/rbcGrLine.c:885:12: error: conflicting types for 'tkpWinRopModes'
static int tkpWinRopModes[] = {
^~~~~~~~~~~~~~
In file included from ./generic/rbcTkInt.h:16:0,
from ./generic/rbcInt.h:36,
from ./generic/rbcGraph.h:15,
from ./generic/rbcGrLine.c:12:
C:/Users/imdave/Downloads/Tcl/tk8.6.6/win/tkWinInt.h:128:24: note:
previous declaration of 'tkpWinRopModes' was here
MODULE_SCOPE const int tkpWinRopModes[];
^~~~~~~~~~~~~~

--
computerjock AT mail DOT com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions