* Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
@ 1999-11-17 20:04 Allan S Iverson
1999-11-19 15:42 ` s.rekow
1999-11-30 23:39 ` Allan S Iverson
0 siblings, 2 replies; 6+ messages in thread
From: Allan S Iverson @ 1999-11-17 20:04 UTC (permalink / raw)
To: Cygwin Mail List
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 11214 bytes --]
I am trying to compile TCL 8.0.4 using Cygwin
b20 with GCC-2.95.2 downloaded from www.xraylith.wisc.edu/~khan/software/gnu-win32/ .
Â
I also downloaded a patch Tcl 8.0.4 diffs from
Mumit Khan at the same site and applied it. I also had earlier
downloaded and installed Munit's binary build for Tcl/Tk 8.0.4, Tix, and BLT
2.4g for Cygwin b20 from the same web page. However I now need a complete
source tree for another project that depends on being able to access the
tclusing more then just tclConfig.sh. Â I then attempted to build
tcl8.0.4 from the patched sources. Note: Complied with -U_WIN32 added to
Makefile after running configure I think this is necessary otherwise
generic/tclPort.h includes "../win/tclWinPort.h" instead of
"../unix/tclUnixPort.h"
Â
I received the following warnings and
errors. The library appeared to build but is unusable because of the many
undefined references.
Â
Been working on this with only a couple hours
sleep in the last two days and could use some suggestions.
Â
Hope somebody can help. TIA Allan
Iverson
Â
 ./../generic/tclCmdIL.c: In
function `Tcl_LsearchObjCmd': ./../generic/tclCmdIL.c:2379: warning: passing
arg 3 of `strncasecmp'
                                                     Â
as unsigned due to prototype  // Probably OK
Â
./../generic/tclEnv.c: In function
`TclCygwin32Putenv': ./../generic/tclEnv.c:779: warning: implicit declaration
of function
                                               Â
`SetEnvironmentVariable'
Â
 // This is really a problem.
`SetEnvironmentVariable' defined in  // Functions.h?? If I
expressly include Functions.h all hell breaks  // loose because of
-U_WIN32
Â
./../generic/tclEnv.c:799: warning: implicit
declaration of function
                                               Â
`cygwin32_posix_to_win32_path_list_buf_size'
Â
 // This is really a problem.
'cygwin32_posix_to_win32_path_list_buf_size' Â // defined in cygwin.h
??/ I wouldn't even try to expressly include  // cygwin.h after seeing
the problems above.
Â
./../generic/tclEnv.c:800: warning: passing arg
1 of `alloca' as
                                               Â
unsigned due to prototype
Â
 // Probably OK
Â
./../generic/tclEnv.c:801: warning: implicit
declaration of function
                                               Â
`cygwin32_posix_to_win32_path_list'
Â
 // This is really a problem.
'cygwin32_posix_to_win32_path_list' defined  // in cygwin.h
??
Â
./../generic/tclEnv.c: At top
level: ./../generic/tclEnv.c:740: warning: `TclCygwin32Putenv' defined but
not used
Â
 // This causes link problems later
on
Â
./../generic/tclIOSock.c: In function
`TclSockGetPort': ./../generic/tclIOSock.c:48: warning: passing arg 1 of
`__ntohs'
                                                  Â
with different width due to prototype
Â
 // Why does Cygwin define __ntohs
differently then POSIX
Â
./../generic/tclProc.c: In function
`TclCreateProc': ./../generic/tclProc.c:192: warning: `localPtr' might be
used
                                                 Â
uninitialized in this function
Â
 // This sound like a disaster waiting to
happen
Â
./tclUnixChan.c: In function
`TcpGetOptionProc': ./tclUnixChan.c:1679: warning: passing arg 1 of `__ntohs'
                                           Â
with different width due to prototype ./tclUnixChan.c:1722: warning: passing
arg 1 of `__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: In function
`CreateSocketAddress': ./tclUnixChan.c:2011: warning: passing arg 1 of
`__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: In function
`TcpAccept': ./tclUnixChan.c:2258: warning: passing arg 1 of `__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: At top
level: ./tclUnixChan.c:760: warning: `TtyGetSpeed' defined but not
used ./tclUnixChan.c:805: warning: `TtyGetBaud' defined but not
used
Â
 // Both probably ok but as I didn't get
very far in the link  // step who knows
Â
./tclUnixFCmd.c: In function
`TclpCopyFile': ./tclUnixFCmd.c:309: warning: implicit declaration of
function `mknod'
Â
 // This used to be a sub under Windows NT
- Now I can't even find where  // is it defined Most
Importantly what can I do about it
Â
./tclUnixFCmd.c: In function
`GetGroupAttribute': ./tclUnixFCmd.c:943: warning: passing arg 1 of
`getgrgid'
                                           Â
with different width due to prototype
 // I would think these might get
through OK
Â
./tclUnixFCmd.c: In function
`GetOwnerAttribute': ./tclUnixFCmd.c:987: warning: passing arg 1 of
`getpwuid'
                                          Â
with different width due to prototype
 // I would think these might get
through OK
Â
./tclUnixFCmd.c: In function
`GetPermissionsAttribute': ./tclUnixFCmd.c:1031: warning: long unsigned int
format, mode_t arg (arg 3)
 // I would think these my get through
OK
Â
./tclUnixFCmd.c: In function
`SetGroupAttribute': ./tclUnixFCmd.c:1083: warning: passing arg 2 of `chown'
                                            Â
with different width due to prototype ./tclUnixFCmd.c:1083: warning: negative
integer
                                             Â
implicitly converted to unsigned type   // I though -1 was OK
to use as the second argument in chown
Â
./tclUnixFCmd.c:1083: warning: passing arg 3 of
`chown'
                                            Â
with different width due to prototype
Â
 // should be OK
Â
./tclUnixFCmd.c: In function
`SetOwnerAttribute': ./tclUnixFCmd.c:1138: warning: passing arg 2 of `chown'
with
                                            Â
different width due to prototype ./tclUnixFCmd.c:1138: warning: passing arg 3
of `chown'
                                             Â
with different width due to prototype ./tclUnixFCmd.c:1138: warning: negative
integer implicitly converted to unsigned type
 // Same story different
location
Â
./tclUnixPipe.c: In function
`TclpCreateProcess': ./tclUnixPipe.c:358: warning: implicit declaration of
function `vfork'
Â
i586-cygwin32/lib/libcygwin.a(libccrt0.o)(.data+0x4):libccrt0.cc:
multiple
               Â
definition of
                                                                Â
`environ' i586-cygwin32/lib/libc.a(environ.o)(.data+0x4):environ.c: first
defined here
Â
i586-cygwin32/lib/libcygwin.a(libccrt0.o)(.data+0x0):libccrt0.cc:
multiple
                      Â
definition of
                                                                Â
`_impure_ptr' i586-cygwin32/lib/libc.a(impure.o)(.data+0x2ec):impure.c: first
defined here
Â
 // I Haven't a clue where these multiple
definitions are coming from  // I'm worried it might be because of the
complier upgrade I did at the  // startof all this
Â
/usr/tcl8.0.4/unix/libtcl8.0.a(tclEnv.o): In
function `TclCygwin32Putenv': /usr/tcl8.0.4/unix/./../generic/tclEnv.c:779:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:783:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:790:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:804:
undefined reference to `SetEnvironmentVariable'
Â
/usr/tcl8.0.4/unix/libtcl8.0.a(tclUnixFCmd.o):
In function `TclpCopyFile': /usr/tcl8.0.4/unix/./tclUnixFCmd.c:315: undefined
reference to `mkfifo' Â // What lib is `mkfifo'Â in obviously if got
past the complier without an  // implicit declaration so
something must be missing from my lib path
Â
i586-cygwin32/lib/libc.a(execvp.o): In function
`execvp': /home/noer/src/b20/comp-tools/devo/newlib/libc/posix/execvp.c:69:
undefined reference to `posix_path_list_p'
Â
collect2: ld returned 1 exit status make: ***
[tclsh] Error 1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
1999-11-17 20:04 Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade Allan S Iverson
@ 1999-11-19 15:42 ` s.rekow
1999-11-30 23:39 ` s.rekow
1999-11-30 23:39 ` Allan S Iverson
1 sibling, 1 reply; 6+ messages in thread
From: s.rekow @ 1999-11-19 15:42 UTC (permalink / raw)
To: Allan S Iverson, Cygwin Mail List
> I am trying to compile TCL 8.0.4 using Cygwin b20 with GCC-2.95.2
downloaded from
> www.xraylith.wisc.edu/~khan/software/gnu-win32/.
maybe off-topic but:
Jeffrey Hobbs, tcl-corehacker at scriptics.com wrote somewhere:
"There is actually a buglet in 8.0.4 (not 8.0.5) and 8.1-8.2.0 (fixed
in 8.2.1) where the above cases are equal (both will be compiled).
Tcl was being overaggressive in trying to compile procs, and was
deciding that simple $vars are OK to compile in. This is actually
not true, since expr has always had double-evaluation semantics.
8.0.5 and 8.2.1+ will behave as expected, the others will not."
tcl8.0.5 is the last patchlvl for 8.0, tcl8.1 - 8.2.0 are not very stable
and tcl8.2.2 also fixed a bunch of memleaks
uhm, maybe you should use tcl8.0.5 or 8.2.2?
Regards,
S.Rekow
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
1999-11-17 20:04 Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade Allan S Iverson
1999-11-19 15:42 ` s.rekow
@ 1999-11-30 23:39 ` Allan S Iverson
1 sibling, 0 replies; 6+ messages in thread
From: Allan S Iverson @ 1999-11-30 23:39 UTC (permalink / raw)
To: Cygwin Mail List
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 11214 bytes --]
I am trying to compile TCL 8.0.4 using Cygwin
b20 with GCC-2.95.2 downloaded from www.xraylith.wisc.edu/~khan/software/gnu-win32/ .
Â
I also downloaded a patch Tcl 8.0.4 diffs from
Mumit Khan at the same site and applied it. I also had earlier
downloaded and installed Munit's binary build for Tcl/Tk 8.0.4, Tix, and BLT
2.4g for Cygwin b20 from the same web page. However I now need a complete
source tree for another project that depends on being able to access the
tclusing more then just tclConfig.sh. Â I then attempted to build
tcl8.0.4 from the patched sources. Note: Complied with -U_WIN32 added to
Makefile after running configure I think this is necessary otherwise
generic/tclPort.h includes "../win/tclWinPort.h" instead of
"../unix/tclUnixPort.h"
Â
I received the following warnings and
errors. The library appeared to build but is unusable because of the many
undefined references.
Â
Been working on this with only a couple hours
sleep in the last two days and could use some suggestions.
Â
Hope somebody can help. TIA Allan
Iverson
Â
 ./../generic/tclCmdIL.c: In
function `Tcl_LsearchObjCmd': ./../generic/tclCmdIL.c:2379: warning: passing
arg 3 of `strncasecmp'
                                                     Â
as unsigned due to prototype  // Probably OK
Â
./../generic/tclEnv.c: In function
`TclCygwin32Putenv': ./../generic/tclEnv.c:779: warning: implicit declaration
of function
                                               Â
`SetEnvironmentVariable'
Â
 // This is really a problem.
`SetEnvironmentVariable' defined in  // Functions.h?? If I
expressly include Functions.h all hell breaks  // loose because of
-U_WIN32
Â
./../generic/tclEnv.c:799: warning: implicit
declaration of function
                                               Â
`cygwin32_posix_to_win32_path_list_buf_size'
Â
 // This is really a problem.
'cygwin32_posix_to_win32_path_list_buf_size' Â // defined in cygwin.h
??/ I wouldn't even try to expressly include  // cygwin.h after seeing
the problems above.
Â
./../generic/tclEnv.c:800: warning: passing arg
1 of `alloca' as
                                               Â
unsigned due to prototype
Â
 // Probably OK
Â
./../generic/tclEnv.c:801: warning: implicit
declaration of function
                                               Â
`cygwin32_posix_to_win32_path_list'
Â
 // This is really a problem.
'cygwin32_posix_to_win32_path_list' defined  // in cygwin.h
??
Â
./../generic/tclEnv.c: At top
level: ./../generic/tclEnv.c:740: warning: `TclCygwin32Putenv' defined but
not used
Â
 // This causes link problems later
on
Â
./../generic/tclIOSock.c: In function
`TclSockGetPort': ./../generic/tclIOSock.c:48: warning: passing arg 1 of
`__ntohs'
                                                  Â
with different width due to prototype
Â
 // Why does Cygwin define __ntohs
differently then POSIX
Â
./../generic/tclProc.c: In function
`TclCreateProc': ./../generic/tclProc.c:192: warning: `localPtr' might be
used
                                                 Â
uninitialized in this function
Â
 // This sound like a disaster waiting to
happen
Â
./tclUnixChan.c: In function
`TcpGetOptionProc': ./tclUnixChan.c:1679: warning: passing arg 1 of `__ntohs'
                                           Â
with different width due to prototype ./tclUnixChan.c:1722: warning: passing
arg 1 of `__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: In function
`CreateSocketAddress': ./tclUnixChan.c:2011: warning: passing arg 1 of
`__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: In function
`TcpAccept': ./tclUnixChan.c:2258: warning: passing arg 1 of `__ntohs'
                                           Â
with different width due to prototype  // See above
Â
./tclUnixChan.c: At top
level: ./tclUnixChan.c:760: warning: `TtyGetSpeed' defined but not
used ./tclUnixChan.c:805: warning: `TtyGetBaud' defined but not
used
Â
 // Both probably ok but as I didn't get
very far in the link  // step who knows
Â
./tclUnixFCmd.c: In function
`TclpCopyFile': ./tclUnixFCmd.c:309: warning: implicit declaration of
function `mknod'
Â
 // This used to be a sub under Windows NT
- Now I can't even find where  // is it defined Most
Importantly what can I do about it
Â
./tclUnixFCmd.c: In function
`GetGroupAttribute': ./tclUnixFCmd.c:943: warning: passing arg 1 of
`getgrgid'
                                           Â
with different width due to prototype
 // I would think these might get
through OK
Â
./tclUnixFCmd.c: In function
`GetOwnerAttribute': ./tclUnixFCmd.c:987: warning: passing arg 1 of
`getpwuid'
                                          Â
with different width due to prototype
 // I would think these might get
through OK
Â
./tclUnixFCmd.c: In function
`GetPermissionsAttribute': ./tclUnixFCmd.c:1031: warning: long unsigned int
format, mode_t arg (arg 3)
 // I would think these my get through
OK
Â
./tclUnixFCmd.c: In function
`SetGroupAttribute': ./tclUnixFCmd.c:1083: warning: passing arg 2 of `chown'
                                            Â
with different width due to prototype ./tclUnixFCmd.c:1083: warning: negative
integer
                                             Â
implicitly converted to unsigned type   // I though -1 was OK
to use as the second argument in chown
Â
./tclUnixFCmd.c:1083: warning: passing arg 3 of
`chown'
                                            Â
with different width due to prototype
Â
 // should be OK
Â
./tclUnixFCmd.c: In function
`SetOwnerAttribute': ./tclUnixFCmd.c:1138: warning: passing arg 2 of `chown'
with
                                            Â
different width due to prototype ./tclUnixFCmd.c:1138: warning: passing arg 3
of `chown'
                                             Â
with different width due to prototype ./tclUnixFCmd.c:1138: warning: negative
integer implicitly converted to unsigned type
 // Same story different
location
Â
./tclUnixPipe.c: In function
`TclpCreateProcess': ./tclUnixPipe.c:358: warning: implicit declaration of
function `vfork'
Â
i586-cygwin32/lib/libcygwin.a(libccrt0.o)(.data+0x4):libccrt0.cc:
multiple
               Â
definition of
                                                                Â
`environ' i586-cygwin32/lib/libc.a(environ.o)(.data+0x4):environ.c: first
defined here
Â
i586-cygwin32/lib/libcygwin.a(libccrt0.o)(.data+0x0):libccrt0.cc:
multiple
                      Â
definition of
                                                                Â
`_impure_ptr' i586-cygwin32/lib/libc.a(impure.o)(.data+0x2ec):impure.c: first
defined here
Â
 // I Haven't a clue where these multiple
definitions are coming from  // I'm worried it might be because of the
complier upgrade I did at the  // startof all this
Â
/usr/tcl8.0.4/unix/libtcl8.0.a(tclEnv.o): In
function `TclCygwin32Putenv': /usr/tcl8.0.4/unix/./../generic/tclEnv.c:779:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:783:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:790:
undefined reference to
`SetEnvironmentVariable' /usr/tcl8.0.4/unix/./../generic/tclEnv.c:804:
undefined reference to `SetEnvironmentVariable'
Â
/usr/tcl8.0.4/unix/libtcl8.0.a(tclUnixFCmd.o):
In function `TclpCopyFile': /usr/tcl8.0.4/unix/./tclUnixFCmd.c:315: undefined
reference to `mkfifo' Â // What lib is `mkfifo'Â in obviously if got
past the complier without an  // implicit declaration so
something must be missing from my lib path
Â
i586-cygwin32/lib/libc.a(execvp.o): In function
`execvp': /home/noer/src/b20/comp-tools/devo/newlib/libc/posix/execvp.c:69:
undefined reference to `posix_path_list_p'
Â
collect2: ld returned 1 exit status make: ***
[tclsh] Error 1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
1999-11-19 15:42 ` s.rekow
@ 1999-11-30 23:39 ` s.rekow
0 siblings, 0 replies; 6+ messages in thread
From: s.rekow @ 1999-11-30 23:39 UTC (permalink / raw)
To: Allan S Iverson, Cygwin Mail List
> I am trying to compile TCL 8.0.4 using Cygwin b20 with GCC-2.95.2
downloaded from
> www.xraylith.wisc.edu/~khan/software/gnu-win32/.
maybe off-topic but:
Jeffrey Hobbs, tcl-corehacker at scriptics.com wrote somewhere:
"There is actually a buglet in 8.0.4 (not 8.0.5) and 8.1-8.2.0 (fixed
in 8.2.1) where the above cases are equal (both will be compiled).
Tcl was being overaggressive in trying to compile procs, and was
deciding that simple $vars are OK to compile in. This is actually
not true, since expr has always had double-evaluation semantics.
8.0.5 and 8.2.1+ will behave as expected, the others will not."
tcl8.0.5 is the last patchlvl for 8.0, tcl8.1 - 8.2.0 are not very stable
and tcl8.2.2 also fixed a bunch of memleaks
uhm, maybe you should use tcl8.0.5 or 8.2.2?
Regards,
S.Rekow
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
1999-11-17 20:45 Earnie Boyd
@ 1999-11-30 23:39 ` Earnie Boyd
0 siblings, 0 replies; 6+ messages in thread
From: Earnie Boyd @ 1999-11-30 23:39 UTC (permalink / raw)
To: Allan S Iverson, Cygwin Mail List
--- Allan S Iverson <allaniverson@sprynet.com> wrote:
-8<-
>
> I then attempted to build tcl8.0.4 from the patched sources.
> Note: Complied with -U_WIN32 added to Makefile after running configure
> I think this is necessary otherwise generic/tclPort.h includes
> "../win/tclWinPort.h" instead of "../unix/tclUnixPort.h"
>
You can't do that without some modifications to the cygwin header files. There
are definitions dependent upon the _WIN32 being defined.
This has been discussed before well in the past. See the archives for more detail.
=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade
@ 1999-11-17 20:45 Earnie Boyd
1999-11-30 23:39 ` Earnie Boyd
0 siblings, 1 reply; 6+ messages in thread
From: Earnie Boyd @ 1999-11-17 20:45 UTC (permalink / raw)
To: Allan S Iverson, Cygwin Mail List
--- Allan S Iverson <allaniverson@sprynet.com> wrote:
-8<-
>
> I then attempted to build tcl8.0.4 from the patched sources.
> Note: Complied with -U_WIN32 added to Makefile after running configure
> I think this is necessary otherwise generic/tclPort.h includes
> "../win/tclWinPort.h" instead of "../unix/tclUnixPort.h"
>
You can't do that without some modifications to the cygwin header files. There
are definitions dependent upon the _WIN32 being defined.
This has been discussed before well in the past. See the archives for more detail.
=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-11-30 23:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-17 20:04 Help compiling TCL 8.0.3 with GCC-2.95.2 Upgrade Allan S Iverson
1999-11-19 15:42 ` s.rekow
1999-11-30 23:39 ` s.rekow
1999-11-30 23:39 ` Allan S Iverson
1999-11-17 20:45 Earnie Boyd
1999-11-30 23:39 ` Earnie Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).