cURL / Mailing Lists / curl-users / Single Mail

curl-users

Compile bug??

From: Richard Stockton <stockton_at_adhost.com>
Date: Thu, 13 Dec 2001 17:10:36 -0800

Hi there,

OS: FreeBSD 4.2

I am able to run "./configure" without errors, but when trying to
make, I get a LOT of syntax errors, and finally a fatal error.
Here is the output;
=====================================================================
www4:root:> make
make all-recursive
Making all in docs
Making all in examples
done
Making all in lib
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I../src -I../include -g -O2 -c -o sendf.lo `test -f sendf.c || echo
'./'`sendf.c
rm -f .libs/sendf.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../include -g -O2 -c
sendf.c -fPIC -DPIC -o .libs/sendf.lo
In file included from sendf.c:31:
/usr/include/sys/socket.h:47: syntax error before `sa_family_t'
/usr/include/sys/socket.h:47: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:48: syntax error before `socklen_t'
/usr/include/sys/socket.h:48: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:155: syntax error before `u_char'
/usr/include/sys/socket.h:166: syntax error before `u_short'
/usr/include/sys/socket.h:180: syntax error before `u_char'
/usr/include/sys/socket.h:182: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:182: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:182: size of array `__ss_pad1' is too large
/usr/include/sys/socket.h:183: syntax error before `int64_t'
/usr/include/sys/socket.h:184: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:184: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:184: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:184: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:304: syntax error before `socklen_t'
/usr/include/sys/socket.h:308: syntax error before `socklen_t'
/usr/include/sys/socket.h:330: syntax error before `socklen_t'
/usr/include/sys/socket.h:351: syntax error before `pid_t'
/usr/include/sys/socket.h:356: syntax error before `gid_t'
/usr/include/sys/socket.h:387: syntax error before `u_short'
/usr/include/sys/socket.h:395: syntax error before `caddr_t'
/usr/include/sys/socket.h:399: syntax error before `caddr_t'
/usr/include/sys/socket.h:425: syntax error before `socklen_t'
/usr/include/sys/socket.h:426: syntax error before `socklen_t'
/usr/include/sys/socket.h:427: syntax error before `socklen_t'
/usr/include/sys/socket.h:428: syntax error before `socklen_t'
/usr/include/sys/socket.h:429: syntax error before `socklen_t'
/usr/include/sys/socket.h:430: syntax error before `socklen_t'
/usr/include/sys/socket.h:432: syntax error before `recv'
/usr/include/sys/socket.h:432: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:433: syntax error before `recvfrom'
/usr/include/sys/socket.h:433: syntax error before `socklen_t'
/usr/include/sys/socket.h:433: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:434: syntax error before `recvmsg'
/usr/include/sys/socket.h:434: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:435: syntax error before `send'
/usr/include/sys/socket.h:435: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:436: syntax error before `sendto'
/usr/include/sys/socket.h:437: syntax error before `socklen_t'
/usr/include/sys/socket.h:437: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:438: syntax error before `sendmsg'
/usr/include/sys/socket.h:438: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:439: syntax error before `off_t'
/usr/include/sys/socket.h:440: syntax error before `socklen_t'
*** Error code 1

Stop in /home/stockton/src/curl-7.9.2/lib.
*** Error code 1

Stop in /home/stockton/src/curl-7.9.2.
*** Error code 1

Stop in /home/stockton/src/curl-7.9.2.
============================================================================
=====

I would appreciate any help you can offer.
Thanks.

  - Richard
  | Richard Lee Stockton
  | Senior Systems Manager: http://adhost.com/ Adhost: 425-454-9520 |
  | http://richardleestockton.org/
Received on 2001-12-14