[Ecls-list] mingw32 build failure

Marko Kocić marko.kocic at gmail.com
Fri Jan 9 12:28:49 UTC 2009


I always do configure, but seems like that it wrongly guess mprotect
availability for mingw32.
When I manualy commented "#define ECL_USE_MPROTECT 1" line in
src/configure the build proceeded further.

However, there is another error in file.d. Has anyone successfully
compiled ecl witn mingw32?

if test -f ../CROSS-DPP ; then ../CROSS-DPP
/c/dev/cvstree/ecl.git/src/c/file.d file.c ; else ./dpp.
exe /c/dev/cvstree/ecl.git/src/c/file.d file.c ; fi
dpp: c:/dev/cvstree/ecl.git/src/c/file.d -> file.c
gcc -c -DECL_API -I. -Ic:/dev/cvstree/ecl.git/build
-I/c/dev/cvstree/ecl.git/src/c -I../ecl/gc  -g -
O2  -D_THREAD_SAFE -Ic:/msys/1.0/local/include -Dmingw32  -o file.o file.c
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'io_file_clear_input':
c:/dev/cvstree/ecl.git/src/c/file.d:2611: error: 'fp' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:2611: error: (Each undeclared
identifier is reported only once
c:/dev/cvstree/ecl.git/src/c/file.d:2611: error: for each function it
appears in.)
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'ecl_make_file_stream_from_fd':
c:/dev/cvstree/ecl.git/src/c/file.d:3113: error: 'character_p'
undeclared (first use in this functio
n)
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'io_stream_clear_input':
c:/dev/cvstree/ecl.git/src/c/file.d:3234: error: 'fp' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'ecl_make_stream_from_FILE':
c:/dev/cvstree/ecl.git/src/c/file.d:3518: error: 'character_p'
undeclared (first use in this functio
n)
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'ecl_open_stream':
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IRUSR' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IWUSR' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IRGRP' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IWGRP' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IROTH' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d:4115: error: 'S_IWOTH' undeclared
(first use in this function)
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'ecl_off_t_to_integer':
c:/dev/cvstree/ecl.git/src/c/file.d:4430: warning: right shift count
>= width of type
c:/dev/cvstree/ecl.git/src/c/file.d: In function 'ecl_integer_to_off_t':
c:/dev/cvstree/ecl.git/src/c/file.d:4461: warning: left shift count >=
width of type
make[2]: *** [file.o] Error 1

On Fri, Jan 9, 2009 at 10:00 AM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> On Thu, Jan 8, 2009 at 8:39 PM, Marko Kocić <marko.kocic at gmail.com> wrote:
>> I tried to build git head of ecl on mingw32/gcc-4.3.2 and got the
>> following error: [...]
>
> You have to reconfigure again after these changes. ECL needs to know
> whether your system has a mprotect() function, which probably mingw
> does not.
>
> Juanjo
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28009 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>


More information about the ecl-devel mailing list