public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32
@ 2004-07-11 9:21 aaronavay62 at aaronwl dot com
2004-07-11 19:02 ` [Bug java/16472] " mckinlay at redhat dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-07-11 9:21 UTC (permalink / raw)
To: java-prs
The recent patch here:
http://gcc.gnu.org/ml/java-patches/2004-q2/msg00441.html
causes bootstrap to fail on i686-pc-mingw32 because MinGW lacks the non-C-
standard POSIX function ftruncate. It does, however, have a function named
_chsize prototyped in <io.h> with compatible parameters and similar semantics.
I'm submitting a bug report rather than a patch because I'm not exactly sure
how what the most appropriate method of fixing this is.
Exact errors follow:
gcc -DHAVE_CONFIG_H -I. -I../../../src/cvs/head/gcc/fastjar -I. -I. -
I../../../src/cvs/head/gcc/fastjar -
I../../../src/cvs/head/gcc/fastjar/../zlib -
I../../../src/cvs/head/gcc/fastjar/../include -DWITH_SHIFT_DOWN -W -Wall -
pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c -
o jar-jartool.o `test -f 'jartool.c' ||
echo '../../../src/cvs/head/gcc/fastjar/'`jartool.c
../../../src/cvs/head/gcc/fastjar/jartool.c: In function `main':
../../../src/cvs/head/gcc/fastjar/jartool.c:578: warning: implicit declaration
of function 'ftruncate'
...
gcc -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-
strings -g -O2 -o jar.exe jar-jartool.o jar-dostime.o jar-compress.o jar-
pushback.o jar-shift.o ./../zlib/libz.a -L/../zlib//aaronwl/cs/env/mingw-head-
head-head/lib/gcc/i686-pc-mingw32/3.5.0 ../libiberty/libiberty.a
jar-jartool.o(.text+0x38a4): In function `main':
c:/aaronwl/cs/compilers/gcc/build/mingw-
head/fastjar/../../../src/cvs/head/gcc/fastjar/jartool.c:578: undefined
reference to `ftruncate'
--
Summary: jartool.c uses ftruncate, nonexistant on mingw32
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aaronavay62 at aaronwl dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC host triplet: i686-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
2004-07-11 19:02 ` [Bug java/16472] " mckinlay at redhat dot com
@ 2004-07-11 19:02 ` mckinlay at redhat dot com
2004-07-11 22:05 ` aaronavay62 at aaronwl dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-11 19:02 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-07-11 19:02 -------
Could you test this patch? Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
@ 2004-07-11 19:02 ` mckinlay at redhat dot com
2004-07-11 19:02 ` mckinlay at redhat dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-11 19:02 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-07-11 19:02 -------
Created an attachment (id=6723)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6723&action=view)
Proposed patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
2004-07-11 19:02 ` [Bug java/16472] " mckinlay at redhat dot com
2004-07-11 19:02 ` mckinlay at redhat dot com
@ 2004-07-11 22:05 ` aaronavay62 at aaronwl dot com
2004-07-12 4:06 ` [Bug java/16472] [3.5 Regression] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-07-11 22:05 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aaronavay62 at aaronwl dot com 2004-07-11 22:05 -------
I'll get back to you in a bit on this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (2 preceding siblings ...)
2004-07-11 22:05 ` aaronavay62 at aaronwl dot com
@ 2004-07-12 4:06 ` pinskia at gcc dot gnu dot org
2004-07-14 22:25 ` aaronavay62 at aaronwl dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-12 4:06 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Keywords| |build
Summary|jartool.c uses ftruncate, |[3.5 Regression] jartool.c
|nonexistant on mingw32 |uses ftruncate, nonexistant
| |on mingw32
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (3 preceding siblings ...)
2004-07-12 4:06 ` [Bug java/16472] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-07-14 22:25 ` aaronavay62 at aaronwl dot com
2004-07-14 22:28 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-07-14 22:25 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aaronavay62 at aaronwl dot com 2004-07-14 22:25 -------
This bootstraps and appears to work correctly on my i686-pc-mingw32
installation. Sorry for the delay; only so many cycles to go around.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (4 preceding siblings ...)
2004-07-14 22:25 ` aaronavay62 at aaronwl dot com
@ 2004-07-14 22:28 ` pinskia at gcc dot gnu dot org
2004-07-19 20:05 ` mckinlay at redhat dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-14 22:28 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-14 22:28:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (5 preceding siblings ...)
2004-07-14 22:28 ` pinskia at gcc dot gnu dot org
@ 2004-07-19 20:05 ` mckinlay at redhat dot com
2004-07-19 20:08 ` cvs-commit at gcc dot gnu dot org
2004-07-19 20:10 ` mckinlay at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-19 20:05 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-07-19 20:05 -------
Thanks Aaron - I am checking in the patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (6 preceding siblings ...)
2004-07-19 20:05 ` mckinlay at redhat dot com
@ 2004-07-19 20:08 ` cvs-commit at gcc dot gnu dot org
2004-07-19 20:10 ` mckinlay at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-19 20:08 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-19 20:08 -------
Subject: Bug 16472
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bryce@gcc.gnu.org 2004-07-19 20:08:20
Modified files:
fastjar : ChangeLog config.h.in configure configure.ac
jartool.c
Log message:
2004-07-11 Bryce McKinlay <mckinlay@redhat.com>
PR java/16472
* configure.ac: Check for ftruncate() and _chsize().
* jartool.c (main): Use _chsize if ftruncate not available.
* configure, config.h.in: Rebuilt.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/fastjar/ChangeLog.diff?cvsroot=gcc&r1=1.71&r2=1.72
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/fastjar/config.h.in.diff?cvsroot=gcc&r1=1.11&r2=1.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/fastjar/configure.diff?cvsroot=gcc&r1=1.19&r2=1.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/fastjar/configure.ac.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/fastjar/jartool.c.diff?cvsroot=gcc&r1=1.27&r2=1.28
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/16472] [3.5 Regression] jartool.c uses ftruncate, nonexistant on mingw32
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
` (7 preceding siblings ...)
2004-07-19 20:08 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-19 20:10 ` mckinlay at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-19 20:10 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-07-19 20:10 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16472
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-07-19 20:10 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-11 9:21 [Bug java/16472] New: jartool.c uses ftruncate, nonexistant on mingw32 aaronavay62 at aaronwl dot com
2004-07-11 19:02 ` [Bug java/16472] " mckinlay at redhat dot com
2004-07-11 19:02 ` mckinlay at redhat dot com
2004-07-11 22:05 ` aaronavay62 at aaronwl dot com
2004-07-12 4:06 ` [Bug java/16472] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-14 22:25 ` aaronavay62 at aaronwl dot com
2004-07-14 22:28 ` pinskia at gcc dot gnu dot org
2004-07-19 20:05 ` mckinlay at redhat dot com
2004-07-19 20:08 ` cvs-commit at gcc dot gnu dot org
2004-07-19 20:10 ` mckinlay at redhat dot com
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).