|
From: | Mark Brand |
Subject: | freetds on FreeBSD (was Re: Freetds (was Re: [Mingw-cross-env-list] changes pushed)) |
Date: | Sat, 11 Sep 2010 22:35:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100824 SUSE/3.1.3 Thunderbird/3.1.3 |
changeset: 1099:ee117c79a94f summary: upgrade package freetds to cvsYour change added a build dependency on gawk, which wasn't installed on my system. (It seems my system has awk, mawk and nawk but not gawk.) Should this dependency be listed in the list of dependencies for the project?I was not aware of that. Not surprising since my system's gawk package provides gawk and awk, while I lack mawk and nawk.FreeBSD has awk and nawk, but the lack of gawk doesn't seem to make a difference to configure or the build result. I think the error has something to do with ODBC, but haven't been able to work it out. Attached is the log file.
This is where it goes wrong:
libtool: compile: i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE -I/home/tonytheodore/mingw-cross-env/usr/i686-pc-mingw32/include -DUNIXODBC -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -g -O2 -Wdeclaration-after-statement -c asprintf.c -o asprintf.ofakepoll.c:63:24: error: array type has incomplete element type fakepoll.c:63:17: warning: 'struct pollfd' declared inside parameter listfakepoll.c:63:17: warning: its scope is only this definition or declaration, which is probably not what you wantfakepoll.c:63:1: warning: no previous prototype for 'fakepoll' fakepoll.c: In function 'fakepoll':
Line 63 is this, so I think it's talking about pollfd, before it goes on to complain about fakepoll() itself:
int fakepoll(struct pollfd fds[], int nfds, int timeout)
Apparently the Windows stuff in include/fakepoll.h stating at line 67 is not included on your FreeBSD system:
#else /* Windows */ /* * Windows use different constants then Unix * Newer version have a WSAPoll which is equal to Unix poll */ # if !defined(POLLRDNORM) && !defined(POLLWRNORM) # define POLLIN 0x0300 # define POLLOUT 0x0010 # define POLLERR 0x0001 # define POLLRDNORM 0x0100 # define POLLWRNORM 0x0010 typedef struct pollfd { SOCKET fd; /* file descriptor to poll */ short events; /* events of interest on fd */ short revents; /* events that occurred on fd */ } pollfd_t; # else typedef struct pollfd pollfd_t; # endif #endif
Can you figure out why? Is there a clue in config.log? I almost wonder if HAVE_POLL is getting set somehow, but your log/freetds indicates that it's not set.
Mark
[Prev in Thread] | Current Thread | [Next in Thread] |