[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: OpenLDAP MinGW Build: select() required



> -----Original Message-----
> From: Jason Raneses [mailto:jason@raneses.com]

> Grr, ok, after removing the LIBS environment variable, it's still not
> finding winsock.  I actually wasn't initially setting LIBS,
> but since it
> didn't find winsock, I figured I might as well try throwing a
> -l switch in
> LIBS...bad idea I guess.
>
> Anyhow, I have these switches set in LDFLAGS, yet it's still
> not finding
> winsock:
>
> -L/usr/local/mingw/lib
> -L/cygdrive/d/Development/OpenLDAP/builds/3/Vc7Lib
>
> The second switch is a pointer to my Platform SDK lib
> directory, in which
> ws2_32.lib is located.  Any other lib directories I should be
> worried about?

The GNU tools don't read Microsoft/Visual C object libraries. You should have
the necessary libraries in somewhere like /usr/lib/w32api. I just looked at
my build tree, I didn't specify any special libs at all and configure
located -lregex and -lwsock32 by itself. You should look at your config.log
and see what errors it hit while testing -lwsock32.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support