public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
@ 2010-10-03 15:18 dominiq at lps dot ens.fr
  2010-10-03 15:50 ` [Bug bootstrap/45872] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-10-03 15:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

           Summary: [4.5 Regression] java/net/natVMInetAddress.cc:42:52:
                    error: declaration of C function 'int
                    gethostname(char*, int)' conflicts
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
              Host: x86_64-apple-darwin10.4
            Target: x86_64-apple-darwin10.4
             Build: x86_64-apple-darwin10.4


Bootstrapping 4.5 revision 164915 on x86_64-apple-darwin10.4 fails with

libtool: compile:  /opt/gcc/4.5_build/./gcc/xgcc -shared-libgcc
-B/opt/gcc/4.5_build/./gcc -nostdinc++
-L/opt/gcc/4.5_build/x86_64-apple-darwin10/libstdc++-v3/src
-L/opt/gcc/4.5_build/x86_64-apple-darwin10/libstdc++-v3/src/.libs
-B/opt/gcc/gcc4.5/x86_64-apple-darwin10/bin/
-B/opt/gcc/gcc4.5/x86_64-apple-darwin10/lib/ -isystem
/opt/gcc/gcc4.5/x86_64-apple-darwin10/include -isystem
/opt/gcc/gcc4.5/x86_64-apple-darwin10/sys-include -DHAVE_CONFIG_H -I.
-I../../../4.5_work/libjava -I./include -I./gcj -I../../../4.5_work/libjava
-Iinclude -I../../../4.5_work/libjava/include
-I../../../4.5_work/libjava/classpath/include -Iclasspath/include
-I../../../4.5_work/libjava/classpath/native/fdlibm
-I../../../4.5_work/libjava/../boehm-gc/include -I../boehm-gc/include
-I../../../4.5_work/libjava/libltdl -I../../../4.5_work/libjava/libltdl
-I../../../4.5_work/libjava/.././libjava/../gcc
-I../../../4.5_work/libjava/../libffi/include -I../libffi/include
-I/opt/sw64/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers
-Wswitch-enum -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -Wextra -Wall
-D_GNU_SOURCE -DPREFIX=\"/opt/gcc/gcc4.5\"
-DTOOLEXECLIBDIR=\"/opt/gcc/gcc4.5/lib\" -DJAVA_HOME=\"/opt/gcc/gcc4.5\"
-DBOOT_CLASS_PATH=\"/opt/gcc/gcc4.5/share/java/libgcj-4.5.2.jar\"
-DJAVA_EXT_DIRS=\"/opt/gcc/gcc4.5/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/opt/gcc/gcc4.5/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/opt/gcc/gcc4.5/lib/gcj-4.5.2-11\"
-DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\"
-DLIBGCJ_DEFAULT_DATABASE=\"/opt/gcc/gcc4.5/lib/gcj-4.5.2-11/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.5.2-11/classmap.db\" -g -O2 -MT
java/net/natVMInetAddress.lo -MD -MP -MF java/net/.deps/natVMInetAddress.Tpo -c
java/net/natVMInetAddress.cc  -fno-common -DPIC -o
java/net/.libs/natVMInetAddress.o
java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int
gethostname(char*, int)' conflicts with
/usr/include/unistd.h:455:6: error: previous declaration 'int
gethostname(char*, size_t)' here
make[3]: *** [java/net/natVMInetAddress.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-target-libjava] Error 2
make: *** [all] Error 2

Note that this step passes with -m32.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
@ 2010-10-03 15:50 ` dominiq at lps dot ens.fr
  2010-10-03 19:41 ` [Bug libgcj/45872] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-10-03 15:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.5.3                       |4.5.2

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-10-03 15:50:44 UTC ---
Bootstrapped after replacing 'int' with 'size_t' in
x86_64-apple-darwin10/libjava/java/net/natVMInetAddress.cc.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
  2010-10-03 15:50 ` [Bug bootstrap/45872] " dominiq at lps dot ens.fr
@ 2010-10-03 19:41 ` rguenth at gcc dot gnu.org
  2010-10-03 20:00 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-03 19:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
          Component|bootstrap                   |libgcj

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-03 19:41:02 UTC ---
Which release works?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
  2010-10-03 15:50 ` [Bug bootstrap/45872] " dominiq at lps dot ens.fr
  2010-10-03 19:41 ` [Bug libgcj/45872] " rguenth at gcc dot gnu.org
@ 2010-10-03 20:00 ` dominiq at lps dot ens.fr
  2010-11-03 15:42 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-10-03 20:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-10-03 20:00:46 UTC ---
> Which release works?

157991;-(


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2010-10-03 20:00 ` dominiq at lps dot ens.fr
@ 2010-11-03 15:42 ` rguenth at gcc dot gnu.org
  2010-11-12 14:19 ` rguenth at gcc dot gnu.org
  2010-11-22 14:22 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-03 15:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2010-11-03 15:42 ` rguenth at gcc dot gnu.org
@ 2010-11-12 14:19 ` rguenth at gcc dot gnu.org
  2010-11-22 14:22 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-12 14:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.11.12 14:01:03
     Ever Confirmed|0                           |1

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-12 14:01:03 UTC ---
Please figure out why configury doesn't find HAVE_GETHOSTNAME_DECL set.

Is 4.6 also affected?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libgcj/45872] [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
  2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
                   ` (4 preceding siblings ...)
  2010-11-12 14:19 ` rguenth at gcc dot gnu.org
@ 2010-11-22 14:22 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-11-22 14:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45872

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-11-22 14:19:05 UTC ---
> Is 4.6 also affected?

No, otherwise I would have reported it.

This seems fixed gcc-4_5-branch revision 167027, so closing. For the record
grepping HAVE_GETHOSTNAME_DECL gave

[macbook] gcc/4.5_build% grep -r HAVE_GETHOSTNAME_DECL *
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:#define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.status:D["HAVE_GETHOSTNAME_DECL"]="
1"
x86_64-apple-darwin10/i386/libjava/include/config.h:#define
HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/java/net/natVMInetAddress.cc:#ifndef
HAVE_GETHOSTNAME_DECL
x86_64-apple-darwin10/libjava/include/config.h:/* #undef HAVE_GETHOSTNAME_DECL
*/
x86_64-apple-darwin10/libjava/java/net/natVMInetAddress.cc:#ifndef
HAVE_GETHOSTNAME_DECL

for revision 164915, while it gave

x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.log:#define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/config.status:D["HAVE_GETHOSTNAME_DECL"]="
1"
x86_64-apple-darwin10/i386/libjava/include/config.h:#define
HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/i386/libjava/java/net/natVMInetAddress.cc:#ifndef
HAVE_GETHOSTNAME_DECL
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:| #define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.log:#define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/config.status:D["HAVE_GETHOSTNAME_DECL"]=" 1"
x86_64-apple-darwin10/libjava/include/config.h:#define HAVE_GETHOSTNAME_DECL 1
x86_64-apple-darwin10/libjava/java/net/natVMInetAddress.cc:#ifndef
HAVE_GETHOSTNAME_DECL

for revision 167027. I have no idea why ' #undef HAVE_GETHOSTNAME_DECL' got
commented in x86_64-apple-darwin10/libjava/include/config.h for the failing
case.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-22 14:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-03 15:18 [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts dominiq at lps dot ens.fr
2010-10-03 15:50 ` [Bug bootstrap/45872] " dominiq at lps dot ens.fr
2010-10-03 19:41 ` [Bug libgcj/45872] " rguenth at gcc dot gnu.org
2010-10-03 20:00 ` dominiq at lps dot ens.fr
2010-11-03 15:42 ` rguenth at gcc dot gnu.org
2010-11-12 14:19 ` rguenth at gcc dot gnu.org
2010-11-22 14:22 ` dominiq at lps dot ens.fr

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).