cURL / Mailing Lists / curl-users / Single Mail

curl-users

error building curl 7.15.5: Missing_definition_of_macro_sread

From: Domenico Andreoli <cavok_at_tiscali.it>
Date: Mon, 7 Aug 2006 11:07:00 +0200

hi Daniel,

here is a build error of 7.15.5:

make[3]: Entering directory `/home/cavok/devel/debian/curl/curl/debian/build/src'
i486-linux-gnu-gcc -DHAVE_CONFIG_H -I../../../src -I../../../include -I../src -I../../../lib -g -O2 -c `test -f '../../../src/main.c' || echo '../../../src/'`../../../src/main.c
In file included from ../../../lib/setup.h:369,
                 from ../../../lib/strtoofft.h:31,
                 from ../../../lib/curlx.h:41,
                 from ../../../src/main.c:105:
../../../lib/setup_once.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Missing_definition_of_macro_sread'
make[3]: *** [main.o] Error 1

i can reproduce it:

$ tar zxf curl-7.15.5.tar.gz
$ cd curl-7.15.5
$ mkdir gfgdgd
$ cd gfgdgd
$ ../configure && make

src/config.h does not build conftest.c to check arguments type of recv
because of:

configure:35423: checking types of arguments and return type for recv
configure:35489: gcc -c -g -O2 conftest.c >&5
conftest.c:136: error: conflicting types for 'recv'
/usr/include/sys/socket.h:143: error: previous declaration of 'recv' was here
configure:35495: $? = 1
configure: failed program was:
....

the config.log is pretty long, please try to reproduce it
yourself. conversely, i'll send you the missing info.

cheers
domenico

-----[ Domenico Andreoli, aka cavok
 --[ http://people.debian.org/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
Received on 2006-08-07