delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/12/10/23:02:29

From: mike AT mlb DOT org (Mike Bernson)
Subject: Problem building Cross system.
10 Dec 1998 23:02:29 -0800 :
Message-ID: <3670BFD4.B0A7B56.cygnus.cygwin32.developers@mlb.org>
Reply-To: mike AT mlb DOT org
Mime-Version: 1.0
To: "cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>

I am trying to build a cross platform version Cygwin20.1. The host system
is Linux 2.0.35/debian 2.0.

configure commmand is ./configure --host=i486-pc-linux --target=i386-cygwin32 --prefix=/usr/local/win32.20 -v

When I do the build Make command fail to compile. It is the getloadagv.c
that has a problem

gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/win32.20/lib\" -DINCLUDEDIR=\"/usr/local/win32.20/include\" -c -I. -I. -I./glob \
       -g -O2 getloadavg.c -o getloadavg.o
getloadavg.c:496: storage size of `nl' isn't known
make: *** [getloadavg.o] Error 1

With the following patch getloadavg.c compiles. It is kluge but works for
me. Not sure what the correct fix is.

*** getloadavg.c.org    Fri Dec 11 00:49:41 1998
--- getloadavg.c        Fri Dec 11 00:48:54 1998
***************
*** 492,498 ****
  /* Offset in kmem to seek to read load average, or 0 means invalid.  */
  static long offset;

! #if !defined(VMS) && !defined(sgi)
  static struct nlist nl[2];
  #endif /* Not VMS or sgi */

--- 492,498 ----
  /* Offset in kmem to seek to read load average, or 0 means invalid.  */
  static long offset;

! #if !defined(VMS) && !defined(sgi) && !defined(__linux__)
  static struct nlist nl[2];
  #endif /* Not VMS or sgi */


after this fix I still get problems with install-sh not being in the correct
place. 

loading cache ./config.cache
configure: error: can not find install-sh or install.sh in .. ./..
make: *** [configure-target-newlib] Error 1

Has the cross compile been tested.

- Raw text -


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