public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/45872] New: [4.5 Regression] java/net/natVMInetAddress.cc:42:52: error: declaration of C function 'int gethostname(char*, int)' conflicts
Date: Sun, 03 Oct 2010 15:18:00 -0000	[thread overview]
Message-ID: <bug-45872-4@http.gcc.gnu.org/bugzilla/> (raw)

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.


             reply	other threads:[~2010-10-03 15:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-03 15:18 dominiq at lps dot ens.fr [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-45872-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).