This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

./config -luser32 error, but libuser32.a is in the usr/lib/w32apidirectory


Hopefully someone here will be able to help.

I just installed the latest version of cygwin including the gcc development
tools. But when running ./configure I get the following error

**************************************
...
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
**************************************

Here is a dump of the relevant bits from the config.log file

**************************************
...
configure:789: checking for gcc
configure:902: checking whether the C compiler (gcc  ) works
configure:918: gcc -o conftest    conftest.c  1>&5
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status
configure: failed program was:

#line 913 "configure"
#include "confdefs.h"

main(){return(0);}
**************************************

I searched google and found a reference to this problem (referenced below):
the fix was to re-install w32api to make sure that libuser32.a was installed.

http://www.cygwin.com/ml/cygwin/2001-03/msg00218.html

I re-installed w32api, libuser32.a is definitely in my "usr/lib/w32api"
directory.

As per the FAQ, I ran "cygcheck -s -v -r > cygcheck.out", however it
terminated with an error...

**************************************
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1
**************************************

The file resultant file is large, at over 17KB so I won't include it all here.
But here are what I hope are the relevant bits...

**************************************
..
automake            1.6a-1
automake-devel      1.5-5
automake-stable     1.4p5-5
bash                2.05a-3
binutils            20011002-1
bison               1.33-1
byacc               1.9-1
cygwin              1.3.10-1
flex                2.5.4-1
gcc                 2.95.3-5
gdb                 20010428-3
gdbm                1.8.0-4
libintl1            0.10.40-1
libncurses5         5.2-1
libncurses6         5.2-8
libtool             20020202a-1
libtool-devel       20020202-1
libtool-stable      1.4.2-2
make                3.79.1-5
mktemp              1.4-1
sh-utils            2.0-2
tar                 1.13.19-1
termcap             20010825-1
terminfo            5.2-1
w32api              1.2-1

**************************************

And lastly...

**************************************
  751k 2002/02/25 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/2/25 8:14
    Cygwin DLL version info:
        DLL version: 1.3.10
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 51
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Mon Feb 25 11:14:34 EST 2002
        Shared id: cygwin1S3

  555k 2001/09/19 c:\ruby\bin\cygwin-ruby16.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin-ruby16.dll" v0.0 ts=2001/9/19 5:09
  678k 2001/10/03 c:\ruby\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/5/20 20:28
    Cygwin DLL version info:
        DLL version: 1.3.2
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 39
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Sun May 20 23:28:17 EDT 2001
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\lcluke\Desktop
Last downloaded files from: ftp://archive.progeny.com/cygwin
**************************************

Thanks,
-Luke Crook


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]