[Monetdb-developers] Cygwin: implicit declaration of function closesocket
Hi all,
a student of ours is trying to compile the current CVS snapshot (the tarball from the website) on Windows using Cygwin.
He's getting the error
stream.mx:1471:implicit declaration of function closesocket.
In the attached config.log, it seems like closesocket could be detected (i.e., successfully linked in). Is there maybe some #include missing in stream.mx to declare closesocket()?
The attached config.log, by the way, is full of `gcc: unrecognized option `-no-undefined'' warnings. Is this supposed to be like this?
Jens
On 18-09-2006 11:04:31 +0200, Jens Teubner wrote:
The attached config.log, by the way, is full of `gcc: unrecognized option `-no-undefined'' warnings. Is this supposed to be like this?
I cannot find a compiler that does like it:
(pegasus:~) fabian% gcc-config -l Using gcc-config info in /ufs/fabian/scratch/programs/gentoo/ [1] x86_64-pc-linux-gnu-3.3.6 [2] x86_64-pc-linux-gnu-3.3.6-hardened [3] x86_64-pc-linux-gnu-3.3.6-hardenednopie [4] x86_64-pc-linux-gnu-3.3.6-hardenednopiessp [5] x86_64-pc-linux-gnu-3.3.6-hardenednossp [6] x86_64-pc-linux-gnu-3.4.6 [7] x86_64-pc-linux-gnu-3.4.6-hardened [8] x86_64-pc-linux-gnu-3.4.6-hardenednopie [9] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp [10] x86_64-pc-linux-gnu-3.4.6-hardenednossp [11] x86_64-pc-linux-gnu-4.1.1 * (pegasus:~) fabian% gcc-config 6 * Switching native-compiler to x86_64-pc-linux-gnu-3.4.6 ... [ ok ] (pegasus:~) fabian% gcc --version gcc (GCC) 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.9) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
(pegasus:~/tmp) fabian% gcc -o t -no-undefined t.c gcc: unrecognized option `-no-undefined' (pegasus:~/tmp) fabian%
(pegasus:~/tmp) fabian% gcc-config 11 * Switching native-compiler to x86_64-pc-linux-gnu-4.1.1 ... [ ok ] (pegasus:~/tmp) fabian% gcc -o t -no-undefined t.c gcc: unrecognized option '-no-undefined' t.c: In function ‘main’: t.c:2: warning: incompatible implicit declaration of built-in function ‘exit’
(pegasus:~/tmp) fabian% gcc-config 1 * Switching native-compiler to x86_64-pc-linux-gnu-3.3.6 ... [ ok ] (pegasus:~/tmp) fabian% gcc -o t -no-undefined t.c gcc: unrecognized option `-no-undefined' (pegasus:~/tmp) fabian%
On 2006-09-18 11:04, Jens Teubner wrote:
Hi all,
a student of ours is trying to compile the current CVS snapshot (the tarball from the website) on Windows using Cygwin.
He's getting the error
stream.mx:1471:implicit declaration of function closesocket.
In the attached config.log, it seems like closesocket could be detected (i.e., successfully linked in). Is there maybe some #include missing in stream.mx to declare closesocket()?
I'm working on it. closesocket is required for MinGW, but I think not on Cygwin. I have to refine the tests in configure.
The attached config.log, by the way, is full of `gcc: unrecognized option `-no-undefined'' warnings. Is this supposed to be like this?
Stupid configure. -no-undefined is required as an option to ld so it is added to LDFLAGS. But configure passes it to gcc during testing. (In real life, libtool passes it directly to ld.)
participants (3)
-
Fabian Groffen
-
Jens Teubner
-
Sjoerd Mullender