public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27330]  New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
@ 2006-04-26 22:43 danglin at gcc dot gnu dot org
  2006-04-26 22:47 ` [Bug libgcj/27330] " danglin at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-04-26 22:43 UTC (permalink / raw)
  To: java-prs

/mnt/gnu/gcc-3.3/objdir/./gcc/xgcc -shared-libgcc
-B/mnt/gnu/gcc-3.3/objdir/./gc
c -nostdinc++ -L/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src
-
L/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs
-B/opt/gnu
/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-h
pux11.11/lib/ -isystem /opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/include
-isy
stem /opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/sys-include -DHAVE_CONFIG_H
-I
. -I../../../gcc/libjava -I./include -I./gcj -I../../../gcc/libjava -Iinclude
-I
../../../gcc/libjava/include -I../../../gcc/libjava/classpath/include
-Iclasspat
h/include -I../../../gcc/libjava/classpath/native/fdlibm
-I../../../gcc/libjava/
../boehm-gc/include -I../boehm-gc/include -I../../../gcc/libjava/libltdl
-I../..
/../gcc/libjava/libltdl -I../../../gcc/libjava/.././libjava/../gcc
-I../../../gc
c/libjava/../zlib -I../../../gcc/libjava/../libffi/include -I../libffi/include
-
fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OF
FSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/opt/gnu/gcc/gcc-4.2.0\"
-DL
IBDIR=\"/opt/gnu/gcc/gcc-4.2.0/lib\" -DJAVA_HOME=\"/opt/gnu/gcc/gcc-4.2.0\"
-DBO
OT_CLASS_PATH=\"/opt/gnu/gcc/gcc-4.2.0/share/java/libgcj-4.2.0.jar\"
-DJAVA_EXT_
DIRS=\"/opt/gnu/gcc/gcc-4.2.0/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/opt/gnu/gc
c/gcc-4.2.0/share/java/gcj-endorsed\"
-DLIBGCJ_DEFAULT_DATABASE=\"/opt/gnu/gcc/g
cc-4.2.0/lib/gcj-4.2.0/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4
.2.0/classmap.db\" -DTOOLEXECLIBDIR=\"/opt/gnu/gcc/gcc-4.2.0/lib\" -g -O2 -MT
gn
u/classpath/natSystemProperties.lo -MD -MP -MF
gnu/classpath/.deps/natSystemProp
erties.Tpo -c ../../../gcc/libjava/gnu/classpath/natSystemProperties.cc  -fPIC
-
DPIC -o gnu/classpath/.libs/natSystemProperties.o
../../../gcc/libjava/gnu/classpath/natSystemProperties.cc: In static member
func
tion 'static void
gnu::classpath::SystemProperties::insertSystemProperties(java:
:util::Properties*)':
../../../gcc/libjava/gnu/classpath/natSystemProperties.cc:213: error:
'getpwuid_
r' was not declared in this scope
make[3]: *** [gnu/classpath/natSystemProperties.lo] Error 1
make[3]: Leaving directory
`/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libjav
a'


-- 
           Summary: natSystemProperties.cc:213: error: 'getpwuid_r' was not
                    declared in this scope
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
  2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
@ 2006-04-26 22:47 ` danglin at gcc dot gnu dot org
  2006-04-27  1:16 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-04-26 22:47 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from danglin at gcc dot gnu dot org  2006-04-26 22:47 -------
Hmmm, the manpage says this function is obsolete.  It looks like
'_REENTRANT' and '_PTHREADS_DRAFT4' both need to be defined to get
the proto.


-- 


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


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

* [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
  2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
  2006-04-26 22:47 ` [Bug libgcj/27330] " danglin at gcc dot gnu dot org
@ 2006-04-27  1:16 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-04-27 22:33 ` andreast at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-04-27  1:16 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2006-04-27 01:16 -------
Subject: Re:  natSystemProperties.cc:213: error: 'getpwuid_r' was not declared
in this scope

> Hmmm, the manpage says this function is obsolete.  It looks like
> '_REENTRANT' and '_PTHREADS_DRAFT4' both need to be defined to get
> the proto.

Defining _PTHREADS_DRAFT4 isn't compatible with using posix threads:

# less /usr/include/pthread.h
#ifndef _PTHREAD_INCLUDED /* allows multiple inclusion */
#define _PTHREAD_INCLUDED

#ifdef _PTHREADS_DRAFT4
#    include <dce/pthread.h>
#else
#    include <sys/pthread.h>
#endif

Dave


-- 


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


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

* [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
  2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
  2006-04-26 22:47 ` [Bug libgcj/27330] " danglin at gcc dot gnu dot org
  2006-04-27  1:16 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-04-27 22:33 ` andreast at gcc dot gnu dot org
  2006-04-30 21:09 ` andreast at gcc dot gnu dot org
  2006-05-20 21:37 ` andreast at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-04-27 22:33 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from andreast at gcc dot gnu dot org  2006-04-27 22:33 -------
I'll submit the patch tommorow. It has been in my queue for a longer time.

Index: configure.ac
===================================================================
--- configure.ac        (revision 113320)
+++ configure.ac        (working copy)
@@ -811,6 +811,14 @@
        THREADLIBS='-lpthread -lrt'
        THREADSPEC='-lpthread -lrt'
        ;;
+     hppa*-hp-hpux*)
+        THREADCXXFLAGS=-pthread 
+       # boehm-gc needs some functions from librt, so link that too.
+       THREADLIBS='-lpthread -lrt'
+       THREADSPEC='-lpthread -lrt'
+       # HPUX needs REENTRANT for the _r calls.
+       AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads])
+       ;;
      *)
        THREADLIBS=-lpthread
        THREADSPEC=-lpthread


-- 

andreast at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |andreast at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-27 22:33:19
               date|                            |


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


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

* [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
  2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-04-27 22:33 ` andreast at gcc dot gnu dot org
@ 2006-04-30 21:09 ` andreast at gcc dot gnu dot org
  2006-05-20 21:37 ` andreast at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-04-30 21:09 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from andreast at gcc dot gnu dot org  2006-04-30 21:09 -------
This one works too, found by Dave.

--- configure.ac        (revision 113252)
+++ configure.ac        (working copy)
@@ -805,7 +805,7 @@
        THREADLDFLAGS=-pthread
        THREADSPEC=-lpthread
        ;;
-     alpha*-dec-osf*)
+     alpha*-dec-osf* | hppa*-hp-hpux*)
        THREADCXXFLAGS=-pthread
        # boehm-gc needs some functions from librt, so link that too.
        THREADLIBS='-lpthread -lrt'

We will submit once the libjava port is done on this arch.


-- 


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


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

* [Bug libgcj/27330] natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope
  2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-04-30 21:09 ` andreast at gcc dot gnu dot org
@ 2006-05-20 21:37 ` andreast at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-05-20 21:37 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from andreast at gcc dot gnu dot org  2006-05-20 21:37 -------
Fixed.

http://gcc.gnu.org/ml/gcc-cvs/2006-05/msg00541.html


-- 

andreast at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-05-20 21:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-26 22:43 [Bug libgcj/27330] New: natSystemProperties.cc:213: error: 'getpwuid_r' was not declared in this scope danglin at gcc dot gnu dot org
2006-04-26 22:47 ` [Bug libgcj/27330] " danglin at gcc dot gnu dot org
2006-04-27  1:16 ` dave at hiauly1 dot hia dot nrc dot ca
2006-04-27 22:33 ` andreast at gcc dot gnu dot org
2006-04-30 21:09 ` andreast at gcc dot gnu dot org
2006-05-20 21:37 ` andreast at gcc dot gnu 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).