delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/11/06/14:36:32

Date: Wed, 06 Nov 2002 14:36:07 -0500
From: 2boxers <2boxers AT comcast DOT net>
Subject: Re: problems making linux build/host for target msdosdjgpp
To: djgpp-workers AT delorie DOT com, djgpp AT delorie DOT com, DJ Delorie <dj AT delorie DOT com>
Message-id: <00c401c285cb$c07f2ad0$021ca8c0@helm>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-Priority: 3
X-MSMail-priority: Normal
Reply-To: djgpp-workers AT delorie DOT com

This is a multi-part message in MIME format.

--Boundary_(ID_rOIaxafiCQVVJtEWaFwg5g)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

>When I make, I get the following error:
>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/xgcc -B/root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/ ->B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/bin/ -B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/lib/ ->isystem /usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-3.2->src/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../../gcc-3.2-src/libiberty/getpwd.c
>../../../gcc-3.2-src/libiberty/getpwd.c: In function `getpwd':
>../../../gcc-3.2-src/libiberty/getpwd.c:86: `PATH_MAX' undeclared (first use in this function)
>../../../gcc-3.2-src/libiberty/getpwd.c:86: (Each undeclared identifier is reported only once
>../../../gcc-3.2-src/libiberty/getpwd.c:86: for each function it appears in.)
>make[1]: *** [getpwd.o] Error 1

After consulting the gcc.gnu.org website some more, I discovered a
little blerb at the bottom of this page
http://gcc.gnu.org/install/configure.html
which mentions --with-headers=dir 
I added
--with-headers=/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include

which corrected the problem with MIN_LONG and PATH_MAX being
undeclared in getpwd.c and fibheap.c  

Yay, another hurdle crossed !!!  (and there have been lots)

and for the next hurdle...
'make' still terminates with these errors:

In file included from
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/locale_facets.h:63,
                 from
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/basic_ios.h:41,
                 from
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/ios:51,
                 from
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/istream:44,
                 from
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/fstream:45,
                 from
../../../../gcc-3.2-src/libstdc++-v3/src/globals.cc:30:
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:46:
`
   _U' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:47:
`
   _L' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48:
`
   _U' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48:
`
   _L' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:49:
`
   _N' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50:
`
   _X' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50:
`
   _N' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:51:
`
   _S' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:
`
   _P' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:
`
   _U' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:
`
   _L' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:
`
   _N' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:
`
   _B' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:
`
   _P' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:
`
   _U' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:
`
   _L' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:
`
   _N' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:54:
`
   _C' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:55:
`
   _P' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:
`
   _U' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:
`
   _L' was not declared in this scope
/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:
`
   _N' was not declared in this scope
make[3]: *** [globals.lo] Error 1
make[3]: Leaving directory
`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

What can be done to correct the scope problem?

Any ideas anybody?
Charles

--Boundary_(ID_rOIaxafiCQVVJtEWaFwg5g)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4919.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>&gt;When I make, I get the following 
error:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>&gt;/root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/xgcc 
-B/root/updates/gcc/djgpp/cross/gcc-3.2-obj/gcc/ 
-&gt;B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/bin/ 
-B/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/lib/ -&gt;isystem 
/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include -c -DHAVE_CONFIG_H 
-g -O2 -I. -I../../../gcc-3.2-&gt;src/libiberty/../include&nbsp; -W -Wall 
-Wtraditional -pedantic 
../../../gcc-3.2-src/libiberty/getpwd.c<BR>&gt;../../../gcc-3.2-src/libiberty/getpwd.c: 
In function `getpwd':<BR>&gt;../../../gcc-3.2-src/libiberty/getpwd.c:86: 
`PATH_MAX' undeclared (first use in this 
function)<BR>&gt;../../../gcc-3.2-src/libiberty/getpwd.c:86: (Each undeclared 
identifier is reported only 
once<BR>&gt;../../../gcc-3.2-src/libiberty/getpwd.c:86: for each function it 
appears in.)<BR>&gt;make[1]: *** [getpwd.o] Error 1</FONT></DIV><FONT face=Arial 
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT>
<DIV><BR><FONT face=Arial size=2>After consulting the gcc.gnu.org website some 
more, I discovered a<BR>little blerb at the bottom of this page<BR><A 
href="http://gcc.gnu.org/install/configure.html">http://gcc.gnu.org/install/configure.html</A><BR>which 
mentions --with-headers=dir <BR>I 
added<BR>--with-headers=/usr/local/compiler/cross/gcc-3.2/i686-pc-msdosdjgpp/include</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>which corrected the problem with MIN_LONG and 
PATH_MAX being<BR>undeclared in getpwd.c and fibheap.c&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Yay, another hurdle crossed !!!&nbsp; (and there 
have been lots)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and for the next hurdle...<BR>'make' still 
terminates with these errors:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In file included 
from<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/locale_facets.h:63,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/bits/basic_ios.h:41,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/ios:51,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/istream:44,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/fstream:45,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from<BR>../../../../gcc-3.2-src/libstdc++-v3/src/globals.cc:30:<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:46:<BR>`<BR>&nbsp;&nbsp; 
_U' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:47:<BR>`<BR>&nbsp;&nbsp; 
_L' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48:<BR>`<BR>&nbsp;&nbsp; 
_U' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:48:<BR>`<BR>&nbsp;&nbsp; 
_L' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:49:<BR>`<BR>&nbsp;&nbsp; 
_N' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50:<BR>`<BR>&nbsp;&nbsp; 
_X' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:50:<BR>`<BR>&nbsp;&nbsp; 
_N' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:51:<BR>`<BR>&nbsp;&nbsp; 
_S' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:<BR>`<BR>&nbsp;&nbsp; 
_P' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:<BR>`<BR>&nbsp;&nbsp; 
_U' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:<BR>`<BR>&nbsp;&nbsp; 
_L' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:<BR>`<BR>&nbsp;&nbsp; 
_N' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:52:<BR>`<BR>&nbsp;&nbsp; 
_B' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:<BR>`<BR>&nbsp;&nbsp; 
_P' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:<BR>`<BR>&nbsp;&nbsp; 
_U' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:<BR>`<BR>&nbsp;&nbsp; 
_L' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:53:<BR>`<BR>&nbsp;&nbsp; 
_N' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:54:<BR>`<BR>&nbsp;&nbsp; 
_C' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:55:<BR>`<BR>&nbsp;&nbsp; 
_P' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:<BR>`<BR>&nbsp;&nbsp; 
_U' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:<BR>`<BR>&nbsp;&nbsp; 
_L' was not declared in this 
scope<BR>/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:56:<BR>`<BR>&nbsp;&nbsp; 
_N' was not declared in this scope<BR>make[3]: *** [globals.lo] Error 
1<BR>make[3]: Leaving 
directory<BR>`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3/src'<BR>make[2]: 
*** [all-recursive] Error 1<BR>make[2]: Leaving 
directory<BR>`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3'<BR>make[1]: 
*** [all-recursive-am] Error 2<BR>make[1]: Leaving 
directory<BR>`/root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc++-v3'<BR>make: 
*** [all-target-libstdc++-v3] Error 2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What can be done to correct the scope 
problem?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any ideas 
anybody?<BR>Charles</FONT></DIV></BODY></HTML>

--Boundary_(ID_rOIaxafiCQVVJtEWaFwg5g)--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019