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

RE: OpenLDAP MinGW Build: select() required



Howard, is it still necessary to patch the gcc specs file as outlined in the
FAQ (http://www.openldap.org/faq/data/cache/301.html) ?  The 3.3.1 specs
file looks dramatically different than what is noted in the FAQ.  In the
patch for the older gcc specs file, it appears that this chunk:

%{!mno-cygwin:%q/usr/lib/ %q/usr/local/lib/}

Is being replaced by this:

%{!mno-cygwin:%q/usr/lib/cygwin/ %q/usr/local/lib/}

In the newer specs file, I don't see anything even close to that older
chunk.

Jason

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

> >From config.log:
>
> --------------------------------------------
>
> configure:9104: checking for winsock
> configure:9126: mgcc -o conftest.exe -g -O2 -I/usr/include
> -L/lib/w32api
> conftest.c  -lws2_32 1>&5
> configure:9111: error: syntax error at '@' token
> configure:9111: error: syntax error before numeric constant
> configure:9112: error: syntax error at '@' token
> configure:9112: error: syntax error before numeric constant
> configure:9113: error: syntax error at '@' token
> configure:9113: error: syntax error before numeric constant
> configure:9114: error: syntax error at '@' token
> configure:9114: error: syntax error before numeric constant
> configure: In function `main':
> configure:9118: error: syntax error at '@' token
> configure:9118: error: `socket' undeclared (first use in this
> function)
> configure:9118: error: (Each undeclared identifier is
> reported only once
> configure:9118: error: for each function it appears in.)
> configure:9118: error: syntax error before numeric constant
> configure:9119: error: syntax error at '@' token
> configure:9119: error: `select' undeclared (first use in this
> function)
> configure:9120: error: syntax error at '@' token
> configure:9120: error: `closesocket' undeclared (first use in
> this function)
> configure:9121: error: syntax error at '@' token
> configure:9121: error: `gethostname' undeclared (first use in
> this function)
> configure: failed program was:
> #line 9109 "configure"
> #include "confdefs.h"
>
> 			char socket@12();
> 			char select@20();
> 			char closesocket@4();
> 			char gethostname@8();
>
> int main() {
>
> 			socket@12();
> 			select@20();
> 			closesocket@4();
> 			gethostname@8();
>
> ; return 0; }
>
> --------------------------------------------
>
> Any thoughts?
>
> Thanks,
>
> Jason