public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/28234]  New: MAXHOSTNAMELEN usage in libjava
@ 2006-07-03 12:08 mbanck at debian dot org
  2006-07-03 15:04 ` [Bug libgcj/28234] " pinskia at gcc dot gnu dot org
  2006-07-03 15:37 ` mbanck at debian dot org
  0 siblings, 2 replies; 3+ messages in thread
From: mbanck at debian dot org @ 2006-07-03 12:08 UTC (permalink / raw)
  To: java-prs

libjava/java/net/natInetAddressPosix.cc is broken on system which have no limit
for the hostname length (i.e., GNU):

/build/buildd/gcj-4.1-4.1.1/build/./gcc/xgcc -shared-libgcc
-B/build/buildd/gcj-4.1-4.1.1/build/./gcc -nostdinc++
-L/build/buildd/gcj-4.1-4.1.1/build/i486-gnu/libstdc++-v3/src
-L/build/buildd/gcj-4.1-4.1.1/build/i486-gnu/libstdc++-v3/src/.libs
-B/usr/i486-gnu/bin/ -B/usr/i486-gnu/lib/ -isystem /usr/i486-gnu/include
-isystem /usr/i486-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../src/libjava
-I./include -I./gcj -I../../../src/libjava -Iinclude
-I../../../src/libjava/include -I../../../src/libjava/classpath/include
-I../../../src/libjava/classpath/native/fdlibm
-I../../../src/libjava/../boehm-gc/include -I../boehm-gc/include
-I../../../src/libjava/libltdl -I../../../src/libjava/libltdl
-I../../../src/libjava/.././libjava/../gcc
-I../../../src/libjava/../libffi/include -I../libffi/include -fno-rtti
-fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Wextra -Wall
-D_GNU_SOURCE -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -DJAVA_HOME=\"/usr\"
-DBOOT_CLASS_PATH=\"/usr/share/java/libgcj-4.1.2.jar\"
-DJAVA_EXT_DIRS=\"/usr/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/share/java/gcj-endorsed\"
-DLIBGCJ_DEFAULT_DATABASE=\"/var/lib/gcj-4.1/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.1/classmap.db\"
-DTOOLEXECLIBDIR=\"/usr/lib\" -g -O2 -D_GNU_SOURCE -MT
java/net/natInetAddress.lo -MD -MP -MF java/net/.deps/natInetAddress.Tpo -c
java/net/natInetAddress.cc  -fPIC -DPIC -o java/net/.libs/natInetAddress.o
../../../src/libjava/java/lang/Class.h: In member function 'java::lang::Class*
java::lang::Class::getComponentType()':
../../../src/libjava/java/lang/Class.h:354: warning: dereferencing type-punned
pointer will break strict-aliasing rules
java/net/natInetAddress.cc: In static member function 'static
java::lang::String* java::net::InetAddress::getLocalHostname()':
java/net/natInetAddress.cc:287: error: 'MAXHOSTNAMELEN' was not declared in
this scope
java/net/natInetAddress.cc:288: error: 'buffer' was not declared in this scope
java/net/natInetAddress.cc:290: error: 'buffer' was not declared in this scope
make[6]: *** [java/net/natInetAddress.lo] Error 1
make[6]: Leaving directory `/build/buildd/gcj-4.1-4.1.1/build/i486-gnu/libjava'

Source is from gcj-4.1_4.1.1-6 from Debian unstable.


-- 
           Summary: MAXHOSTNAMELEN usage in libjava
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mbanck at debian dot org
 GCC build triplet: i686-pc-gnu0.3
  GCC host triplet: i686-pc-gnu0.3
GCC target triplet: i686-pc-gnu0.3


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


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

* [Bug libgcj/28234] MAXHOSTNAMELEN usage in libjava
  2006-07-03 12:08 [Bug libgcj/28234] New: MAXHOSTNAMELEN usage in libjava mbanck at debian dot org
@ 2006-07-03 15:04 ` pinskia at gcc dot gnu dot org
  2006-07-03 15:37 ` mbanck at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-03 15:04 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-07-03 15:04 -------
(In reply to comment #0)
> libjava/java/net/natInetAddressPosix.cc is broken on system which have no limit
> for the hostname length (i.e., GNU):
s/GNU/Hurd/.

Also this is a dup of bug 21821.

*** This bug has been marked as a duplicate of 21821 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug libgcj/28234] MAXHOSTNAMELEN usage in libjava
  2006-07-03 12:08 [Bug libgcj/28234] New: MAXHOSTNAMELEN usage in libjava mbanck at debian dot org
  2006-07-03 15:04 ` [Bug libgcj/28234] " pinskia at gcc dot gnu dot org
@ 2006-07-03 15:37 ` mbanck at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: mbanck at debian dot org @ 2006-07-03 15:37 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from mbanck at debian dot org  2006-07-03 15:37 -------
> s/GNU/Hurd/.

Sure, I was merely following the GNU project's terminology here.

> Also this is a dup of bug 21821.

Maybe I am blind, but I don't see this particular issue mentioned in that bug,
nor adressed by the patches attached to it.  I thought about following up to
that PR, but as this bug is about MAXHOSTNAMELEN and #21821 is about
MAXPATHLEN, I decided to open a new bug, sorry.

Can you elaborate?


-- 


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


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

end of thread, other threads:[~2006-07-03 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 12:08 [Bug libgcj/28234] New: MAXHOSTNAMELEN usage in libjava mbanck at debian dot org
2006-07-03 15:04 ` [Bug libgcj/28234] " pinskia at gcc dot gnu dot org
2006-07-03 15:37 ` mbanck at debian dot org

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