public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/27892]  New: gij.cc:104: error: 'setenv' was not declared in this scope
@ 2006-06-04 14:49 danglin at gcc dot gnu dot org
  2006-06-05 14:11 ` [Bug libgcj/27892] " tromey at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-06-04 14:49 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 -pthread -fdollars-in-identifiers -Wswitch-enum
-
D_FILE_OFFSET_BITS=64 -I/usr/include/X11R6 -Wextra -Wall -D_GNU_SOURCE
-DPREFIX=
\"/opt/gnu/gcc/gcc-4.2.0\" -DLIBDIR=\"/opt/gnu/gcc/gcc-4.2.0/lib\"
-DJAVA_HOME=\
"/opt/gnu/gcc/gcc-4.2.0\"
-DBOOT_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\"
-DG
CJ_ENDORSED_DIRS=\"/opt/gnu/gcc/gcc-4.2.0/share/java/gcj-endorsed\"
-DGCJ_VERSIO
NED_LIBDIR=\"/opt/gnu/gcc/gcc-4.2.0/lib/gcj-4.2.0\" -DPATH_SEPARATOR=\":\"
-DLIB
GCJ_DEFAULT_DATABASE=\"/opt/gnu/gcc/gcc-4.2.0/lib/gcj-4.2.0/classmap.db\"
-DLIBG
CJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.2.0/classmap.db\"
-DTOOLEXECLIBDIR=\"/opt/
gnu/gcc/gcc-4.2.0/lib\" -g -O2 -MT gij.lo -MD -MP -MF .deps/gij.Tpo -c
../../../
gcc/libjava/gij.cc  -fPIC -DPIC -o .libs/gij.o
../../../gcc/libjava/gij.cc: In function 'int main(int, const char**)':
../../../gcc/libjava/gij.cc:104: error: 'setenv' was not declared in this scope
make[3]: *** [gij.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libjav
a'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/libjav
a'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/mnt/gnu/gcc-3.3/objdir'
make: *** [bootstrap] Error 2
Sat Jun  3 22:03:34 EDT 2006

This was introduced by the following change:

2006-05-30  Thomas Fitzsimmons  <fitzsim@redhat.com>

        * gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
        and re-exec self.


-- 
           Summary: gij.cc:104: error: 'setenv' 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=27892


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
@ 2006-06-05 14:11 ` tromey at gcc dot gnu dot org
  2006-06-05 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-05 14:11 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from tromey at gcc dot gnu dot org  2006-06-05 14:11 -------
Thanks for the report.
What should we use on this platform in place of setenv?
Or, if it has setenv, where is it declared?


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-05 14:11:43
               date|                            |


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


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
  2006-06-05 14:11 ` [Bug libgcj/27892] " tromey at gcc dot gnu dot org
@ 2006-06-05 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
  2006-06-05 19:14 ` r_ovidius at eml dot cc
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2006-06-05 16:03 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2006-06-05 16:03 -------
Subject: Re:  gij.cc:104: error: 'setenv' was not declared in this scope

> What should we use on this platform in place of setenv?

putenv?

> Or, if it has setenv, where is it declared?

There is a version in libiberty but I don't see a declaration.  As far
as I know, setenv has never been supported on HP-UX.

Dave


-- 


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


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
  2006-06-05 14:11 ` [Bug libgcj/27892] " tromey at gcc dot gnu dot org
  2006-06-05 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2006-06-05 19:14 ` r_ovidius at eml dot cc
  2006-06-05 20:00 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: r_ovidius at eml dot cc @ 2006-06-05 19:14 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from r_ovidius at eml dot cc  2006-06-05 19:14 -------
Same on mingw.


-- 

r_ovidius at eml dot cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r_ovidius at eml dot cc


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


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-06-05 19:14 ` r_ovidius at eml dot cc
@ 2006-06-05 20:00 ` tromey at gcc dot gnu dot org
  2006-06-05 20:32 ` tromey at gcc dot gnu dot org
  2006-06-05 20:32 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-05 20:00 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from tromey at gcc dot gnu dot org  2006-06-05 20:00 -------
Created an attachment (id=11598)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11598&action=view)
patch to use putenv

Please try this patch.
If it works for you I will check it in.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-06-05 20:00 ` tromey at gcc dot gnu dot org
@ 2006-06-05 20:32 ` tromey at gcc dot gnu dot org
  2006-06-05 20:32 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-05 20:32 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from tromey at gcc dot gnu dot org  2006-06-05 20:32 -------
Subject: Bug 27892

Author: tromey
Date: Mon Jun  5 20:32:33 2006
New Revision: 114410

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114410
Log:
        PR libgcj/27892:
        * gij.cc (main): Use putenv.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/gij.cc


-- 


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


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

* [Bug libgcj/27892] gij.cc:104: error: 'setenv' was not declared in this scope
  2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-06-05 20:32 ` tromey at gcc dot gnu dot org
@ 2006-06-05 20:32 ` tromey at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-06-05 20:32 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from tromey at gcc dot gnu dot org  2006-06-05 20:32 -------
Fix checked in.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-04 14:49 [Bug libgcj/27892] New: gij.cc:104: error: 'setenv' was not declared in this scope danglin at gcc dot gnu dot org
2006-06-05 14:11 ` [Bug libgcj/27892] " tromey at gcc dot gnu dot org
2006-06-05 16:03 ` dave at hiauly1 dot hia dot nrc dot ca
2006-06-05 19:14 ` r_ovidius at eml dot cc
2006-06-05 20:00 ` tromey at gcc dot gnu dot org
2006-06-05 20:32 ` tromey at gcc dot gnu dot org
2006-06-05 20:32 ` tromey 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).