Mail Archives: cygwin/2003/02/14/05:48:26
Hello,
Has anyone successfully built Perl Tk800.024 under cygwin? I'm using
Cygwin 1.3.20-1, gcc 3.2 and Perl 5.6.1 (Cygwin Perl, not ActiveState)
and Cygwin XFree86 4.2.0-1/2/3 (according to the Cygwin setup.exe, some
Xfree packages are 4.2.0-1, some are 4.2.0-2 and some 4.2.0-3 - I'm
using the latest packages that Setup offers). The documentation seems to
imply that this is possible.
I'm trying to build it to work with X, so am doing:
jon AT shuttle (.../perlModules/Tk800.024) % perl Makefile.PL x
...
(no problems)
jon AT shuttle (.../perlModules/Tk800.024) % make
cp Tk/Credits blib/lib/Tk/Credits
cp Tk/typemap blib/lib/Tk/typemap
...
...
cp Tk.pm blib/lib/Tk.pm
AutoSplitting blib/lib/Tk.pm (blib/lib/auto/Tk)
cp Tk/tranicon.gif blib/lib/Tk/tranicon.gif
...
...
cd pTk && make
make[1]: Entering directory `/home/jon/src/perlModules/Tk800.024/pTk'
/bin/perl mkVFunc -t x tk.h
TK
/bin/perl mkVFunc -t x tkInt.h
TKINT
/bin/perl mkVFunc -t x tix.h
tix.h:43: * so that all EXTERN declarations get DLLEXPORT; when
building apps
tix.h:44: * using Tix, BUILD_tix should NOT be defined so that all
EXTERN
tix.h:48: * because the EXTERN declarations in those files need
DLLIMPORT.
tix.h:370: EXTERN int Tix_GlobalVarEval _ANSI_ARGS_(
tix.h:373: EXTERN int Tix_GlobalVarEval _ANSI_ARGS_(
tix.h:422: extern TIX_DECLARE_CMD(Tix_CallMethodCmd);
tix.h:423: extern TIX_DECLARE_CMD(Tix_ChainMethodCmd);
...
...
tix.h:453: extern TIX_DECLARE_CMD(Tix_MwmCmd);
tix.h:454: extern TIX_DECLARE_CMD(Tix_CreateWidgetCmd);
TIX
/bin/perl mkVFunc -t x tixInt.h
tixInt.h:866: * (these are declared with the EXTERN in win/winMain.c
but without it
TIXINT
/bin/perl mkVFunc -m x imgInt.h
IMGINT
/bin/perl mkVFunc -t x imgInt.h
IMGINT
/bin/perl mkVFunc -m x tix.h
tix.h:43: * so that all EXTERN declarations get DLLEXPORT; when
building apps
tix.h:44: * using Tix, BUILD_tix should NOT be defined so that all
EXTERN
tix.h:48: * because the EXTERN declarations in those files need
DLLIMPORT.
tix.h:370: EXTERN int Tix_GlobalVarEval _ANSI_ARGS_(
tix.h:373: EXTERN int Tix_GlobalVarEval _ANSI_ARGS_(
tix.h:422: extern TIX_DECLARE_CMD(Tix_CallMethodCmd);
tix.h:423: extern TIX_DECLARE_CMD(Tix_ChainMethodCmd);
...
...
tix.h:454: extern TIX_DECLARE_CMD(Tix_CreateWidgetCmd);
TIX
/bin/perl mkVFunc -m x tixImgXpm.h
TIXIMGXPM
/bin/perl mkVFunc -t x tixImgXpm.h
TIXIMGXPM
/bin/perl mkVFunc -m x tixInt.h
tixInt.h:866: * (these are declared with the EXTERN in win/winMain.c
but without it
TIXINT
/bin/perl mkVFunc -m x tk.h
TK
/bin/perl mkVFunc -m x tkInt.h
TKINT
cp tixInt_f.h ../blib/arch/Tk/pTk/tixInt_f.h
cp tixForm.h ../blib/arch/Tk/pTk/tixForm.h
...
...
cp tkConfig.h ../blib/arch/Tk/pTk/tkConfig.h
cp tkScrollbar.h ../blib/arch/Tk/pTk/tkScrollbar.h
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ ClientWin.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Lang_f.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib_f.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ XrmOption.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgBMP.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgGIF.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgInit.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgInt_f.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgObj.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgUtil.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgWindow.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgXBM.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ imgXPM.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ ptkCanvGrid.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ ptkCanvGroup.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ stbDItem.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ stbDashCustom.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ stbDiStyle.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
gcc -c -I.. -I/usr/X11R6/include -I. -Ibitmaps -I/usr/X11R6/include
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include
-DUSEIMPORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\"
-I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -Wall -Wno-implicit-int
-Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ stubs.c
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning: as it has already been specified as a non-system
directory
stubs.c:47: conflicting types for `XChangeProperty'
/usr/X11R6/include/X11/Xlib.h:2337: previous declaration of
`XChangeProperty'
stubs.c: In function `XCreateGlyphCursor':
stubs.c:68: argument `foreground_color' doesn't match prototype
/usr/X11R6/include/X11/Xlib.h:1642: prototype declaration
stubs.c:68: argument `background_color' doesn't match prototype
/usr/X11R6/include/X11/Xlib.h:1642: prototype declaration
stubs.c: In function `XCreateIC':
stubs.c:74: number of arguments doesn't match prototype
/usr/X11R6/include/X11/Xlib.h:4644: prototype declaration
stubs.c: At top level:
stubs.c:94: conflicting types for `XDeleteProperty'
/usr/X11R6/include/X11/Xlib.h:2551: previous declaration of
`XDeleteProperty'
stubs.c:115: conflicting types for `XForceScreenSaver'
/usr/X11R6/include/X11/Xlib.h:2898: previous declaration of
`XForceScreenSaver'
stubs.c:122: conflicting types for `XFreeCursor'
/usr/X11R6/include/X11/Xlib.h:2928: previous declaration of
`XFreeCursor'
stubs.c:184: conflicting types for `XNextEvent'
/usr/X11R6/include/X11/Xlib.h:3330: previous declaration of `XNextEvent'
stubs.c:191: conflicting types for `XPutBackEvent'
/usr/X11R6/include/X11/Xlib.h:3410: previous declaration of
`XPutBackEvent'
stubs.c:198: conflicting types for `XQueryColor'
/usr/X11R6/include/X11/Xlib.h:3484: previous declaration of
`XQueryColor'
stubs.c:231: conflicting types for `XRefreshKeyboardMapping'
/usr/X11R6/include/X11/Xlib.h:3618: previous declaration of
`XRefreshKeyboardMapping'
stubs.c:245: conflicting types for `XSelectInput'
/usr/X11R6/include/X11/Xlib.h:3704: previous declaration of
`XSelectInput'
stubs.c:264: conflicting types for `XSetCommand'
/usr/X11R6/include/X11/Xlib.h:3782: previous declaration of
`XSetCommand'
stubs.c:280: conflicting types for `XSetIconName'
/usr/X11R6/include/X11/Xlib.h:3856: previous declaration of
`XSetIconName'
stubs.c:288: conflicting types for `XSetWindowBackground'
/usr/X11R6/include/X11/Xlib.h:3970: previous declaration of
`XSetWindowBackground'
stubs.c:296: conflicting types for `XSetWindowBackgroundPixmap'
/usr/X11R6/include/X11/Xlib.h:3978: previous declaration of
`XSetWindowBackgroundPixmap'
stubs.c:304: conflicting types for `XSetWindowBorder'
/usr/X11R6/include/X11/Xlib.h:3986: previous declaration of
`XSetWindowBorder'
stubs.c:312: conflicting types for `XSetWindowBorderPixmap'
/usr/X11R6/include/X11/Xlib.h:3994: previous declaration of
`XSetWindowBorderPixmap'
stubs.c:320: conflicting types for `XSetWindowBorderWidth'
/usr/X11R6/include/X11/Xlib.h:4002: previous declaration of
`XSetWindowBorderWidth'
stubs.c:328: conflicting types for `XSetWindowColormap'
/usr/X11R6/include/X11/Xlib.h:4010: previous declaration of
`XSetWindowColormap'
stubs.c:351: conflicting types for `XWindowEvent'
/usr/X11R6/include/X11/Xlib.h:4236: previous declaration of
`XWindowEvent'
make[1]: *** [stubs.o] Error 1
make[1]: Leaving directory `/home/jon/src/perlModules/Tk800.024/pTk'
make: *** [pTk/libpTk.a] Error 2
Any thoughts?
thanks
jon.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -