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

RE: OpenLDAP MinGW Build: select() required



My apologies Howard, I just didn't want to bog down this list with something
that may be a problem specific to my environment.

I am running 3.3.1 as well I believe:

----

jraneses@origin /usr/bin
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld
--with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libd
ir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man
--infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc
--ena
ble-libgcj --enable-threads=posix --with-system-zlib --enable-nls
--without-included-gettext --enable-interpreter --enable-sjlj-exceptions -
-disable-version-specific-runtime-libs --enable-shared
--disable-win32-registry --enable-java-gc=boehm
--disable-hash-synchronization --verb
ose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)

-----Original Message-----
From: Howard Chu [mailto:hyc@highlandsun.com] 
Sent: Tuesday, January 13, 2004 11:40 AM
To: 'Jason Raneses'
Cc: openldap-software@openldap.org
Subject: RE: OpenLDAP MinGW Build: select() required

Please don't email me privately unless you are contracting for my consulting
services. Keep it on the list.

Your version of gcc doesn't seem to like the Windows function declarations
containing '@' signs. This works on my system, with Cygwin gcc 3.3.1. What
version are you using?

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

> -----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