make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make'ing make-3.18beta4 under mingw/msys - "undefined reference to `


From: Eli Zaretskii
Subject: Re: make'ing make-3.18beta4 under mingw/msys - "undefined reference to `sleep'"
Date: Fri, 30 Dec 2005 20:53:49 +0200

> From: "Markus Mauhart" <address@hidden>
> Date: Fri, 30 Dec 2005 19:24:13 +0100
> Cc: address@hidden
> 
> I built make-3.18beta4 (-> ftp://alpha.gnu.org/gnu/make) both under
> cygwin and under mingw/msys, using basically the same commands inside
> cygwin's and msys' bash:
> 
>   ---
>   srcroot=/c/usr/src
>   dstroot=/c/mau/out/cyg <------ for cygwin
>   dstroot=/c/mau/out/mss <------ for msys/mingw
>   pkg=make-3.81beta4
>   src=$srcroot/$pkg
>   dst=$dstroot/$pkg
>   [ -d $dst ] || mkdir $dst && cd $dst
>   $src/configure --enable-case-insensitive-file-system --disable-rpath
>   make CFLAGS='-O3 -s'
>   ---
> 
> 100% ok for cygwin.
> 
>  99% ok for msys -- the last build instruction fails:
> 
>   ---
>   gcc  -O3 -s   -o loadavg.exe  loadavg-getloadavg.o
>   loadavg-getloadavg.o:getloadavg.c:(.text+0xd5): undefined reference to 
> `sleep'
>   collect2: ld returned 1 exit status
>   make[2]: *** [loadavg.exe] Error 1
>   make[2]: Leaving directory `/c/mau/out/mss/make-3.81beta4'

Do I understand correctly that you built the MinGW port of Make by
running "./configure; make" from the shell's prompt?  If so, then
that's not how you should do it.  Instead, run the build_w32.bat batch
file from cmd.exe, like this:

     build_w32 gcc

(The file README.W32 explains this, I think.)

Make sure you delete config.h before you do this, so that
build_w32.bat will copy config.h.W32 to config.h and use that.

If I build the MinGW port with build_w32.bat, I don't have any
problems.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]