From: Bob R. <bob...@co...> - 2008-02-21 18:17:28
|
Hi folks, I fixed a bug in flex a few months ago, where it would generate a scanner that had a compiler warning in it. This only seemed to happen on windows. I was asked to test the latest flex to see if the bug was fixed before it's released. However, I can't get it to compile on mingw because of the below compile errors. Has anyone got around these before? If so, how? Thanks, Bob Rossi ----- Forwarded message from Will Estes <wl...@us...> ----- Date: Thu, 21 Feb 2008 10:09:37 -0500 From: Will Estes <wl...@us...> To: Bob Rossi <bob...@co...> Subject: Re: [Flex-help] [Flex-devel] fix compiler warning Bob, It's flex's intent to be portable. Given what flex is though, we tend to assume POSIX. At least some of those functions are networking functions (which help put things into a known bite order), and I have a vague memory that MsWindows doesn't use the standard filenames for those headers. It's entirely possible that flex doesn't perform appropriate checks to pick up the non-standard (and by my lights non-portable) MSWindows headers. I'll put this on my list of things to investigate. --Will On Thursday, 21 February 2008, 10:05 am -0500, Bob Rossi <bob...@co...> wrote: > On Wed, Feb 20, 2008 at 12:15:02PM -0500, Will Estes wrote: > > Bob, > > > > There's a release of flex coming out in the next few days. It will be > > labeled with version 2.5.35. It'll be nearly identical to the current > > cvs codebase. > > > > Are you still interested in seeing how mingw fairs with flex? If so, > > please let me know how things look from your point of view. > > OK, I downloaded the flex CVS on linux, ran autogen, configure, make and > then make dist. I copied the file flex-2.5.35.tar.bz2 to the windows > machine. > > I ran configure successfully on the windows machine with this command, > ./configure CFLAGS="-I/usr/include" --prefix=$PWD/../prefix > and then hit this with 'make', > > $ make -s > Making all in . > libmain.c:1: warning: -fPIC ignored for target (all code is position independent) > libyywrap.c:1: warning: -fPIC ignored for target (all code is position independent) > filter.c: In function 'filter_apply_chain': > filter.c:179: warning: passing argument 2 of 'execvp' from incompatible pointer type > main.o:main.c:(.text+0x6d): undefined reference to `WIFEXITED' > main.o:main.c:(.text+0x7c): undefined reference to `WEXITSTATUS' > main.o:main.c:(.text+0x98): undefined reference to `wait' > tables.o:tables.c:(.text+0x9c1): undefined reference to `htonl' > tables.o:tables.c:(.text+0xa35): undefined reference to `htons' > filter.o:filter.c:(.text+0x215): undefined reference to `pipe' > filter.o:filter.c:(.text+0x239): undefined reference to `fork' > filter.o:filter.c:(.text+0x894): undefined reference to `wait' > collect2: ld returned 1 exit status > make[2]: *** [flex.exe] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > I'm not sure exactly how to fix this to be honest. Is it the intention > of flex to be portable? > > Thanks, > Bob Rossi -- Will Estes Flex Project Maintainer http://flex.sourceforge.net/ ----- End forwarded message ----- |