public inbox for
help / color / mirror / Atom feed
From: "Robert W. Hasker" <>
Subject: bootstrap/7716: can't compile getpwd.c during build
Date: Sun, 25 Aug 2002 14:06:00 -0000	[thread overview]
Message-ID: <> (raw)

>Number:         7716
>Category:       bootstrap
>Synopsis:       can't compile getpwd.c during build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 25 13:56:00 PDT 2002
>Originator:     Robert W. Hasker
>Release:        3.2
System: OSF1 V4.0 1530 alpha
Machine: alpha
host: alpha-dec-osf4.0g
build: alpha-dec-osf4.0g
target: alpha-dec-osf4.0g
configured with: ../gcc-3.2/configure --with-stabs --enable-languages=c,c++,f77,java
On the alpha, it seems HAVE_SYS_STAT_H is not being set properly.  When I
build ("make bootstrap" followed by "make install"), I get the following

        /usr2/sys/usr/local/src/b/gcc/xgcc -B/usr2/sys/usr/local/src/b/gcc/ -B/usr/local/alpha-dec-osf4.0g/bin/ -B/usr/local/alpha-dec-osf4.0g/lib/ -isystem /usr/local/alpha-dec-osf4.0g/include -c -DHAVE_CONFIG_H -g -I. -I../../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../gcc-3.2/libiberty/getpwd.c
        ../../../gcc-3.2/libiberty/getpwd.c: In function `getpwd':
        ../../../gcc-3.2/libiberty/getpwd.c:74: storage size of `dotstat' isn't known
        ../../../gcc-3.2/libiberty/getpwd.c:74: storage size of `pwdstat' isn't known
        ../../../gcc-3.2/libiberty/getpwd.c:78: warning: implicit declaration of function `getenv'
        ../../../gcc-3.2/libiberty/getpwd.c:78: warning: assignment makes pointer from integer without a cast
        ../../../gcc-3.2/libiberty/getpwd.c:80: warning: implicit declaration of function `stat'
        ../../../gcc-3.2/libiberty/getpwd.c:86: warning: implicit declaration of function `getcwd'
        ../../../gcc-3.2/libiberty/getpwd.c:89: warning: implicit declaration of function `free'
        ../../../gcc-3.2/libiberty/getpwd.c:74: warning: unused variable `dotstat'
        ../../../gcc-3.2/libiberty/getpwd.c:74: warning: unused variable `pwdstat'
        *** Exit 1
        *** Exit 1
I then edited getpwd.c to change the line
        #if HAVE_SYS_STAT_H
        #if 1
and getpwd.c builds just fine.

"make bootstrap" (which requires a number of fixes for Digial Unix; see
earlier PR'S) followed by "make install".
See description.

             reply	other threads:[~2002-08-25 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-25 14:06 Robert W. Hasker [this message]
2003-05-14  9:26 Dara Hazeghi
2003-05-14 10:52 giovannibajo
2003-05-20  1:46 Robert W. Hasker

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:

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

  git send-email \ \ \ \

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