Mail Archives: cygwin-developers/1998/12/10/23:02:29
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 -